; LLVM IR from osmart/hole2 :: src/retired_routines (surface)

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

@culled_tri_count = external dso_local global i32, align 4
@smooth = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@dots = external dso_local global [30000 x [7 x double]], align 16
@culled_tri = external dso_local global [30000 x [6 x i32]], align 16
@stdout = external global ptr, align 8
@.str.67 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [17 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @prepi_out() #2 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  %2 = load i32, ptr @smooth, align 4, !tbaa !5
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %4, label %9

4:                                                ; preds = %0
  %5 = load ptr, ptr @stderr, align 8, !tbaa !9
  %6 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef @.str.67) #3
  %7 = load ptr, ptr @stderr, align 8, !tbaa !9
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef @.str.68) #3
  br label %9

9:                                                ; preds = %4, %0
  %10 = call i32 @vertex_normals()
  %11 = load ptr, ptr @stdout, align 8, !tbaa !9
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str.69) #3
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %192, %9
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = load i32, ptr @culled_tri_count, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %17, label %195

17:                                               ; preds = %13
  %18 = load ptr, ptr @stdout, align 8, !tbaa !9
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %20
  %22 = getelementptr inbounds [6 x i32], ptr %21, i64 0, i64 0
  %23 = load i32, ptr %22, align 8, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %24
  %26 = getelementptr inbounds [7 x double], ptr %25, i64 0, i64 0
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %29
  %31 = getelementptr inbounds [6 x i32], ptr %30, i64 0, i64 0
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %33
  %35 = getelementptr inbounds [7 x double], ptr %34, i64 0, i64 1
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %38
  %40 = getelementptr inbounds [6 x i32], ptr %39, i64 0, i64 0
  %41 = load i32, ptr %40, align 8, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %42
  %44 = getelementptr inbounds [7 x double], ptr %43, i64 0, i64 2
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.70, double noundef %27, double noundef %36, double noundef %45) #3
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %49
  %51 = getelementptr inbounds [6 x i32], ptr %50, i64 0, i64 1
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %53
  %55 = getelementptr inbounds [7 x double], ptr %54, i64 0, i64 0
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = load i32, ptr %1, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %58
  %60 = getelementptr inbounds [6 x i32], ptr %59, i64 0, i64 1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %62
  %64 = getelementptr inbounds [7 x double], ptr %63, i64 0, i64 1
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %67
  %69 = getelementptr inbounds [6 x i32], ptr %68, i64 0, i64 1
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %71
  %73 = getelementptr inbounds [7 x double], ptr %72, i64 0, i64 2
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.70, double noundef %56, double noundef %65, double noundef %74) #3
  %76 = load ptr, ptr @stdout, align 8, !tbaa !9
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %78
  %80 = getelementptr inbounds [6 x i32], ptr %79, i64 0, i64 2
  %81 = load i32, ptr %80, align 8, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %82
  %84 = getelementptr inbounds [7 x double], ptr %83, i64 0, i64 0
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %87
  %89 = getelementptr inbounds [6 x i32], ptr %88, i64 0, i64 2
  %90 = load i32, ptr %89, align 8, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %91
  %93 = getelementptr inbounds [7 x double], ptr %92, i64 0, i64 1
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load i32, ptr %1, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %96
  %98 = getelementptr inbounds [6 x i32], ptr %97, i64 0, i64 2
  %99 = load i32, ptr %98, align 8, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %100
  %102 = getelementptr inbounds [7 x double], ptr %101, i64 0, i64 2
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.70, double noundef %85, double noundef %94, double noundef %103) #3
  %105 = load ptr, ptr @stdout, align 8, !tbaa !9
  %106 = load i32, ptr %1, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %107
  %109 = getelementptr inbounds [6 x i32], ptr %108, i64 0, i64 0
  %110 = load i32, ptr %109, align 8, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %111
  %113 = getelementptr inbounds [7 x double], ptr %112, i64 0, i64 4
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = load i32, ptr %1, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %116
  %118 = getelementptr inbounds [6 x i32], ptr %117, i64 0, i64 0
  %119 = load i32, ptr %118, align 8, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %120
  %122 = getelementptr inbounds [7 x double], ptr %121, i64 0, i64 5
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %125
  %127 = getelementptr inbounds [6 x i32], ptr %126, i64 0, i64 0
  %128 = load i32, ptr %127, align 8, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %129
  %131 = getelementptr inbounds [7 x double], ptr %130, i64 0, i64 6
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.70, double noundef %114, double noundef %123, double noundef %132) #3
  %134 = load ptr, ptr @stdout, align 8, !tbaa !9
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %136
  %138 = getelementptr inbounds [6 x i32], ptr %137, i64 0, i64 1
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %140
  %142 = getelementptr inbounds [7 x double], ptr %141, i64 0, i64 4
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = load i32, ptr %1, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %145
  %147 = getelementptr inbounds [6 x i32], ptr %146, i64 0, i64 1
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %149
  %151 = getelementptr inbounds [7 x double], ptr %150, i64 0, i64 5
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = load i32, ptr %1, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %154
  %156 = getelementptr inbounds [6 x i32], ptr %155, i64 0, i64 1
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %158
  %160 = getelementptr inbounds [7 x double], ptr %159, i64 0, i64 6
  %161 = load double, ptr %160, align 8, !tbaa !11
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.70, double noundef %143, double noundef %152, double noundef %161) #3
  %163 = load ptr, ptr @stdout, align 8, !tbaa !9
  %164 = load i32, ptr %1, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %165
  %167 = getelementptr inbounds [6 x i32], ptr %166, i64 0, i64 2
  %168 = load i32, ptr %167, align 8, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %169
  %171 = getelementptr inbounds [7 x double], ptr %170, i64 0, i64 4
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = load i32, ptr %1, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %174
  %176 = getelementptr inbounds [6 x i32], ptr %175, i64 0, i64 2
  %177 = load i32, ptr %176, align 8, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %178
  %180 = getelementptr inbounds [7 x double], ptr %179, i64 0, i64 5
  %181 = load double, ptr %180, align 8, !tbaa !11
  %182 = load i32, ptr %1, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %183
  %185 = getelementptr inbounds [6 x i32], ptr %184, i64 0, i64 2
  %186 = load i32, ptr %185, align 8, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %187
  %189 = getelementptr inbounds [7 x double], ptr %188, i64 0, i64 6
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.71, double noundef %172, double noundef %181, double noundef %190) #3
  br label %192

192:                                              ; preds = %17
  %193 = load i32, ptr %1, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %1, align 4, !tbaa !5
  br label %13, !llvm.loop !13

195:                                              ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @vertex_normals() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 = distinct !{!13, !14}
!14 = !{!"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"

@culled_tri_count = external dso_local local_unnamed_addr global i32, align 4
@smooth = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@dots = external dso_local local_unnamed_addr global [30000 x [7 x double]], align 16
@culled_tri = external dso_local local_unnamed_addr global [30000 x [6 x i32]], align 16
@stdout = external local_unnamed_addr global ptr, align 8
@.str.67 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @prepi_out() local_unnamed_addr #1 {
  %1 = load i32, ptr @smooth, align 4, !tbaa !5
  %2 = icmp eq i32 %1, 1
  br i1 %2, label %3, label %8

3:                                                ; preds = %0
  %4 = load ptr, ptr @stderr, align 8, !tbaa !9
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.67) #2
  %6 = load ptr, ptr @stderr, align 8, !tbaa !9
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.68) #2
  br label %8

8:                                                ; preds = %3, %0
  %9 = tail call i32 @vertex_normals()
  %10 = load ptr, ptr @stdout, align 8, !tbaa !9
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.69) #3
  %12 = load i32, ptr @culled_tri_count, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %8 ]
  %14 = load ptr, ptr @stdout, align 8, !tbaa !9
  %15 = getelementptr inbounds [30000 x [6 x i32]], ptr @culled_tri, i64 0, i64 %indvars.iv
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %18, i64 8
  %21 = load double, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %18, i64 16
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.70, double noundef %19, double noundef %21, double noundef %23) #3
  %25 = load ptr, ptr @stdout, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %15, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %29, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.70, double noundef %30, double noundef %32, double noundef %34) #3
  %36 = load ptr, ptr @stdout, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %15, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %40, i64 8
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %40, i64 16
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.70, double noundef %41, double noundef %43, double noundef %45) #3
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = load i32, ptr %15, align 8, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %49
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %50, i64 40
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %50, i64 48
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.70, double noundef %52, double noundef %54, double noundef %56) #3
  %58 = load ptr, ptr @stdout, align 8, !tbaa !9
  %59 = load i32, ptr %26, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %60
  %62 = getelementptr inbounds i8, ptr %61, i64 32
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = getelementptr inbounds i8, ptr %61, i64 40
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds i8, ptr %61, i64 48
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.70, double noundef %63, double noundef %65, double noundef %67) #3
  %69 = load ptr, ptr @stdout, align 8, !tbaa !9
  %70 = load i32, ptr %37, align 8, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %71
  %73 = getelementptr inbounds i8, ptr %72, i64 32
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds i8, ptr %72, i64 40
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds i8, ptr %72, i64 48
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.71, double noundef %74, double noundef %76, double noundef %78) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %80 = load i32, ptr @culled_tri_count, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = icmp slt i64 %indvars.iv.next, %81
  br i1 %82, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %8
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @vertex_normals() local_unnamed_addr #1

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


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