; LLVM IR from jgaeddert/liquid-dsp :: src/fec/src (fec_secded3932)

; 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.div_t = type { i32, i32 }

@secded3932_syndrome_w1 = external dso_local global [39 x i8], align 16
@liquid_c_ones = external constant [256 x i8], align 16

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @fec_secded3932_compute_syndrome(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @fec_secded3932_estimate_ehat(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.div_t, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 0
  store i8 0, ptr %12, align 1, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 1
  store i8 0, ptr %14, align 1, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 2
  store i8 0, ptr %16, align 1, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 3
  store i8 0, ptr %18, align 1, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  store i8 0, ptr %20, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call zeroext i8 @fec_secded3932_compute_syndrome(ptr noundef %21)
  store i8 %22, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %23 = load i8, ptr %6, align 1, !tbaa !9
  %24 = zext i8 %23 to i64
  %25 = getelementptr inbounds [256 x i8], ptr @liquid_c_ones, i64 0, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = zext i8 %26 to i32
  store i32 %27, ptr %7, align 4, !tbaa !10
  %28 = load i32, ptr %7, align 4, !tbaa !10
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %67

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %32

32:                                               ; preds = %59, %31
  %33 = load i32, ptr %9, align 4, !tbaa !10
  %34 = icmp ult i32 %33, 39
  br i1 %34, label %35, label %62

35:                                               ; preds = %32
  %36 = load i8, ptr %6, align 1, !tbaa !9
  %37 = zext i8 %36 to i32
  %38 = load i32, ptr %9, align 4, !tbaa !10
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds [39 x i8], ptr @secded3932_syndrome_w1, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = zext i8 %41 to i32
  %43 = icmp eq i32 %37, %42
  br i1 %43, label %44, label %58

44:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %45 = load i32, ptr %9, align 4, !tbaa !10
  %46 = call i64 @div(i32 noundef %45, i32 noundef 8) #4
  store i64 %46, ptr %10, align 4
  %47 = getelementptr inbounds %struct.div_t, ptr %10, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !12
  %49 = shl i32 1, %48
  %50 = trunc i32 %49 to i8
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.div_t, ptr %10, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = sub nsw i32 5, %53
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %51, i64 %56
  store i8 %50, ptr %57, align 1, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %63

58:                                               ; preds = %35
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %9, align 4, !tbaa !10
  %61 = add i32 %60, 1
  store i32 %61, ptr %9, align 4, !tbaa !10
  br label %32, !llvm.loop !15

62:                                               ; preds = %32
  store i32 0, ptr %8, align 4
  br label %63

63:                                               ; preds = %62, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %64 = load i32, ptr %8, align 4
  switch i32 %64, label %67 [
    i32 0, label %65
  ]

65:                                               ; preds = %63
  br label %66

66:                                               ; preds = %65
  store i32 2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %67

67:                                               ; preds = %66, %63, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  %68 = load i32, ptr %3, align 4
  ret i32 %68
}

; Function Attrs: nounwind willreturn memory(none)
declare i64 @div(i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(none) "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 }
attributes #4 = { nounwind willreturn memory(none) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 4}
!13 = !{!"", !11, i64 0, !11, i64 4}
!14 = !{!13, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

@secded3932_syndrome_w1 = external dso_local local_unnamed_addr global [39 x i8], align 16
@liquid_c_ones = external local_unnamed_addr constant [256 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @fec_secded3932_compute_syndrome(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @fec_secded3932_estimate_ehat(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %1, i8 0, i64 5, i1 false)
  %3 = tail call zeroext i8 @fec_secded3932_compute_syndrome(ptr noundef %0)
  %4 = zext i8 %3 to i64
  %5 = getelementptr inbounds [256 x i8], ptr @liquid_c_ones, i64 0, i64 %4
  %6 = load i8, ptr %5, align 1, !tbaa !5
  %7 = icmp eq i8 %6, 0
  br i1 %7, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %8 = load i8, ptr @secded3932_syndrome_w1, align 16, !tbaa !5
  %9 = icmp eq i8 %3, %8
  br i1 %9, label %10, label %.preheader.1

10:                                               ; preds = %.preheader.38, %.preheader.37, %.preheader.36, %.preheader.35, %.preheader.34, %.preheader.33, %.preheader.32, %.preheader.31, %.preheader.30, %.preheader.29, %.preheader.28, %.preheader.27, %.preheader.26, %.preheader.25, %.preheader.24, %.preheader.23, %.preheader.22, %.preheader.21, %.preheader.20, %.preheader.19, %.preheader.18, %.preheader.17, %.preheader.16, %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %.01618.lcssa.wide = phi i32 [ 0, %.preheader.preheader ], [ 1, %.preheader.1 ], [ 2, %.preheader.2 ], [ 3, %.preheader.3 ], [ 4, %.preheader.4 ], [ 5, %.preheader.5 ], [ 6, %.preheader.6 ], [ 7, %.preheader.7 ], [ 8, %.preheader.8 ], [ 9, %.preheader.9 ], [ 10, %.preheader.10 ], [ 11, %.preheader.11 ], [ 12, %.preheader.12 ], [ 13, %.preheader.13 ], [ 14, %.preheader.14 ], [ 15, %.preheader.15 ], [ 16, %.preheader.16 ], [ 17, %.preheader.17 ], [ 18, %.preheader.18 ], [ 19, %.preheader.19 ], [ 20, %.preheader.20 ], [ 21, %.preheader.21 ], [ 22, %.preheader.22 ], [ 23, %.preheader.23 ], [ 24, %.preheader.24 ], [ 25, %.preheader.25 ], [ 26, %.preheader.26 ], [ 27, %.preheader.27 ], [ 28, %.preheader.28 ], [ 29, %.preheader.29 ], [ 30, %.preheader.30 ], [ 31, %.preheader.31 ], [ 32, %.preheader.32 ], [ 33, %.preheader.33 ], [ 34, %.preheader.34 ], [ 35, %.preheader.35 ], [ 36, %.preheader.36 ], [ 37, %.preheader.37 ], [ 38, %.preheader.38 ]
  %11 = tail call i64 @div(i32 noundef %.01618.lcssa.wide, i32 noundef 8) #3
  %.sroa.4.0.extract.shift = lshr i64 %11, 32
  %.sroa.4.0.extract.trunc = trunc nuw i64 %.sroa.4.0.extract.shift to i32
  %12 = shl nuw i32 1, %.sroa.4.0.extract.trunc
  %13 = trunc i32 %12 to i8
  %14 = shl i64 %11, 32
  %sext = sub i64 17179869184, %14
  %15 = ashr exact i64 %sext, 32
  %16 = getelementptr inbounds i8, ptr %1, i64 %15
  store i8 %13, ptr %16, align 1, !tbaa !5
  br label %.loopexit

.preheader.1:                                     ; preds = %.preheader.preheader
  %17 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 1), align 1, !tbaa !5
  %18 = icmp eq i8 %3, %17
  br i1 %18, label %10, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 2), align 2, !tbaa !5
  %20 = icmp eq i8 %3, %19
  br i1 %20, label %10, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %21 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 3), align 1, !tbaa !5
  %22 = icmp eq i8 %3, %21
  br i1 %22, label %10, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %23 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 4), align 4, !tbaa !5
  %24 = icmp eq i8 %3, %23
  br i1 %24, label %10, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 5), align 1, !tbaa !5
  %26 = icmp eq i8 %3, %25
  br i1 %26, label %10, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %27 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 6), align 2, !tbaa !5
  %28 = icmp eq i8 %3, %27
  br i1 %28, label %10, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %29 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 7), align 1, !tbaa !5
  %30 = icmp eq i8 %3, %29
  br i1 %30, label %10, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %31 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 8), align 8, !tbaa !5
  %32 = icmp eq i8 %3, %31
  br i1 %32, label %10, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 9), align 1, !tbaa !5
  %34 = icmp eq i8 %3, %33
  br i1 %34, label %10, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %35 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 10), align 2, !tbaa !5
  %36 = icmp eq i8 %3, %35
  br i1 %36, label %10, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %37 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 11), align 1, !tbaa !5
  %38 = icmp eq i8 %3, %37
  br i1 %38, label %10, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %39 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 12), align 4, !tbaa !5
  %40 = icmp eq i8 %3, %39
  br i1 %40, label %10, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %41 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 13), align 1, !tbaa !5
  %42 = icmp eq i8 %3, %41
  br i1 %42, label %10, label %.preheader.14

.preheader.14:                                    ; preds = %.preheader.13
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 14), align 2, !tbaa !5
  %44 = icmp eq i8 %3, %43
  br i1 %44, label %10, label %.preheader.15

.preheader.15:                                    ; preds = %.preheader.14
  %45 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 15), align 1, !tbaa !5
  %46 = icmp eq i8 %3, %45
  br i1 %46, label %10, label %.preheader.16

.preheader.16:                                    ; preds = %.preheader.15
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 16), align 16, !tbaa !5
  %48 = icmp eq i8 %3, %47
  br i1 %48, label %10, label %.preheader.17

.preheader.17:                                    ; preds = %.preheader.16
  %49 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 17), align 1, !tbaa !5
  %50 = icmp eq i8 %3, %49
  br i1 %50, label %10, label %.preheader.18

.preheader.18:                                    ; preds = %.preheader.17
  %51 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 18), align 2, !tbaa !5
  %52 = icmp eq i8 %3, %51
  br i1 %52, label %10, label %.preheader.19

.preheader.19:                                    ; preds = %.preheader.18
  %53 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 19), align 1, !tbaa !5
  %54 = icmp eq i8 %3, %53
  br i1 %54, label %10, label %.preheader.20

.preheader.20:                                    ; preds = %.preheader.19
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 20), align 4, !tbaa !5
  %56 = icmp eq i8 %3, %55
  br i1 %56, label %10, label %.preheader.21

.preheader.21:                                    ; preds = %.preheader.20
  %57 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 21), align 1, !tbaa !5
  %58 = icmp eq i8 %3, %57
  br i1 %58, label %10, label %.preheader.22

.preheader.22:                                    ; preds = %.preheader.21
  %59 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 22), align 2, !tbaa !5
  %60 = icmp eq i8 %3, %59
  br i1 %60, label %10, label %.preheader.23

.preheader.23:                                    ; preds = %.preheader.22
  %61 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 23), align 1, !tbaa !5
  %62 = icmp eq i8 %3, %61
  br i1 %62, label %10, label %.preheader.24

.preheader.24:                                    ; preds = %.preheader.23
  %63 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 24), align 8, !tbaa !5
  %64 = icmp eq i8 %3, %63
  br i1 %64, label %10, label %.preheader.25

.preheader.25:                                    ; preds = %.preheader.24
  %65 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 25), align 1, !tbaa !5
  %66 = icmp eq i8 %3, %65
  br i1 %66, label %10, label %.preheader.26

.preheader.26:                                    ; preds = %.preheader.25
  %67 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 26), align 2, !tbaa !5
  %68 = icmp eq i8 %3, %67
  br i1 %68, label %10, label %.preheader.27

.preheader.27:                                    ; preds = %.preheader.26
  %69 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 27), align 1, !tbaa !5
  %70 = icmp eq i8 %3, %69
  br i1 %70, label %10, label %.preheader.28

.preheader.28:                                    ; preds = %.preheader.27
  %71 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 28), align 4, !tbaa !5
  %72 = icmp eq i8 %3, %71
  br i1 %72, label %10, label %.preheader.29

.preheader.29:                                    ; preds = %.preheader.28
  %73 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 29), align 1, !tbaa !5
  %74 = icmp eq i8 %3, %73
  br i1 %74, label %10, label %.preheader.30

.preheader.30:                                    ; preds = %.preheader.29
  %75 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 30), align 2, !tbaa !5
  %76 = icmp eq i8 %3, %75
  br i1 %76, label %10, label %.preheader.31

.preheader.31:                                    ; preds = %.preheader.30
  %77 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 31), align 1, !tbaa !5
  %78 = icmp eq i8 %3, %77
  br i1 %78, label %10, label %.preheader.32

.preheader.32:                                    ; preds = %.preheader.31
  %79 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 32), align 16, !tbaa !5
  %80 = icmp eq i8 %3, %79
  br i1 %80, label %10, label %.preheader.33

.preheader.33:                                    ; preds = %.preheader.32
  %81 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 33), align 1, !tbaa !5
  %82 = icmp eq i8 %3, %81
  br i1 %82, label %10, label %.preheader.34

.preheader.34:                                    ; preds = %.preheader.33
  %83 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 34), align 2, !tbaa !5
  %84 = icmp eq i8 %3, %83
  br i1 %84, label %10, label %.preheader.35

.preheader.35:                                    ; preds = %.preheader.34
  %85 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 35), align 1, !tbaa !5
  %86 = icmp eq i8 %3, %85
  br i1 %86, label %10, label %.preheader.36

.preheader.36:                                    ; preds = %.preheader.35
  %87 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 36), align 4, !tbaa !5
  %88 = icmp eq i8 %3, %87
  br i1 %88, label %10, label %.preheader.37

.preheader.37:                                    ; preds = %.preheader.36
  %89 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 37), align 1, !tbaa !5
  %90 = icmp eq i8 %3, %89
  br i1 %90, label %10, label %.preheader.38

.preheader.38:                                    ; preds = %.preheader.37
  %91 = load i8, ptr getelementptr inbounds (i8, ptr @secded3932_syndrome_w1, i64 38), align 2, !tbaa !5
  %92 = icmp eq i8 %3, %91
  br i1 %92, label %10, label %.loopexit

.loopexit:                                        ; preds = %.preheader.38, %10, %2
  %.1 = phi i32 [ 0, %2 ], [ 1, %10 ], [ 2, %.preheader.38 ]
  ret i32 %.1
}

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare i64 @div(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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 nofree nosync nounwind willreturn memory(none) "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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind willreturn memory(none) }

!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/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass