; 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_i32_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 i32, align 4
  %17 = alloca i32, align 4
  %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 i32, align 4
  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 4, 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 i32
  store i32 %47, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, 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 i32
  store i32 %51, ptr %17, align 4, !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 = %92, %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 %95

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 = %89, %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 %92

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, 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 i32
  store i32 %80, ptr %23, align 4, !tbaa !17
  %81 = load i32, ptr %23, align 4, !tbaa !17
  %82 = load i32, ptr %16, align 4, !tbaa !17
  %83 = and i32 %81, %82
  %84 = load i32, ptr %17, align 4, !tbaa !17
  %85 = sub nsw i32 %83, %84
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %85, ptr %86, align 4, !tbaa !17
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = getelementptr inbounds i32, ptr %87, i32 1
  store ptr %88, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %89

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

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

95:                                               ; 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 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 = !{!"int", !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_i32_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 i32
  %22 = getelementptr inbounds double, ptr %4, i64 %5
  %23 = icmp slt i64 %5, 1
  %.not35 = icmp eq i64 %8, 0
  %or.cond = or i1 %23, %.not35
  br i1 %or.cond, label %._crit_edge34, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %13
  %24 = shl i64 %8, 2
  %25 = getelementptr i8, ptr %1, i64 %8
  %scevgep37 = getelementptr i8, ptr %25, i64 40
  %min.iters.check = icmp ult i64 %8, 4
  %n.vec = and i64 %8, -4
  %26 = shl i64 %n.vec, 2
  %broadcast.splatinsert39 = insertelement <4 x i64> poison, i64 %18, i64 0
  %broadcast.splat40 = shufflevector <4 x i64> %broadcast.splatinsert39, <4 x i64> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert41 = insertelement <4 x i32> poison, i32 %21, i64 0
  %broadcast.splat42 = shufflevector <4 x i32> %broadcast.splatinsert41, <4 x i32> poison, <4 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.gep47 = getelementptr i8, ptr %16, i64 2
  %invariant.gep49 = getelementptr i8, ptr %16, i64 3
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.031.us = phi ptr [ %.lcssa, %._crit_edge.us ], [ %2, %.lr.ph.us.preheader ]
  %.02730.us = phi ptr [ %78, %._crit_edge.us ], [ %4, %.lr.ph.us.preheader ]
  %27 = load double, ptr %.02730.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 %.031.us, i64 %24
  %bound0 = icmp ult ptr %.031.us, %scevgep37
  %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 %.031.us, i64 %26
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %29, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> poison, <4 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, 2
  %next.gep = getelementptr i8, ptr %.031.us, i64 %offset.idx
  %30 = getelementptr inbounds i8, ptr %16, i64 %index
  %wide.load = load <4 x i8>, ptr %30, align 1, !tbaa !17, !alias.scope !18
  %31 = zext nneg <4 x i8> %wide.load to <4 x i64>
  %32 = lshr <4 x i64> %broadcast.splat, %31
  %33 = and <4 x i64> %32, %broadcast.splat40
  %34 = trunc <4 x i64> %33 to <4 x i32>
  %35 = sub nsw <4 x i32> %34, %broadcast.splat42
  store <4 x i32> %35, ptr %next.gep, align 4, !tbaa !21, !alias.scope !23, !noalias !18
  %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 !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
  %.129.us.ph = phi ptr [ %.031.us, %vector.memcheck ], [ %.031.us, %.lr.ph.us ], [ %ind.end, %middle.block ]
  %.02628.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
  %.129.us.prol = phi ptr [ %44, %scalar.ph.prol ], [ %.129.us.ph, %scalar.ph.preheader ]
  %.02628.us.prol = phi i64 [ %45, %scalar.ph.prol ], [ %.02628.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 %.02628.us.prol
  %38 = load i8, ptr %37, align 1, !tbaa !17
  %39 = zext nneg i8 %38 to i64
  %40 = lshr i64 %29, %39
  %41 = and i64 %40, %18
  %42 = trunc i64 %41 to i32
  %43 = sub nsw i32 %42, %21
  store i32 %43, ptr %.129.us.prol, align 4, !tbaa !21
  %44 = getelementptr inbounds i8, ptr %.129.us.prol, i64 4
  %45 = add nuw i64 %.02628.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
  %.lcssa43.unr = phi ptr [ poison, %scalar.ph.preheader ], [ %44, %scalar.ph.prol ]
  %.129.us.unr = phi ptr [ %.129.us.ph, %scalar.ph.preheader ], [ %44, %scalar.ph.prol ]
  %.02628.us.unr = phi i64 [ %.02628.us.ph, %scalar.ph.preheader ], [ %45, %scalar.ph.prol ]
  %46 = sub i64 %.02628.us.ph, %8
  %47 = icmp ugt i64 %46, -4
  br i1 %47, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.129.us = phi ptr [ %76, %scalar.ph ], [ %.129.us.unr, %scalar.ph.prol.loopexit ]
  %.02628.us = phi i64 [ %77, %scalar.ph ], [ %.02628.us.unr, %scalar.ph.prol.loopexit ]
  %48 = getelementptr inbounds i8, ptr %16, i64 %.02628.us
  %49 = load i8, ptr %48, align 1, !tbaa !17
  %50 = zext nneg i8 %49 to i64
  %51 = lshr i64 %29, %50
  %52 = and i64 %51, %18
  %53 = trunc i64 %52 to i32
  %54 = sub nsw i32 %53, %21
  store i32 %54, ptr %.129.us, align 4, !tbaa !21
  %55 = getelementptr inbounds i8, ptr %.129.us, i64 4
  %gep = getelementptr i8, ptr %invariant.gep, i64 %.02628.us
  %56 = load i8, ptr %gep, align 1, !tbaa !17
  %57 = zext nneg i8 %56 to i64
  %58 = lshr i64 %29, %57
  %59 = and i64 %58, %18
  %60 = trunc i64 %59 to i32
  %61 = sub nsw i32 %60, %21
  store i32 %61, ptr %55, align 4, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %.129.us, i64 8
  %gep48 = getelementptr i8, ptr %invariant.gep47, i64 %.02628.us
  %63 = load i8, ptr %gep48, align 1, !tbaa !17
  %64 = zext nneg i8 %63 to i64
  %65 = lshr i64 %29, %64
  %66 = and i64 %65, %18
  %67 = trunc i64 %66 to i32
  %68 = sub nsw i32 %67, %21
  store i32 %68, ptr %62, align 4, !tbaa !21
  %69 = getelementptr inbounds i8, ptr %.129.us, i64 12
  %gep50 = getelementptr i8, ptr %invariant.gep49, i64 %.02628.us
  %70 = load i8, ptr %gep50, align 1, !tbaa !17
  %71 = zext nneg i8 %70 to i64
  %72 = lshr i64 %29, %71
  %73 = and i64 %72, %18
  %74 = trunc i64 %73 to i32
  %75 = sub nsw i32 %74, %21
  store i32 %75, ptr %69, align 4, !tbaa !21
  %76 = getelementptr inbounds i8, ptr %.129.us, i64 16
  %77 = add nuw i64 %.02628.us, 4
  %exitcond.not.3 = icmp eq i64 %77, %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 ], [ %.lcssa43.unr, %scalar.ph.prol.loopexit ], [ %76, %scalar.ph ]
  %78 = getelementptr inbounds i8, ptr %.02730.us, i64 8
  %79 = icmp ult ptr %78, %22
  br i1 %79, label %.lr.ph.us, label %._crit_edge34, !llvm.loop !32

._crit_edge34:                                    ; 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 = !{!"int", !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