; LLVM IR from blat-blatnik/Pocket-Universe :: src (main)

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

%struct.Universe = type { i32, i32, ptr, ptr, ptr, float, float, float, float, float, i32, i32, i64, %struct.UniverseInternal }
%struct.UniverseInternal = type { i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.gladGLversionStruct = type { i32, i32 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@glad_glEnable = external global ptr, align 8
@glad_glBlendFunc = external global ptr, align 8
@glad_glClearColor = external global ptr, align 8
@glad_glDebugMessageCallback = external global ptr, align 8
@glad_glGetError = external global ptr, align 8
@.str.23 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@universe = external hidden global %struct.Universe, align 8
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1
@glad_glGetString = external global ptr, align 8
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@GLVersion = external global %struct.gladGLversionStruct, align 4
@.str.35 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [36 x i8], align 1
@glad_glClear = external global ptr, align 8
@.str.37 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca i64, align 8
  %11 = alloca %struct.Universe, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca [512 x i8], align 16
  store i32 0, ptr %1, align 4
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.15, ptr noundef %2)
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.15, ptr noundef %3)
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %41 = call ptr @glfwSetErrorCallback(ptr noundef @onGlfwError)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %42 = call i32 @glfwInit()
  store i32 %42, ptr %4, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %0
  call void @fatalError(ptr noundef @.str.18)
  br label %46

46:                                               ; preds = %45, %0
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0)
  call void @glfwWindowHint(i32 noundef 135173, i32 noundef 0)
  call void @glfwWindowHint(i32 noundef 135174, i32 noundef 0)
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 4)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 3)
  call void @glfwWindowHint(i32 noundef 139270, i32 noundef 1)
  call void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801)
  call void @glfwWindowHint(i32 noundef 139271, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %48 = call ptr @glfwCreateWindow(i32 noundef 1280, i32 noundef 720, ptr noundef @.str.20, ptr noundef null, ptr noundef null)
  store ptr %48, ptr %5, align 8, !tbaa !9
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  call void @fatalError(ptr noundef @.str.21)
  br label %52

52:                                               ; preds = %51, %46
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %55 = call i32 @gladLoadGLLoader(ptr noundef @glfwGetProcAddress)
  store i32 %55, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %59, label %58

58:                                               ; preds = %52
  call void @fatalError(ptr noundef @.str.22)
  br label %59

59:                                               ; preds = %58, %52
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @glfwSwapInterval(i32 noundef 0)
  %61 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %61(i32 noundef 36281)
  %62 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %62(i32 noundef 3042)
  %63 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !9
  call void %63(i32 noundef 770, i32 noundef 771)
  %64 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %64(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %65 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %65(i32 noundef 37600)
  %66 = load ptr, ptr @glad_glDebugMessageCallback, align 8, !tbaa !9
  call void %66(ptr noundef @onGlError, ptr noundef null)
  br label %67

67:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %68 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %69 = call i32 %68()
  store i32 %69, ptr %7, align 4, !tbaa !5
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %86

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %73 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %73, label %81 [
    i32 1280, label %74
    i32 1281, label %75
    i32 1282, label %76
    i32 1283, label %77
    i32 1284, label %78
    i32 1285, label %79
    i32 1286, label %80
  ]

74:                                               ; preds = %72
  store ptr @.str.23, ptr %8, align 8, !tbaa !9
  br label %82

75:                                               ; preds = %72
  store ptr @.str.24, ptr %8, align 8, !tbaa !9
  br label %82

76:                                               ; preds = %72
  store ptr @.str.25, ptr %8, align 8, !tbaa !9
  br label %82

77:                                               ; preds = %72
  store ptr @.str.26, ptr %8, align 8, !tbaa !9
  br label %82

78:                                               ; preds = %72
  store ptr @.str.27, ptr %8, align 8, !tbaa !9
  br label %82

79:                                               ; preds = %72
  store ptr @.str.28, ptr %8, align 8, !tbaa !9
  br label %82

80:                                               ; preds = %72
  store ptr @.str.29, ptr %8, align 8, !tbaa !9
  br label %82

81:                                               ; preds = %72
  store ptr @.str.30, ptr %8, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %81, %80, %79, %78, %77, %76, %75, %74
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = load ptr, ptr %8, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.31, ptr noundef %84, ptr noundef @.str.32, i32 noundef 233, ptr noundef @__func__.main) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %86

86:                                               ; preds = %82, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = call ptr @glfwSetKeyCallback(ptr noundef %89, ptr noundef @onKey)
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = call ptr @glfwSetScrollCallback(ptr noundef %91, ptr noundef @onMouseWheel)
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = call ptr @glfwSetFramebufferSizeCallback(ptr noundef %93, ptr noundef @onFramebufferResize)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %95 = call i64 @glfwGetTimerFrequency()
  %96 = uitofp i64 %95 to double
  store double %96, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %97 = call i64 @glfwGetTimerValue()
  store i64 %97, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #5
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = load i32, ptr %2, align 4, !tbaa !5
  call void @createUniverse(ptr dead_on_unwind writable sret(%struct.Universe) align 8 %11, i32 noundef %98, i32 noundef %99, float noundef 1.280000e+03, float noundef 7.200000e+02)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @universe, ptr align 8 %11, i64 144, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #5
  store float 1.000000e+00, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 8), align 4, !tbaa !18
  store float 0x3FA99999A0000000, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 7), align 8, !tbaa !21
  store i32 1, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 10), align 4, !tbaa !22
  store float 5.000000e+00, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 9), align 8, !tbaa !23
  call void @randomize(ptr noundef @universe, float noundef 0xBF947AE140000000, float noundef 0x3FAEB851E0000000, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef 2.000000e+01, float noundef 7.000000e+01)
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %101 = load ptr, ptr @glad_glGetString, align 8, !tbaa !9
  %102 = call ptr %101(i32 noundef 7938)
  store ptr %102, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %103 = load ptr, ptr @glad_glGetString, align 8, !tbaa !9
  %104 = call ptr %103(i32 noundef 7937)
  store ptr %104, ptr %13, align 8, !tbaa !9
  %105 = load ptr, ptr %12, align 8, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !9
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %105, ptr noundef %106)
  %108 = load i32, ptr @GLVersion, align 4, !tbaa !24
  %109 = icmp slt i32 %108, 4
  br i1 %109, label %116, label %110

110:                                              ; preds = %88
  %111 = load i32, ptr @GLVersion, align 4, !tbaa !24
  %112 = icmp eq i32 %111, 4
  br i1 %112, label %113, label %117

113:                                              ; preds = %110
  %114 = load i32, ptr getelementptr inbounds (%struct.gladGLversionStruct, ptr @GLVersion, i32 0, i32 1), align 4, !tbaa !26
  %115 = icmp slt i32 %114, 3
  br i1 %115, label %116, label %117

116:                                              ; preds = %113, %88
  call void @fatalError(ptr noundef @.str.35)
  br label %117

117:                                              ; preds = %116, %113, %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %118 = call i64 @glfwGetTimerValue()
  store i64 %118, ptr %14, align 8, !tbaa !13
  %119 = load i64, ptr %14, align 8, !tbaa !13
  %120 = load i64, ptr %10, align 8, !tbaa !13
  %121 = sub i64 %119, %120
  %122 = uitofp i64 %121 to double
  %123 = load double, ptr %9, align 8, !tbaa !11
  %124 = fdiv double %122, %123
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, double noundef %124)
  call void @printHelp()
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  call void @glfwShowWindow(ptr noundef %127)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  %128 = call i64 @glfwGetTimerValue()
  store i64 %128, ptr %10, align 8, !tbaa !13
  br label %129

129:                                              ; preds = %219, %117
  %130 = load ptr, ptr %5, align 8, !tbaa !9
  %131 = call i32 @glfwWindowShouldClose(ptr noundef %130)
  %132 = icmp ne i32 %131, 0
  %133 = xor i1 %132, true
  br i1 %133, label %134, label %221

134:                                              ; preds = %129
  call void @glfwPollEvents()
  %135 = call i64 @glfwGetTimerValue()
  store i64 %135, ptr %14, align 8, !tbaa !13
  %136 = load float, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 8), align 4, !tbaa !18
  %137 = fpext float %136 to double
  %138 = load double, ptr %15, align 8, !tbaa !11
  %139 = fadd double %138, %137
  store double %139, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %140 = load i64, ptr %14, align 8, !tbaa !13
  %141 = load i64, ptr %10, align 8, !tbaa !13
  %142 = sub i64 %140, %141
  %143 = uitofp i64 %142 to double
  %144 = load double, ptr %9, align 8, !tbaa !11
  %145 = fdiv double %143, %144
  store double %145, ptr %18, align 8, !tbaa !11
  %146 = load i64, ptr %14, align 8, !tbaa !13
  store i64 %146, ptr %10, align 8, !tbaa !13
  call void @simulateTimestep(ptr noundef @universe)
  %147 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %147(i32 noundef 16384)
  call void @draw(ptr noundef @universe)
  br label %148

148:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %149 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %150 = call i32 %149()
  store i32 %150, ptr %19, align 4, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %167

153:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %154 = load i32, ptr %19, align 4, !tbaa !5
  switch i32 %154, label %162 [
    i32 1280, label %155
    i32 1281, label %156
    i32 1282, label %157
    i32 1283, label %158
    i32 1284, label %159
    i32 1285, label %160
    i32 1286, label %161
  ]

155:                                              ; preds = %153
  store ptr @.str.23, ptr %20, align 8, !tbaa !9
  br label %163

156:                                              ; preds = %153
  store ptr @.str.24, ptr %20, align 8, !tbaa !9
  br label %163

157:                                              ; preds = %153
  store ptr @.str.25, ptr %20, align 8, !tbaa !9
  br label %163

158:                                              ; preds = %153
  store ptr @.str.26, ptr %20, align 8, !tbaa !9
  br label %163

159:                                              ; preds = %153
  store ptr @.str.27, ptr %20, align 8, !tbaa !9
  br label %163

160:                                              ; preds = %153
  store ptr @.str.28, ptr %20, align 8, !tbaa !9
  br label %163

161:                                              ; preds = %153
  store ptr @.str.29, ptr %20, align 8, !tbaa !9
  br label %163

162:                                              ; preds = %153
  store ptr @.str.30, ptr %20, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %162, %161, %160, %159, %158, %157, %156, %155
  %164 = load ptr, ptr @stderr, align 8, !tbaa !9
  %165 = load ptr, ptr %20, align 8, !tbaa !9
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.31, ptr noundef %165, ptr noundef @.str.32, i32 noundef 302, ptr noundef @__func__.main) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %167

167:                                              ; preds = %163, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168
  %170 = load double, ptr %18, align 8, !tbaa !11
  %171 = load double, ptr %16, align 8, !tbaa !11
  %172 = fadd double %171, %170
  store double %172, ptr %16, align 8, !tbaa !11
  %173 = load i32, ptr %17, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %17, align 4, !tbaa !5
  %175 = load double, ptr %16, align 8, !tbaa !11
  %176 = fcmp oge double %175, 1.000000e-01
  br i1 %176, label %177, label %219

177:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 512, ptr %21) #5
  %178 = load double, ptr %15, align 8, !tbaa !11
  %179 = fcmp oge double %178, 1.000000e+06
  br i1 %179, label %180, label %191

180:                                              ; preds = %177
  %181 = getelementptr inbounds [512 x i8], ptr %21, i64 0, i64 0
  %182 = load double, ptr %15, align 8, !tbaa !11
  %183 = fdiv double %182, 1.000000e+06
  %184 = load float, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 8), align 4, !tbaa !18
  %185 = fpext float %184 to double
  %186 = load i32, ptr %17, align 4, !tbaa !5
  %187 = sitofp i32 %186 to double
  %188 = load double, ptr %16, align 8, !tbaa !11
  %189 = fdiv double %187, %188
  %190 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %181, ptr noundef @.str.37, double noundef %183, double noundef %185, double noundef %189) #5
  br label %216

191:                                              ; preds = %177
  %192 = load double, ptr %15, align 8, !tbaa !11
  %193 = fcmp oge double %192, 2.000000e+03
  br i1 %193, label %194, label %205

194:                                              ; preds = %191
  %195 = getelementptr inbounds [512 x i8], ptr %21, i64 0, i64 0
  %196 = load double, ptr %15, align 8, !tbaa !11
  %197 = fdiv double %196, 1.000000e+03
  %198 = load float, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 8), align 4, !tbaa !18
  %199 = fpext float %198 to double
  %200 = load i32, ptr %17, align 4, !tbaa !5
  %201 = sitofp i32 %200 to double
  %202 = load double, ptr %16, align 8, !tbaa !11
  %203 = fdiv double %201, %202
  %204 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %195, ptr noundef @.str.38, double noundef %197, double noundef %199, double noundef %203) #5
  br label %215

205:                                              ; preds = %191
  %206 = getelementptr inbounds [512 x i8], ptr %21, i64 0, i64 0
  %207 = load double, ptr %15, align 8, !tbaa !11
  %208 = load float, ptr getelementptr inbounds (%struct.Universe, ptr @universe, i32 0, i32 8), align 4, !tbaa !18
  %209 = fpext float %208 to double
  %210 = load i32, ptr %17, align 4, !tbaa !5
  %211 = sitofp i32 %210 to double
  %212 = load double, ptr %16, align 8, !tbaa !11
  %213 = fdiv double %211, %212
  %214 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %206, ptr noundef @.str.39, double noundef %207, double noundef %209, double noundef %213) #5
  br label %215

215:                                              ; preds = %205, %194
  br label %216

216:                                              ; preds = %215, %180
  %217 = load ptr, ptr %5, align 8, !tbaa !9
  %218 = getelementptr inbounds [512 x i8], ptr %21, i64 0, i64 0
  call void @glfwSetWindowTitle(ptr noundef %217, ptr noundef %218)
  store i32 0, ptr %17, align 4, !tbaa !5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 512, ptr %21) #5
  br label %219

219:                                              ; preds = %216, %169
  %220 = load ptr, ptr %5, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %220)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %129, !llvm.loop !27

221:                                              ; preds = %129
  call void @destroyUniverse(ptr noundef @universe)
  %222 = load ptr, ptr %5, align 8, !tbaa !9
  call void @glfwDestroyWindow(ptr noundef %222)
  call void @glfwTerminate()
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

declare i32 @printf(ptr noundef, ...) #1

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

declare ptr @glfwSetErrorCallback(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @onGlfwError(i32 noundef, ptr noundef) #0

declare i32 @glfwInit() #1

; Function Attrs: nounwind uwtable
declare hidden void @fatalError(ptr noundef) #0

declare void @glfwWindowHint(i32 noundef, i32 noundef) #1

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @glfwMakeContextCurrent(ptr noundef) #1

declare i32 @gladLoadGLLoader(ptr noundef) #1

declare ptr @glfwGetProcAddress(ptr noundef) #1

declare void @glfwSwapInterval(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @onGlError(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

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

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

declare ptr @glfwSetKeyCallback(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @onKey(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare ptr @glfwSetScrollCallback(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @onMouseWheel(ptr noundef, double noundef, double noundef) #0

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @onFramebufferResize(ptr noundef, i32 noundef, i32 noundef) #0

declare i64 @glfwGetTimerFrequency() #1

declare i64 @glfwGetTimerValue() #1

declare void @createUniverse(ptr dead_on_unwind writable sret(%struct.Universe) align 8, i32 noundef, i32 noundef, float noundef, float noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @randomize(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1

declare void @glfwShowWindow(ptr noundef) #1

declare i32 @glfwWindowShouldClose(ptr noundef) #1

declare void @glfwPollEvents() #1

declare void @simulateTimestep(ptr noundef) #1

declare void @draw(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

declare void @glfwSetWindowTitle(ptr noundef, ptr noundef) #1

declare void @glfwSwapBuffers(ptr noundef) #1

declare void @destroyUniverse(ptr noundef) #1

declare void @glfwDestroyWindow(ptr noundef) #1

declare void @glfwTerminate() #1

; Function Attrs: nounwind uwtable
declare hidden void @printHelp() #0

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 4, !16, i64 36, i64 4, !16, i64 40, i64 4, !16, i64 44, i64 4, !16, i64 48, i64 4, !16, i64 52, i64 4, !5, i64 56, i64 4, !5, i64 64, i64 8, !13, i64 72, i64 4, !5, i64 76, i64 4, !5, i64 80, i64 4, !16, i64 84, i64 4, !5, i64 88, i64 4, !5, i64 92, i64 4, !5, i64 96, i64 4, !5, i64 100, i64 4, !5, i64 104, i64 4, !5, i64 108, i64 4, !5, i64 112, i64 4, !5, i64 116, i64 4, !5, i64 120, i64 4, !5, i64 124, i64 4, !5, i64 128, i64 4, !5, i64 132, i64 4, !5, i64 136, i64 4, !5}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !17, i64 44}
!19 = !{!"Universe", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !6, i64 52, !6, i64 56, !14, i64 64, !20, i64 72}
!20 = !{!"UniverseInternal", !6, i64 0, !6, i64 4, !17, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64}
!21 = !{!19, !17, i64 40}
!22 = !{!19, !6, i64 52}
!23 = !{!19, !17, i64 48}
!24 = !{!25, !6, i64 0}
!25 = !{!"gladGLversionStruct", !6, i64 0, !6, i64 4}
!26 = !{!25, !6, i64 4}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

%struct.Universe = type { i32, i32, ptr, ptr, ptr, float, float, float, float, float, i32, i32, i64, %struct.UniverseInternal }
%struct.UniverseInternal = type { i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.gladGLversionStruct = type { i32, i32 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@glad_glEnable = external local_unnamed_addr global ptr, align 8
@glad_glBlendFunc = external local_unnamed_addr global ptr, align 8
@glad_glClearColor = external local_unnamed_addr global ptr, align 8
@glad_glDebugMessageCallback = external local_unnamed_addr global ptr, align 8
@glad_glGetError = external local_unnamed_addr global ptr, align 8
@.str.23 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@universe = external hidden global %struct.Universe, align 8
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1
@glad_glGetString = external local_unnamed_addr global ptr, align 8
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@GLVersion = external local_unnamed_addr global %struct.gladGLversionStruct, align 4
@.str.35 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [36 x i8], align 1
@glad_glClear = external local_unnamed_addr global ptr, align 8
@.str.37 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.Universe, align 8
  %4 = alloca [512 x i8], align 16
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.15, ptr noundef nonnull %1)
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.15, ptr noundef nonnull %2)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %24 = call ptr @glfwSetErrorCallback(ptr noundef nonnull @onGlfwError) #5
  %25 = call i32 @glfwInit() #5
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %26, label %27

26:                                               ; preds = %0
  call void @fatalError(ptr noundef nonnull @.str.18)
  br label %27

27:                                               ; preds = %26, %0
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0) #5
  call void @glfwWindowHint(i32 noundef 135173, i32 noundef 0) #5
  call void @glfwWindowHint(i32 noundef 135174, i32 noundef 0) #5
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 4) #5
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 3) #5
  call void @glfwWindowHint(i32 noundef 139270, i32 noundef 1) #5
  call void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801) #5
  call void @glfwWindowHint(i32 noundef 139271, i32 noundef 1) #5
  %29 = call ptr @glfwCreateWindow(i32 noundef 1280, i32 noundef 720, ptr noundef nonnull @.str.20, ptr noundef null, ptr noundef null) #5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %27
  call void @fatalError(ptr noundef nonnull @.str.21)
  br label %32

32:                                               ; preds = %31, %27
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  call void @glfwMakeContextCurrent(ptr noundef %29) #5
  %34 = call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress) #5
  %.not56 = icmp eq i32 %34, 0
  br i1 %.not56, label %35, label %36

35:                                               ; preds = %32
  call void @fatalError(ptr noundef nonnull @.str.22)
  br label %36

36:                                               ; preds = %35, %32
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  call void @glfwSwapInterval(i32 noundef 0) #5
  %38 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %38(i32 noundef 36281) #5
  %39 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %39(i32 noundef 3042) #5
  %40 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !5
  call void %40(i32 noundef 770, i32 noundef 771) #5
  %41 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %41(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00) #5
  %42 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %42(i32 noundef 37600) #5
  %43 = load ptr, ptr @glad_glDebugMessageCallback, align 8, !tbaa !5
  call void %43(ptr noundef nonnull @onGlError, ptr noundef null) #5
  %44 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %45 = call i32 %44() #5
  switch i32 %45, label %52 [
    i32 0, label %56
    i32 1280, label %53
    i32 1281, label %46
    i32 1282, label %47
    i32 1283, label %48
    i32 1284, label %49
    i32 1285, label %50
    i32 1286, label %51
  ]

46:                                               ; preds = %36
  br label %53

47:                                               ; preds = %36
  br label %53

48:                                               ; preds = %36
  br label %53

49:                                               ; preds = %36
  br label %53

50:                                               ; preds = %36
  br label %53

51:                                               ; preds = %36
  br label %53

52:                                               ; preds = %36
  br label %53

53:                                               ; preds = %36, %52, %51, %50, %49, %48, %47, %46
  %.043 = phi ptr [ @.str.30, %52 ], [ @.str.29, %51 ], [ @.str.28, %50 ], [ @.str.27, %49 ], [ @.str.26, %48 ], [ @.str.25, %47 ], [ @.str.24, %46 ], [ @.str.23, %36 ]
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.31, ptr noundef nonnull %.043, ptr noundef nonnull @.str.32, i32 noundef 233, ptr noundef nonnull @__func__.main) #6
  br label %56

56:                                               ; preds = %36, %53
  %57 = call ptr @glfwSetKeyCallback(ptr noundef %29, ptr noundef nonnull @onKey) #5
  %58 = call ptr @glfwSetScrollCallback(ptr noundef %29, ptr noundef nonnull @onMouseWheel) #5
  %59 = call ptr @glfwSetFramebufferSizeCallback(ptr noundef %29, ptr noundef nonnull @onFramebufferResize) #5
  %60 = call i64 @glfwGetTimerFrequency() #5
  %61 = uitofp i64 %60 to double
  %62 = call i64 @glfwGetTimerValue() #5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #5
  %63 = load i32, ptr %2, align 4, !tbaa !9
  %64 = load i32, ptr %1, align 4, !tbaa !9
  call void @createUniverse(ptr dead_on_unwind nonnull writable sret(%struct.Universe) align 8 %3, i32 noundef %63, i32 noundef %64, float noundef 1.280000e+03, float noundef 7.200000e+02) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) @universe, ptr noundef nonnull align 8 dereferenceable(144) %3, i64 144, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #5
  store <2 x float> <float 0x3FA99999A0000000, float 1.000000e+00>, ptr getelementptr inbounds (i8, ptr @universe, i64 40), align 8, !tbaa !12
  store i32 1, ptr getelementptr inbounds (i8, ptr @universe, i64 52), align 4, !tbaa !16
  store float 5.000000e+00, ptr getelementptr inbounds (i8, ptr @universe, i64 48), align 8, !tbaa !19
  call void @randomize(ptr noundef nonnull @universe, float noundef 0xBF947AE140000000, float noundef 0x3FAEB851E0000000, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef 2.000000e+01, float noundef 7.000000e+01) #5
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  %66 = load ptr, ptr @glad_glGetString, align 8, !tbaa !5
  %67 = call ptr %66(i32 noundef 7938) #5
  %68 = load ptr, ptr @glad_glGetString, align 8, !tbaa !5
  %69 = call ptr %68(i32 noundef 7937) #5
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef %67, ptr noundef %69)
  %71 = load i32, ptr @GLVersion, align 4, !tbaa !20
  %72 = icmp slt i32 %71, 4
  br i1 %72, label %77, label %73

73:                                               ; preds = %56
  %74 = icmp eq i32 %71, 4
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @GLVersion, i64 4), align 4
  %76 = icmp slt i32 %75, 3
  %or.cond = select i1 %74, i1 %76, i1 false
  br i1 %or.cond, label %77, label %78

77:                                               ; preds = %73, %56
  call void @fatalError(ptr noundef nonnull @.str.35)
  br label %78

78:                                               ; preds = %77, %73
  %79 = call i64 @glfwGetTimerValue() #5
  %80 = sub i64 %79, %62
  %81 = uitofp i64 %80 to double
  %82 = fdiv double %81, %61
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, double noundef %82)
  call void @printHelp()
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  call void @glfwShowWindow(ptr noundef %29) #5
  %85 = call i64 @glfwGetTimerValue() #5
  %86 = call i32 @glfwWindowShouldClose(ptr noundef %29) #5
  %.not5860 = icmp eq i32 %86, 0
  br i1 %.not5860, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %78, %136
  %.04464 = phi i64 [ %87, %136 ], [ %85, %78 ]
  %.04563 = phi i32 [ %.1, %136 ], [ 0, %78 ]
  %.04662 = phi double [ %.147, %136 ], [ 0.000000e+00, %78 ]
  %.04861 = phi double [ %90, %136 ], [ 0.000000e+00, %78 ]
  call void @glfwPollEvents() #5
  %87 = call i64 @glfwGetTimerValue() #5
  %88 = load float, ptr getelementptr inbounds (i8, ptr @universe, i64 44), align 4, !tbaa !22
  %89 = fpext float %88 to double
  %90 = fadd double %.04861, %89
  %91 = sub i64 %87, %.04464
  %92 = uitofp i64 %91 to double
  %93 = fdiv double %92, %61
  call void @simulateTimestep(ptr noundef nonnull @universe) #5
  %94 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %94(i32 noundef 16384) #5
  call void @draw(ptr noundef nonnull @universe) #5
  %95 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %96 = call i32 %95() #5
  switch i32 %96, label %103 [
    i32 0, label %107
    i32 1280, label %104
    i32 1281, label %97
    i32 1282, label %98
    i32 1283, label %99
    i32 1284, label %100
    i32 1285, label %101
    i32 1286, label %102
  ]

97:                                               ; preds = %.lr.ph
  br label %104

98:                                               ; preds = %.lr.ph
  br label %104

99:                                               ; preds = %.lr.ph
  br label %104

100:                                              ; preds = %.lr.ph
  br label %104

101:                                              ; preds = %.lr.ph
  br label %104

102:                                              ; preds = %.lr.ph
  br label %104

103:                                              ; preds = %.lr.ph
  br label %104

104:                                              ; preds = %.lr.ph, %103, %102, %101, %100, %99, %98, %97
  %.0 = phi ptr [ @.str.30, %103 ], [ @.str.29, %102 ], [ @.str.28, %101 ], [ @.str.27, %100 ], [ @.str.26, %99 ], [ @.str.25, %98 ], [ @.str.24, %97 ], [ @.str.23, %.lr.ph ]
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.31, ptr noundef nonnull %.0, ptr noundef nonnull @.str.32, i32 noundef 302, ptr noundef nonnull @__func__.main) #6
  br label %107

107:                                              ; preds = %.lr.ph, %104
  %108 = fadd double %.04662, %93
  %109 = add nsw i32 %.04563, 1
  %110 = fcmp ult double %108, 1.000000e-01
  br i1 %110, label %136, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #5
  %112 = fcmp ult double %90, 1.000000e+06
  br i1 %112, label %120, label %113

113:                                              ; preds = %111
  %114 = fdiv double %90, 1.000000e+06
  %115 = load float, ptr getelementptr inbounds (i8, ptr @universe, i64 44), align 4, !tbaa !22
  %116 = fpext float %115 to double
  %117 = sitofp i32 %109 to double
  %118 = fdiv double %117, %108
  %119 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.37, double noundef %114, double noundef %116, double noundef %118) #5
  br label %135

120:                                              ; preds = %111
  %121 = fcmp ult double %90, 2.000000e+03
  br i1 %121, label %129, label %122

122:                                              ; preds = %120
  %123 = fdiv double %90, 1.000000e+03
  %124 = load float, ptr getelementptr inbounds (i8, ptr @universe, i64 44), align 4, !tbaa !22
  %125 = fpext float %124 to double
  %126 = sitofp i32 %109 to double
  %127 = fdiv double %126, %108
  %128 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.38, double noundef %123, double noundef %125, double noundef %127) #5
  br label %135

129:                                              ; preds = %120
  %130 = load float, ptr getelementptr inbounds (i8, ptr @universe, i64 44), align 4, !tbaa !22
  %131 = fpext float %130 to double
  %132 = sitofp i32 %109 to double
  %133 = fdiv double %132, %108
  %134 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.39, double noundef %90, double noundef %131, double noundef %133) #5
  br label %135

135:                                              ; preds = %122, %129, %113
  call void @glfwSetWindowTitle(ptr noundef %29, ptr noundef nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #5
  br label %136

136:                                              ; preds = %135, %107
  %.147 = phi double [ 0.000000e+00, %135 ], [ %108, %107 ]
  %.1 = phi i32 [ 0, %135 ], [ %109, %107 ]
  call void @glfwSwapBuffers(ptr noundef %29) #5
  %137 = call i32 @glfwWindowShouldClose(ptr noundef %29) #5
  %.not58 = icmp eq i32 %137, 0
  br i1 %.not58, label %.lr.ph, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %136, %78
  call void @destroyUniverse(ptr noundef nonnull @universe) #5
  call void @glfwDestroyWindow(ptr noundef %29) #5
  call void @glfwTerminate() #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @onGlfwError(i32 noundef, ptr noundef) #0

declare i32 @glfwInit() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @fatalError(ptr noundef) local_unnamed_addr #0

declare void @glfwWindowHint(i32 noundef, i32 noundef) local_unnamed_addr #3

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #3

declare i32 @gladLoadGLLoader(ptr noundef) local_unnamed_addr #3

declare ptr @glfwGetProcAddress(ptr noundef) #3

declare void @glfwSwapInterval(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @onGlError(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

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

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

declare ptr @glfwSetKeyCallback(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @onKey(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare ptr @glfwSetScrollCallback(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @onMouseWheel(ptr noundef, double noundef, double noundef) #0

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @onFramebufferResize(ptr noundef, i32 noundef, i32 noundef) #0

declare i64 @glfwGetTimerFrequency() local_unnamed_addr #3

declare i64 @glfwGetTimerValue() local_unnamed_addr #3

declare void @createUniverse(ptr dead_on_unwind writable sret(%struct.Universe) align 8, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @randomize(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

declare void @glfwShowWindow(ptr noundef) local_unnamed_addr #3

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #3

declare void @glfwPollEvents() local_unnamed_addr #3

declare void @simulateTimestep(ptr noundef) local_unnamed_addr #3

declare void @draw(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare void @glfwSetWindowTitle(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #3

declare void @destroyUniverse(ptr noundef) local_unnamed_addr #3

declare void @glfwDestroyWindow(ptr noundef) local_unnamed_addr #3

declare void @glfwTerminate() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @printHelp() local_unnamed_addr #0

attributes #0 = { 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 #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 4, !12, i64 36, i64 4, !12, i64 40, i64 4, !12, i64 44, i64 4, !12, i64 48, i64 4, !12, i64 52, i64 4, !9, i64 56, i64 4, !9, i64 64, i64 8, !14, i64 72, i64 4, !9, i64 76, i64 4, !9, i64 80, i64 4, !12, i64 84, i64 4, !9, i64 88, i64 4, !9, i64 92, i64 4, !9, i64 96, i64 4, !9, i64 100, i64 4, !9, i64 104, i64 4, !9, i64 108, i64 4, !9, i64 112, i64 4, !9, i64 116, i64 4, !9, i64 120, i64 4, !9, i64 124, i64 4, !9, i64 128, i64 4, !9, i64 132, i64 4, !9, i64 136, i64 4, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 52}
!17 = !{!"Universe", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !10, i64 52, !10, i64 56, !15, i64 64, !18, i64 72}
!18 = !{!"UniverseInternal", !10, i64 0, !10, i64 4, !13, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64}
!19 = !{!17, !13, i64 48}
!20 = !{!21, !10, i64 0}
!21 = !{!"gladGLversionStruct", !10, i64 0, !10, i64 4}
!22 = !{!17, !13, i64 44}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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