; LLVM IR from zeux/meshoptimizer :: tools (simplifyfuzz)

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @LLVMFuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca [100 x [4 x float]], align 16
  %7 = alloca i32, align 4
  %8 = alloca [999 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [999 x i32], align 16
  %12 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %13 = load i64, ptr %5, align 8, !tbaa !9
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %136

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 0
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = zext i8 %19 to i32
  call void @srand(i32 noundef %20) #4
  call void @llvm.lifetime.start.p0(i64 1600, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %21

21:                                               ; preds = %54, %16
  %22 = load i32, ptr %7, align 4, !tbaa !12
  %23 = icmp slt i32 %22, 100
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %57

25:                                               ; preds = %21
  %26 = call i32 @rand() #4
  %27 = srem i32 %26, 10
  %28 = sitofp i32 %27 to float
  %29 = load i32, ptr %7, align 4, !tbaa !12
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 %30
  %32 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 0
  store float %28, ptr %32, align 16, !tbaa !14
  %33 = call i32 @rand() #4
  %34 = srem i32 %33, 10
  %35 = sitofp i32 %34 to float
  %36 = load i32, ptr %7, align 4, !tbaa !12
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 %37
  %39 = getelementptr inbounds [4 x float], ptr %38, i64 0, i64 1
  store float %35, ptr %39, align 4, !tbaa !14
  %40 = call i32 @rand() #4
  %41 = srem i32 %40, 10
  %42 = sitofp i32 %41 to float
  %43 = load i32, ptr %7, align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 %44
  %46 = getelementptr inbounds [4 x float], ptr %45, i64 0, i64 2
  store float %42, ptr %46, align 8, !tbaa !14
  %47 = call i32 @rand() #4
  %48 = srem i32 %47, 10
  %49 = sitofp i32 %48 to float
  %50 = load i32, ptr %7, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 %51
  %53 = getelementptr inbounds [4 x float], ptr %52, i64 0, i64 3
  store float %49, ptr %53, align 4, !tbaa !14
  br label %54

54:                                               ; preds = %25
  %55 = load i32, ptr %7, align 4, !tbaa !12
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %7, align 4, !tbaa !12
  br label %21, !llvm.loop !16

57:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 3996, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = sub i64 %58, 1
  %60 = icmp ult i64 %59, 999
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = load i64, ptr %5, align 8, !tbaa !9
  %63 = sub i64 %62, 1
  %64 = udiv i64 %63, 3
  %65 = mul i64 %64, 3
  br label %67

66:                                               ; preds = %57
  br label %67

67:                                               ; preds = %66, %61
  %68 = phi i64 [ %65, %61 ], [ 999, %66 ]
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %87, %67
  %71 = load i32, ptr %10, align 4, !tbaa !12
  %72 = load i32, ptr %9, align 4, !tbaa !12
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %90

75:                                               ; preds = %70
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load i32, ptr %10, align 4, !tbaa !12
  %78 = add nsw i32 1, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %76, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = zext i8 %81 to i32
  %83 = srem i32 %82, 100
  %84 = load i32, ptr %10, align 4, !tbaa !12
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 %85
  store i32 %83, ptr %86, align 4, !tbaa !12
  br label %87

87:                                               ; preds = %75
  %88 = load i32, ptr %10, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %10, align 4, !tbaa !12
  br label %70, !llvm.loop !18

90:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 3996, ptr %11) #4
  %91 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %92 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %93 = load i32, ptr %9, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %96 = getelementptr inbounds [4 x float], ptr %95, i64 0, i64 0
  %97 = call i64 @meshopt_simplify(ptr noundef %91, ptr noundef %92, i64 noundef %94, ptr noundef %96, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x3FB99999A0000000, i32 noundef 0, ptr noundef null)
  %98 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %99 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %100 = load i32, ptr %9, align 4, !tbaa !12
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %103 = getelementptr inbounds [4 x float], ptr %102, i64 0, i64 0
  %104 = call i64 @meshopt_simplify(ptr noundef %98, ptr noundef %99, i64 noundef %101, ptr noundef %103, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 0, ptr noundef null)
  %105 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %106 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %107 = load i32, ptr %9, align 4, !tbaa !12
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %110 = getelementptr inbounds [4 x float], ptr %109, i64 0, i64 0
  %111 = call i64 @meshopt_simplify(ptr noundef %105, ptr noundef %106, i64 noundef %108, ptr noundef %110, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 1, ptr noundef null)
  %112 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %113 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %114 = load i32, ptr %9, align 4, !tbaa !12
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %117 = getelementptr inbounds [4 x float], ptr %116, i64 0, i64 0
  %118 = call i64 @meshopt_simplify(ptr noundef %112, ptr noundef %113, i64 noundef %115, ptr noundef %117, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 2, ptr noundef null)
  %119 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %120 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %121 = load i32, ptr %9, align 4, !tbaa !12
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %124 = getelementptr inbounds [4 x float], ptr %123, i64 0, i64 0
  %125 = call i64 @meshopt_simplify(ptr noundef %119, ptr noundef %120, i64 noundef %122, ptr noundef %124, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 8, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store float 1.000000e+00, ptr %12, align 4, !tbaa !14
  %126 = getelementptr inbounds [999 x i32], ptr %11, i64 0, i64 0
  %127 = getelementptr inbounds [999 x i32], ptr %8, i64 0, i64 0
  %128 = load i32, ptr %9, align 4, !tbaa !12
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %131 = getelementptr inbounds [4 x float], ptr %130, i64 0, i64 0
  %132 = getelementptr inbounds [100 x [4 x float]], ptr %6, i64 0, i64 0
  %133 = getelementptr inbounds [4 x float], ptr %132, i64 0, i64 0
  %134 = getelementptr inbounds float, ptr %133, i64 3
  %135 = call i64 @meshopt_simplifyWithAttributes(ptr noundef %126, ptr noundef %127, i64 noundef %129, ptr noundef %131, i64 noundef 100, i64 noundef 16, ptr noundef %134, i64 noundef 16, ptr noundef %12, i64 noundef 1, ptr noundef null, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 0, ptr noundef null)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 3996, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 3996, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1600, ptr %6) #4
  br label %136

136:                                              ; preds = %90, %15
  %137 = load i32, ptr %3, align 4
  ret i32 %137
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

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

; Function Attrs: nounwind
declare i32 @rand() #1

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

declare i64 @meshopt_simplify(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) #3

declare i64 @meshopt_simplifyWithAttributes(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @LLVMFuzzerTestOneInput(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca [100 x [4 x float]], align 16
  %4 = alloca [999 x i32], align 16
  %5 = alloca [999 x i32], align 16
  %6 = alloca float, align 4
  %7 = icmp eq i64 %1, 0
  br i1 %7, label %49, label %8

8:                                                ; preds = %2
  %9 = load i8, ptr %0, align 1, !tbaa !5
  %10 = zext i8 %9 to i32
  tail call void @srand(i32 noundef %10) #4
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %3) #4
  br label %13

11:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 3996, ptr nonnull %4) #4
  %12 = icmp ult i64 %1, 1000
  br i1 %12, label %25, label %.lr.ph.preheader

13:                                               ; preds = %8, %13
  %indvars.iv = phi i64 [ 0, %8 ], [ %indvars.iv.next, %13 ]
  %14 = tail call i32 @rand() #4
  %15 = getelementptr inbounds [100 x [4 x float]], ptr %3, i64 0, i64 %indvars.iv
  %16 = tail call i32 @rand() #4
  %17 = tail call i32 @rand() #4
  %18 = tail call i32 @rand() #4
  %19 = insertelement <4 x i32> poison, i32 %14, i64 0
  %20 = insertelement <4 x i32> %19, i32 %16, i64 1
  %21 = insertelement <4 x i32> %20, i32 %17, i64 2
  %22 = insertelement <4 x i32> %21, i32 %18, i64 3
  %23 = srem <4 x i32> %22, <i32 10, i32 10, i32 10, i32 10>
  %24 = sitofp <4 x i32> %23 to <4 x float>
  store <4 x float> %24, ptr %15, align 16, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond.not, label %11, label %13, !llvm.loop !10

25:                                               ; preds = %11
  %26 = add nsw i64 %1, -1
  %27 = urem i64 %26, 3
  %28 = sub nuw nsw i64 %26, %27
  %29 = icmp sgt i64 %28, 0
  br i1 %29, label %.lr.ph.preheader, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %25
  %.pre = and i64 %28, 4294967295
  br label %._crit_edge

.lr.ph.preheader:                                 ; preds = %11, %25
  %30 = phi i64 [ %28, %25 ], [ 999, %11 ]
  %wide.trip.count = and i64 %30, 4294967295
  %min.iters.check = icmp ult i64 %wide.trip.count, 4
  br i1 %min.iters.check, label %.lr.ph.preheader34, label %vector.ph

.lr.ph.preheader34:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv30.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.mod.vf = and i64 %30, 3
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %31 = or disjoint i64 %index, 1
  %32 = getelementptr inbounds i8, ptr %0, i64 %31
  %wide.load = load <4 x i8>, ptr %32, align 1, !tbaa !5
  %33 = urem <4 x i8> %wide.load, <i8 100, i8 100, i8 100, i8 100>
  %34 = zext nneg <4 x i8> %33 to <4 x i32>
  %35 = getelementptr inbounds [999 x i32], ptr %4, i64 0, i64 %index
  store <4 x i32> %34, ptr %35, align 16, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %36 = icmp eq i64 %index.next, %n.vec
  br i1 %36, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader34

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %wide.trip.count, %middle.block ], [ %wide.trip.count, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 3996, ptr nonnull %5) #4
  %37 = call i64 @meshopt_simplify(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x3FB99999A0000000, i32 noundef 0, ptr noundef null)
  %38 = call i64 @meshopt_simplify(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 0, ptr noundef null)
  %39 = call i64 @meshopt_simplify(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 1, ptr noundef null)
  %40 = call i64 @meshopt_simplify(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 2, ptr noundef null)
  %41 = call i64 @meshopt_simplify(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 8, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store float 1.000000e+00, ptr %6, align 4, !tbaa !8
  %42 = getelementptr inbounds i8, ptr %3, i64 12
  %43 = call i64 @meshopt_simplifyWithAttributes(ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef %.pre-phi, ptr noundef nonnull %3, i64 noundef 100, i64 noundef 16, ptr noundef nonnull %42, i64 noundef 16, ptr noundef nonnull %6, i64 noundef 1, ptr noundef null, i64 noundef 0, float noundef 0x47EFFFFFE0000000, i32 noundef 0, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 3996, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 3996, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %3) #4
  br label %49

.lr.ph:                                           ; preds = %.lr.ph.preheader34, %.lr.ph
  %indvars.iv30 = phi i64 [ %indvars.iv.next31, %.lr.ph ], [ %indvars.iv30.ph, %.lr.ph.preheader34 ]
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %44 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv.next31
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = urem i8 %45, 100
  %47 = zext nneg i8 %46 to i32
  %48 = getelementptr inbounds [999 x i32], ptr %4, i64 0, i64 %indvars.iv30
  store i32 %47, ptr %48, align 4, !tbaa !12
  %exitcond33.not = icmp eq i64 %indvars.iv.next31, %wide.trip.count
  br i1 %exitcond33.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

49:                                               ; preds = %2, %._crit_edge
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) 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: nounwind
declare i32 @rand() 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 i64 @meshopt_simplify(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i64 @meshopt_simplifyWithAttributes(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = distinct !{!14, !11, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !11, !16, !15}


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