; LLVM IR from tfhe/spqlios-arithmetic :: spqlios/arithmetic (zn_approxdecomp_ref)

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

%union.du_t = type { double }
%struct.tndbl_approxdecomp_gadget_t = type { i64, i64, double, i64, i64, [64 x i8] }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [20 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: noreturn nounwind
declare void @abort() #2

; Function Attrs: nounwind uwtable
define dso_local void @default_i16_approxdecomp_from_tndbl_ref(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %union.du_t, align 8
  %22 = alloca i64, align 8
  %23 = alloca i16, align 2
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i64 %5, ptr %12, align 8, !tbaa !9
  %24 = load i64, ptr %10, align 8, !tbaa !9
  %25 = load i64, ptr %12, align 8, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = mul i64 %25, %28
  %30 = icmp ne i64 %24, %29
  br i1 %30, label %31, label %34

31:                                               ; preds = %6
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.2) #4
  call void @abort() #5
  unreachable

34:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %35, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !11
  store i64 %37, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %38, i32 0, i32 2
  %40 = load double, ptr %39, align 8, !tbaa !14
  store double %40, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %41, i32 0, i32 5
  %43 = getelementptr inbounds [64 x i8], ptr %42, i64 0, i64 0
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #4
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %44, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !16
  %47 = trunc i64 %46 to i16
  store i16 %47, ptr %16, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #4
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.tndbl_approxdecomp_gadget_t, ptr %48, i32 0, i32 4
  %50 = load i64, ptr %49, align 8, !tbaa !19
  %51 = trunc i64 %50 to i16
  store i16 %51, ptr %17, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %52, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %53, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  store ptr %56, ptr %20, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %96, %34
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  %60 = icmp ult ptr %58, %59
  br i1 %60, label %61, label %99

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %62 = load ptr, ptr %19, align 8, !tbaa !5
  %63 = load double, ptr %62, align 8, !tbaa !15
  %64 = load double, ptr %14, align 8, !tbaa !15
  %65 = fadd double %63, %64
  store double %65, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %93, %61
  %67 = load i64, ptr %22, align 8, !tbaa !9
  %68 = load i64, ptr %13, align 8, !tbaa !9
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %96

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #4
  %72 = load i64, ptr %21, align 8, !tbaa !20
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load i64, ptr %22, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !20
  %77 = zext i8 %76 to i32
  %78 = zext i32 %77 to i64
  %79 = lshr i64 %72, %78
  %80 = trunc i64 %79 to i16
  store i16 %80, ptr %23, align 2, !tbaa !17
  %81 = load i16, ptr %23, align 2, !tbaa !17
  %82 = sext i16 %81 to i32
  %83 = load i16, ptr %16, align 2, !tbaa !17
  %84 = sext i16 %83 to i32
  %85 = and i32 %82, %84
  %86 = load i16, ptr %17, align 2, !tbaa !17
  %87 = sext i16 %86 to i32
  %88 = sub nsw i32 %85, %87
  %89 = trunc i32 %88 to i16
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  store i16 %89, ptr %90, align 2, !tbaa !17
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds i16, ptr %91, i32 1
  store ptr %92, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #4
  br label %93

93:                                               ; preds = %71
  %94 = load i64, ptr %22, align 8, !tbaa !9
  %95 = add i64 %94, 1
  store i64 %95, ptr %22, align 8, !tbaa !9
  br label %66, !llvm.loop !21

96:                                               ; preds = %70
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i32 1
  store ptr %98, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %57, !llvm.loop !23

99:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

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 = { noreturn 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"tndbl_approxdecomp_gadget_t", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 32, !7, i64 40}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 16}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !10, i64 24}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!12, !10, i64 32}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [20 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: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @default_i16_approxdecomp_from_tndbl_ref(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, i64 noundef %3, ptr noundef readonly %4, i64 noundef %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = mul i64 %8, %5
  %.not = icmp eq i64 %9, %3
  br i1 %.not, label %13, label %10

10:                                               ; preds = %6
  %11 = load ptr, ptr @stderr, align 8, !tbaa !11
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.2) #3
  tail call void @abort() #4
  unreachable

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !13
  %16 = getelementptr i8, ptr %1, i64 40
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load i64, ptr %19, align 8, !tbaa !15
  %21 = trunc i64 %20 to i16
  %22 = getelementptr inbounds double, ptr %4, i64 %5
  %23 = icmp slt i64 %5, 1
  %.not38 = icmp eq i64 %8, 0
  %or.cond = or i1 %23, %.not38
  br i1 %or.cond, label %._crit_edge37, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %13
  %24 = shl i64 %8, 1
  %25 = getelementptr i8, ptr %1, i64 %8
  %scevgep40 = getelementptr i8, ptr %25, i64 40
  %min.iters.check = icmp ult i64 %8, 8
  %n.vec = and i64 %8, -8
  %26 = shl i64 %n.vec, 1
  %broadcast.splatinsert42 = insertelement <8 x i64> poison, i64 %18, i64 0
  %broadcast.splat43 = shufflevector <8 x i64> %broadcast.splatinsert42, <8 x i64> poison, <8 x i32> zeroinitializer
  %broadcast.splatinsert44 = insertelement <8 x i16> poison, i16 %21, i64 0
  %broadcast.splat45 = shufflevector <8 x i16> %broadcast.splatinsert44, <8 x i16> poison, <8 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %8, %n.vec
  %xtraiter = and i64 %8, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %invariant.gep = getelementptr i8, ptr %16, i64 1
  %invariant.gep50 = getelementptr i8, ptr %16, i64 2
  %invariant.gep52 = getelementptr i8, ptr %16, i64 3
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.034.us = phi ptr [ %.lcssa, %._crit_edge.us ], [ %2, %.lr.ph.us.preheader ]
  %.02733.us = phi ptr [ %68, %._crit_edge.us ], [ %4, %.lr.ph.us.preheader ]
  %27 = load double, ptr %.02733.us, align 8, !tbaa !16
  %28 = fadd double %15, %27
  %29 = bitcast double %28 to i64
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.us
  %scevgep = getelementptr i8, ptr %.034.us, i64 %24
  %bound0 = icmp ult ptr %.034.us, %scevgep40
  %bound1 = icmp ult ptr %16, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end = getelementptr i8, ptr %.034.us, i64 %26
  %broadcast.splatinsert = insertelement <8 x i64> poison, i64 %29, i64 0
  %broadcast.splat = shufflevector <8 x i64> %broadcast.splatinsert, <8 x i64> poison, <8 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 1
  %next.gep = getelementptr i8, ptr %.034.us, i64 %offset.idx
  %30 = getelementptr inbounds i8, ptr %16, i64 %index
  %wide.load = load <8 x i8>, ptr %30, align 1, !tbaa !17, !alias.scope !18
  %31 = zext nneg <8 x i8> %wide.load to <8 x i64>
  %32 = lshr <8 x i64> %broadcast.splat, %31
  %33 = and <8 x i64> %32, %broadcast.splat43
  %34 = trunc <8 x i64> %33 to <8 x i16>
  %35 = sub <8 x i16> %34, %broadcast.splat45
  store <8 x i16> %35, ptr %next.gep, align 2, !tbaa !21, !alias.scope !23, !noalias !18
  %index.next = add nuw i64 %index, 8
  %36 = icmp eq i64 %index.next, %n.vec
  br i1 %36, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.us
  %.132.us.ph = phi ptr [ %.034.us, %vector.memcheck ], [ %.034.us, %.lr.ph.us ], [ %ind.end, %middle.block ]
  %.02631.us.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.132.us.prol = phi ptr [ %42, %scalar.ph.prol ], [ %.132.us.ph, %scalar.ph.preheader ]
  %.02631.us.prol = phi i64 [ %43, %scalar.ph.prol ], [ %.02631.us.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %37 = getelementptr inbounds i8, ptr %16, i64 %.02631.us.prol
  %38 = load i8, ptr %37, align 1, !tbaa !17
  %39 = zext nneg i8 %38 to i64
  %40 = lshr i64 %29, %39
  %sext2930.us.prol = and i64 %40, %18
  %sext29.us.prol = trunc i64 %sext2930.us.prol to i16
  %41 = sub i16 %sext29.us.prol, %21
  store i16 %41, ptr %.132.us.prol, align 2, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %.132.us.prol, i64 2
  %43 = add nuw i64 %.02631.us.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !29

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.lcssa46.unr = phi ptr [ poison, %scalar.ph.preheader ], [ %42, %scalar.ph.prol ]
  %.132.us.unr = phi ptr [ %.132.us.ph, %scalar.ph.preheader ], [ %42, %scalar.ph.prol ]
  %.02631.us.unr = phi i64 [ %.02631.us.ph, %scalar.ph.preheader ], [ %43, %scalar.ph.prol ]
  %44 = sub i64 %.02631.us.ph, %8
  %45 = icmp ugt i64 %44, -4
  br i1 %45, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.132.us = phi ptr [ %66, %scalar.ph ], [ %.132.us.unr, %scalar.ph.prol.loopexit ]
  %.02631.us = phi i64 [ %67, %scalar.ph ], [ %.02631.us.unr, %scalar.ph.prol.loopexit ]
  %46 = getelementptr inbounds i8, ptr %16, i64 %.02631.us
  %47 = load i8, ptr %46, align 1, !tbaa !17
  %48 = zext nneg i8 %47 to i64
  %49 = lshr i64 %29, %48
  %sext2930.us = and i64 %49, %18
  %sext29.us = trunc i64 %sext2930.us to i16
  %50 = sub i16 %sext29.us, %21
  store i16 %50, ptr %.132.us, align 2, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %.132.us, i64 2
  %gep = getelementptr i8, ptr %invariant.gep, i64 %.02631.us
  %52 = load i8, ptr %gep, align 1, !tbaa !17
  %53 = zext nneg i8 %52 to i64
  %54 = lshr i64 %29, %53
  %sext2930.us.1 = and i64 %54, %18
  %sext29.us.1 = trunc i64 %sext2930.us.1 to i16
  %55 = sub i16 %sext29.us.1, %21
  store i16 %55, ptr %51, align 2, !tbaa !21
  %56 = getelementptr inbounds i8, ptr %.132.us, i64 4
  %gep51 = getelementptr i8, ptr %invariant.gep50, i64 %.02631.us
  %57 = load i8, ptr %gep51, align 1, !tbaa !17
  %58 = zext nneg i8 %57 to i64
  %59 = lshr i64 %29, %58
  %sext2930.us.2 = and i64 %59, %18
  %sext29.us.2 = trunc i64 %sext2930.us.2 to i16
  %60 = sub i16 %sext29.us.2, %21
  store i16 %60, ptr %56, align 2, !tbaa !21
  %61 = getelementptr inbounds i8, ptr %.132.us, i64 6
  %gep53 = getelementptr i8, ptr %invariant.gep52, i64 %.02631.us
  %62 = load i8, ptr %gep53, align 1, !tbaa !17
  %63 = zext nneg i8 %62 to i64
  %64 = lshr i64 %29, %63
  %sext2930.us.3 = and i64 %64, %18
  %sext29.us.3 = trunc i64 %sext2930.us.3 to i16
  %65 = sub i16 %sext29.us.3, %21
  store i16 %65, ptr %61, align 2, !tbaa !21
  %66 = getelementptr inbounds i8, ptr %.132.us, i64 8
  %67 = add nuw i64 %.02631.us, 4
  %exitcond.not.3 = icmp eq i64 %67, %8
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !31

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.lcssa = phi ptr [ %ind.end, %middle.block ], [ %.lcssa46.unr, %scalar.ph.prol.loopexit ], [ %66, %scalar.ph ]
  %68 = getelementptr inbounds i8, ptr %.02733.us, i64 8
  %69 = icmp ult ptr %68, %22
  br i1 %69, label %.lr.ph.us, label %._crit_edge37, !llvm.loop !32

._crit_edge37:                                    ; preds = %._crit_edge.us, %13
  ret void
}

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 = { noreturn 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 = { cold nounwind }
attributes #4 = { noreturn 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, !7, i64 8}
!6 = !{!"tndbl_approxdecomp_gadget_t", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !8, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 32}
!16 = !{!10, !10, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !8, i64 0}
!23 = !{!24}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !26, !27}
!32 = distinct !{!32, !26}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass