; LLVM IR from google/latency-benchmark :: src (latency-benchmark)

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

@last_draw_time = external dso_local global i64, align 8
@biggest_draw_time_gap = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @draw_pattern_with_opengl(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca [4 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %14 = call i64 (...) @get_nanoseconds()
  store i64 %14, ptr %9, align 8, !tbaa !11
  %15 = load i64, ptr @last_draw_time, align 8, !tbaa !11
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %17, label %31

17:                                               ; preds = %4
  %18 = load i64, ptr %9, align 8, !tbaa !11
  %19 = load i64, ptr @last_draw_time, align 8, !tbaa !11
  %20 = sub nsw i64 %18, %19
  %21 = load i64, ptr @biggest_draw_time_gap, align 8, !tbaa !11
  %22 = icmp sgt i64 %20, %21
  br i1 %22, label %23, label %30

23:                                               ; preds = %17
  %24 = load i64, ptr %9, align 8, !tbaa !11
  %25 = load i64, ptr @last_draw_time, align 8, !tbaa !11
  %26 = sub nsw i64 %24, %25
  store i64 %26, ptr @biggest_draw_time_gap, align 8, !tbaa !11
  %27 = load i64, ptr @biggest_draw_time_gap, align 8, !tbaa !11
  %28 = sitofp i64 %27 to double
  %29 = fdiv double %28, 1.000000e+06
  call void (ptr, ...) @debug_log(ptr noundef @.str, double noundef %29)
  br label %30

30:                                               ; preds = %23, %17
  br label %31

31:                                               ; preds = %30, %4
  %32 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %32, ptr @last_draw_time, align 8, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %31
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 18
  store i8 1, ptr %37, align 1, !tbaa !13
  br label %41

38:                                               ; preds = %31
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 18
  store i8 6, ptr %40, align 1, !tbaa !13
  br label %41

41:                                               ; preds = %38, %35
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = trunc i32 %42 to i8
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 22
  store i8 %43, ptr %45, align 1, !tbaa !13
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 21
  store i8 %43, ptr %47, align 1, !tbaa !13
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 20
  store i8 %43, ptr %49, align 1, !tbaa !13
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = trunc i32 %50 to i8
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 17
  store i8 %51, ptr %53, align 1, !tbaa !13
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load i8, ptr %55, align 1, !tbaa !13
  %57 = add i8 %56, 1
  store i8 %57, ptr %55, align 1, !tbaa !13
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = add i8 %60, 1
  store i8 %61, ptr %59, align 1, !tbaa !13
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 25
  %64 = load i8, ptr %63, align 1, !tbaa !13
  %65 = add i8 %64, 1
  store i8 %65, ptr %63, align 1, !tbaa !13
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 26
  %68 = load i8, ptr %67, align 1, !tbaa !13
  %69 = add i8 %68, 1
  store i8 %69, ptr %67, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %70 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %71 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 3
  %72 = load i32, ptr %71, align 4, !tbaa !9
  store i32 %72, ptr %11, align 4, !tbaa !9
  call void @glDisable(i32 noundef 3089)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store float 1.000000e+00, ptr %12, align 4, !tbaa !14
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load i8, ptr %74, align 1, !tbaa !13
  %76 = zext i8 %75 to i32
  %77 = srem i32 %76, 2
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %41
  store float 0x3FE99999A0000000, ptr %12, align 4, !tbaa !14
  br label %80

80:                                               ; preds = %79, %41
  %81 = load float, ptr %12, align 4, !tbaa !14
  %82 = load float, ptr %12, align 4, !tbaa !14
  %83 = load float, ptr %12, align 4, !tbaa !14
  call void @glClearColor(float noundef %81, float noundef %82, float noundef %83, float noundef 1.000000e+00)
  call void @glClear(i32 noundef 16384)
  call void @glEnable(i32 noundef 3089)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %122, %80
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = icmp slt i32 %85, 32
  br i1 %86, label %88, label %87

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

88:                                               ; preds = %84
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = add nsw i32 %90, 2
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %89, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = zext i8 %94 to i32
  %96 = sitofp i32 %95 to double
  %97 = fdiv double %96, 2.550000e+02
  %98 = fptrunc double %97 to float
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %99, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !13
  %105 = zext i8 %104 to i32
  %106 = sitofp i32 %105 to double
  %107 = fdiv double %106, 2.550000e+02
  %108 = fptrunc double %107 to float
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i8, ptr %109, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !13
  %114 = zext i8 %113 to i32
  %115 = sitofp i32 %114 to double
  %116 = fdiv double %115, 2.550000e+02
  %117 = fptrunc double %116 to float
  call void @glClearColor(float noundef %98, float noundef %108, float noundef %117, float noundef 1.000000e+00)
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = sdiv i32 %118, 4
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = sub nsw i32 %120, 1
  call void @glScissor(i32 noundef %119, i32 noundef %121, i32 noundef 1, i32 noundef 1)
  call void @glClear(i32 noundef 16384)
  br label %122

122:                                              ; preds = %88
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = add nsw i32 %123, 4
  store i32 %124, ptr %13, align 4, !tbaa !9
  br label %84, !llvm.loop !16

125:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

declare i64 @get_nanoseconds(...) #2

declare void @debug_log(ptr noundef, ...) #2

declare void @glGetIntegerv(i32 noundef, ptr noundef) #2

declare void @glDisable(i32 noundef) #2

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) #2

declare void @glClear(i32 noundef) #2

declare void @glEnable(i32 noundef) #2

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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"

@last_draw_time = external dso_local local_unnamed_addr global i64, align 8
@biggest_draw_time_gap = external dso_local local_unnamed_addr global i64, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @draw_pattern_with_opengl(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [4 x i32], align 16
  %6 = tail call i64 (...) @get_nanoseconds() #3
  %7 = load i64, ptr @last_draw_time, align 8, !tbaa !5
  %8 = icmp sgt i64 %7, 0
  br i1 %8, label %9, label %16

9:                                                ; preds = %4
  %10 = sub nsw i64 %6, %7
  %11 = load i64, ptr @biggest_draw_time_gap, align 8, !tbaa !5
  %12 = icmp sgt i64 %10, %11
  br i1 %12, label %13, label %16

13:                                               ; preds = %9
  store i64 %10, ptr @biggest_draw_time_gap, align 8, !tbaa !5
  %14 = sitofp i64 %10 to double
  %15 = fdiv double %14, 1.000000e+06
  tail call void (ptr, ...) @debug_log(ptr noundef nonnull @.str, double noundef %15) #3
  br label %16

16:                                               ; preds = %9, %13, %4
  store i64 %6, ptr @last_draw_time, align 8, !tbaa !5
  %17 = icmp eq i32 %3, 0
  %spec.select = select i1 %17, i8 1, i8 6
  %18 = getelementptr inbounds i8, ptr %0, i64 18
  store i8 %spec.select, ptr %18, align 1
  %19 = trunc i32 %1 to i8
  %20 = getelementptr inbounds i8, ptr %0, i64 22
  store i8 %19, ptr %20, align 1, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 %19, ptr %21, align 1, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 %19, ptr %22, align 1, !tbaa !9
  %23 = trunc i32 %2 to i8
  %24 = getelementptr inbounds i8, ptr %0, i64 17
  store i8 %23, ptr %24, align 1, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = add i8 %26, 1
  store i8 %27, ptr %25, align 1, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = add i8 %29, 1
  store i8 %30, ptr %28, align 1, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %0, i64 25
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = add i8 %32, 1
  store i8 %33, ptr %31, align 1, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %0, i64 26
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = add i8 %35, 1
  store i8 %36, ptr %34, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef nonnull %5) #3
  %37 = getelementptr inbounds i8, ptr %5, i64 12
  %38 = load i32, ptr %37, align 4, !tbaa !10
  call void @glDisable(i32 noundef 3089) #3
  %39 = load i8, ptr %25, align 1, !tbaa !9
  %40 = and i8 %39, 1
  %.not = icmp eq i8 %40, 0
  %spec.store.select = select i1 %.not, float 1.000000e+00, float 0x3FE99999A0000000
  call void @glClearColor(float noundef %spec.store.select, float noundef %spec.store.select, float noundef %spec.store.select, float noundef 1.000000e+00) #3
  call void @glClear(i32 noundef 16384) #3
  call void @glEnable(i32 noundef 3089) #3
  %41 = add nsw i32 %38, -1
  %42 = getelementptr inbounds i8, ptr %0, i64 2
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = uitofp i8 %43 to double
  %45 = fdiv double %44, 2.550000e+02
  %46 = fptrunc double %45 to float
  %47 = getelementptr inbounds i8, ptr %0, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = uitofp i8 %48 to double
  %50 = fdiv double %49, 2.550000e+02
  %51 = fptrunc double %50 to float
  %52 = load i8, ptr %0, align 1, !tbaa !9
  %53 = uitofp i8 %52 to double
  %54 = fdiv double %53, 2.550000e+02
  %55 = fptrunc double %54 to float
  call void @glClearColor(float noundef %46, float noundef %51, float noundef %55, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 0, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %56 = getelementptr inbounds i8, ptr %0, i64 6
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = uitofp i8 %57 to double
  %59 = fdiv double %58, 2.550000e+02
  %60 = fptrunc double %59 to float
  %61 = getelementptr inbounds i8, ptr %0, i64 5
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = uitofp i8 %62 to double
  %64 = fdiv double %63, 2.550000e+02
  %65 = fptrunc double %64 to float
  %66 = getelementptr inbounds i8, ptr %0, i64 4
  %67 = load i8, ptr %66, align 1, !tbaa !9
  %68 = uitofp i8 %67 to double
  %69 = fdiv double %68, 2.550000e+02
  %70 = fptrunc double %69 to float
  call void @glClearColor(float noundef %60, float noundef %65, float noundef %70, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 1, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %71 = getelementptr inbounds i8, ptr %0, i64 10
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = uitofp i8 %72 to double
  %74 = fdiv double %73, 2.550000e+02
  %75 = fptrunc double %74 to float
  %76 = getelementptr inbounds i8, ptr %0, i64 9
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = uitofp i8 %77 to double
  %79 = fdiv double %78, 2.550000e+02
  %80 = fptrunc double %79 to float
  %81 = getelementptr inbounds i8, ptr %0, i64 8
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = uitofp i8 %82 to double
  %84 = fdiv double %83, 2.550000e+02
  %85 = fptrunc double %84 to float
  call void @glClearColor(float noundef %75, float noundef %80, float noundef %85, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 2, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %86 = getelementptr inbounds i8, ptr %0, i64 14
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = uitofp i8 %87 to double
  %89 = fdiv double %88, 2.550000e+02
  %90 = fptrunc double %89 to float
  %91 = getelementptr inbounds i8, ptr %0, i64 13
  %92 = load i8, ptr %91, align 1, !tbaa !9
  %93 = uitofp i8 %92 to double
  %94 = fdiv double %93, 2.550000e+02
  %95 = fptrunc double %94 to float
  %96 = getelementptr inbounds i8, ptr %0, i64 12
  %97 = load i8, ptr %96, align 1, !tbaa !9
  %98 = uitofp i8 %97 to double
  %99 = fdiv double %98, 2.550000e+02
  %100 = fptrunc double %99 to float
  call void @glClearColor(float noundef %90, float noundef %95, float noundef %100, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 3, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %101 = load i8, ptr %18, align 1, !tbaa !9
  %102 = uitofp i8 %101 to double
  %103 = fdiv double %102, 2.550000e+02
  %104 = fptrunc double %103 to float
  %105 = load i8, ptr %24, align 1, !tbaa !9
  %106 = uitofp i8 %105 to double
  %107 = fdiv double %106, 2.550000e+02
  %108 = fptrunc double %107 to float
  %109 = load i8, ptr %25, align 1, !tbaa !9
  %110 = uitofp i8 %109 to double
  %111 = fdiv double %110, 2.550000e+02
  %112 = fptrunc double %111 to float
  call void @glClearColor(float noundef %104, float noundef %108, float noundef %112, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 4, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %113 = load i8, ptr %20, align 1, !tbaa !9
  %114 = uitofp i8 %113 to double
  %115 = fdiv double %114, 2.550000e+02
  %116 = fptrunc double %115 to float
  %117 = load i8, ptr %21, align 1, !tbaa !9
  %118 = uitofp i8 %117 to double
  %119 = fdiv double %118, 2.550000e+02
  %120 = fptrunc double %119 to float
  %121 = load i8, ptr %22, align 1, !tbaa !9
  %122 = uitofp i8 %121 to double
  %123 = fdiv double %122, 2.550000e+02
  %124 = fptrunc double %123 to float
  call void @glClearColor(float noundef %116, float noundef %120, float noundef %124, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 5, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %125 = load i8, ptr %34, align 1, !tbaa !9
  %126 = uitofp i8 %125 to double
  %127 = fdiv double %126, 2.550000e+02
  %128 = fptrunc double %127 to float
  %129 = load i8, ptr %31, align 1, !tbaa !9
  %130 = uitofp i8 %129 to double
  %131 = fdiv double %130, 2.550000e+02
  %132 = fptrunc double %131 to float
  %133 = load i8, ptr %28, align 1, !tbaa !9
  %134 = uitofp i8 %133 to double
  %135 = fdiv double %134, 2.550000e+02
  %136 = fptrunc double %135 to float
  call void @glClearColor(float noundef %128, float noundef %132, float noundef %136, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 6, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  %137 = getelementptr inbounds i8, ptr %0, i64 30
  %138 = load i8, ptr %137, align 1, !tbaa !9
  %139 = uitofp i8 %138 to double
  %140 = fdiv double %139, 2.550000e+02
  %141 = fptrunc double %140 to float
  %142 = getelementptr inbounds i8, ptr %0, i64 29
  %143 = load i8, ptr %142, align 1, !tbaa !9
  %144 = uitofp i8 %143 to double
  %145 = fdiv double %144, 2.550000e+02
  %146 = fptrunc double %145 to float
  %147 = getelementptr inbounds i8, ptr %0, i64 28
  %148 = load i8, ptr %147, align 1, !tbaa !9
  %149 = uitofp i8 %148 to double
  %150 = fdiv double %149, 2.550000e+02
  %151 = fptrunc double %150 to float
  call void @glClearColor(float noundef %141, float noundef %146, float noundef %151, float noundef 1.000000e+00) #3
  call void @glScissor(i32 noundef 7, i32 noundef %41, i32 noundef 1, i32 noundef 1) #3
  call void @glClear(i32 noundef 16384) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  ret void
}

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

declare i64 @get_nanoseconds(...) local_unnamed_addr #2

declare void @debug_log(ptr noundef, ...) local_unnamed_addr #2

declare void @glGetIntegerv(i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glDisable(i32 noundef) local_unnamed_addr #2

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

declare void @glClear(i32 noundef) local_unnamed_addr #2

declare void @glEnable(i32 noundef) local_unnamed_addr #2

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass