; LLVM IR from ADJA/algos :: Other/ExpressionCalc.ll (Z6factorv)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@len = external dso_local global i32, align 4
@p = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z6factorv() #0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store double 1.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  store i8 0, ptr %4, align 1, !tbaa !9
  %6 = load i32, ptr @p, align 4, !tbaa !11
  %7 = load i32, ptr @len, align 4, !tbaa !11
  %8 = icmp sge i32 %6, %7
  br i1 %8, label %9, label %11

9:                                                ; preds = %0
  %10 = load double, ptr %2, align 8, !tbaa !5
  store double %10, ptr %1, align 8
  store i32 1, ptr %5, align 4
  br label %112

11:                                               ; preds = %0
  %12 = load i32, ptr @p, align 4, !tbaa !11
  %13 = sext i32 %12 to i64
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %13)
  %15 = load i8, ptr %14, align 1, !tbaa !13
  %16 = sext i8 %15 to i32
  %17 = icmp eq i32 %16, 40
  br i1 %17, label %18, label %25

18:                                               ; preds = %11
  %19 = load i32, ptr @p, align 4, !tbaa !11
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr @p, align 4, !tbaa !11
  %21 = call noundef double @_Z3expv()
  store double %21, ptr %2, align 8, !tbaa !5
  %22 = load i32, ptr @p, align 4, !tbaa !11
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr @p, align 4, !tbaa !11
  %24 = load double, ptr %2, align 8, !tbaa !5
  store double %24, ptr %1, align 8
  store i32 1, ptr %5, align 4
  br label %112

25:                                               ; preds = %11
  %26 = load i32, ptr @p, align 4, !tbaa !11
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %27)
  %29 = load i8, ptr %28, align 1, !tbaa !13
  %30 = sext i8 %29 to i32
  %31 = icmp eq i32 %30, 45
  br i1 %31, label %32, label %38

32:                                               ; preds = %25
  %33 = load i32, ptr @p, align 4, !tbaa !11
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr @p, align 4, !tbaa !11
  %35 = call noundef double @_Z6intermv()
  store double %35, ptr %2, align 8, !tbaa !5
  %36 = load double, ptr %2, align 8, !tbaa !5
  %37 = fneg double %36
  store double %37, ptr %1, align 8
  store i32 1, ptr %5, align 4
  br label %112

38:                                               ; preds = %25
  %39 = load i32, ptr @p, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %40)
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %43, 35
  br i1 %44, label %45, label %51

45:                                               ; preds = %38
  %46 = load i32, ptr @p, align 4, !tbaa !11
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr @p, align 4, !tbaa !11
  %48 = call noundef double @_Z6intermv()
  store double %48, ptr %2, align 8, !tbaa !5
  %49 = load double, ptr %2, align 8, !tbaa !5
  %50 = call double @pow(double noundef %49, double noundef 5.000000e-01) #5
  store double %50, ptr %1, align 8
  store i32 1, ptr %5, align 4
  br label %112

51:                                               ; preds = %38
  br label %52

52:                                               ; preds = %105, %51
  %53 = load i32, ptr @p, align 4, !tbaa !11
  %54 = load i32, ptr @len, align 4, !tbaa !11
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %79

56:                                               ; preds = %52
  %57 = load i32, ptr @p, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = sext i8 %60 to i32
  %62 = icmp sge i32 %61, 48
  br i1 %62, label %63, label %70

63:                                               ; preds = %56
  %64 = load i32, ptr @p, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %65)
  %67 = load i8, ptr %66, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  %69 = icmp sle i32 %68, 57
  br i1 %69, label %77, label %70

70:                                               ; preds = %63, %56
  %71 = load i32, ptr @p, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %72)
  %74 = load i8, ptr %73, align 1, !tbaa !13
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %75, 46
  br label %77

77:                                               ; preds = %70, %63
  %78 = phi i1 [ true, %63 ], [ %76, %70 ]
  br label %79

79:                                               ; preds = %77, %52
  %80 = phi i1 [ false, %52 ], [ %78, %77 ]
  br i1 %80, label %81, label %108

81:                                               ; preds = %79
  %82 = load i32, ptr @p, align 4, !tbaa !11
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %83)
  %85 = load i8, ptr %84, align 1, !tbaa !13
  %86 = sext i8 %85 to i32
  %87 = icmp eq i32 %86, 46
  br i1 %87, label %88, label %89

88:                                               ; preds = %81
  store i8 1, ptr %4, align 1, !tbaa !9
  br label %105

89:                                               ; preds = %81
  %90 = load double, ptr %2, align 8, !tbaa !5
  %91 = load i32, ptr @p, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %92)
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = sext i8 %94 to i32
  %96 = sitofp i32 %95 to double
  %97 = call double @llvm.fmuladd.f64(double %90, double 1.000000e+01, double %96)
  %98 = fsub double %97, 4.800000e+01
  store double %98, ptr %2, align 8, !tbaa !5
  %99 = load i8, ptr %4, align 1, !tbaa !9, !range !14, !noundef !15
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %104

101:                                              ; preds = %89
  %102 = load double, ptr %3, align 8, !tbaa !5
  %103 = fmul double %102, 1.000000e+01
  store double %103, ptr %3, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %101, %89
  br label %105

105:                                              ; preds = %104, %88
  %106 = load i32, ptr @p, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr @p, align 4, !tbaa !11
  br label %52, !llvm.loop !16

108:                                              ; preds = %79
  %109 = load double, ptr %2, align 8, !tbaa !5
  %110 = load double, ptr %3, align 8, !tbaa !5
  %111 = fdiv double %109, %110
  store double %111, ptr %1, align 8
  store i32 1, ptr %5, align 4
  br label %112

112:                                              ; preds = %108, %45, %32, %18, %9
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %113 = load double, ptr %1, align 8
  ret double %113
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3expv() #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z6intermv() #0

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !17}
!17 = !{!"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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@len = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z6factorv() local_unnamed_addr #0 {
  %1 = load i32, ptr @p, align 4, !tbaa !5
  %2 = load i32, ptr @len, align 4, !tbaa !5
  %.not = icmp slt i32 %1, %2
  br i1 %.not, label %3, label %.critedge

3:                                                ; preds = %0
  %4 = sext i32 %1 to i64
  %5 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %4)
  %6 = load i8, ptr %5, align 1, !tbaa !9
  %7 = icmp eq i8 %6, 40
  %8 = load i32, ptr @p, align 4, !tbaa !5
  br i1 %7, label %9, label %14

9:                                                ; preds = %3
  %10 = add nsw i32 %8, 1
  store i32 %10, ptr @p, align 4, !tbaa !5
  %11 = tail call noundef double @_Z3expv()
  %12 = load i32, ptr @p, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr @p, align 4, !tbaa !5
  br label %.critedge

14:                                               ; preds = %3
  %15 = sext i32 %8 to i64
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %15)
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = icmp eq i8 %17, 45
  %19 = load i32, ptr @p, align 4, !tbaa !5
  br i1 %18, label %20, label %24

20:                                               ; preds = %14
  %21 = add nsw i32 %19, 1
  store i32 %21, ptr @p, align 4, !tbaa !5
  %22 = tail call noundef double @_Z6intermv()
  %23 = fneg double %22
  br label %.critedge

24:                                               ; preds = %14
  %25 = sext i32 %19 to i64
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %25)
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = icmp eq i8 %27, 35
  %29 = load i32, ptr @p, align 4, !tbaa !5
  br i1 %28, label %32, label %.preheader

.preheader:                                       ; preds = %24
  %30 = load i32, ptr @len, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph, label %.critedge

32:                                               ; preds = %24
  %33 = add nsw i32 %29, 1
  store i32 %33, ptr @p, align 4, !tbaa !5
  %34 = tail call noundef double @_Z6intermv()
  %35 = tail call double @pow(double noundef %34, double noundef 5.000000e-01) #4
  br label %.critedge

.lr.ph:                                           ; preds = %.preheader, %68
  %36 = phi i32 [ %70, %68 ], [ %29, %.preheader ]
  %.020 = phi i1 [ %.1, %68 ], [ false, %.preheader ]
  %.01119 = phi double [ %.112, %68 ], [ 1.000000e+00, %.preheader ]
  %.01318 = phi double [ %.114, %68 ], [ 0.000000e+00, %.preheader ]
  %37 = sext i32 %36 to i64
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %37)
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = icmp sgt i8 %39, 47
  br i1 %40, label %41, label %47

41:                                               ; preds = %.lr.ph
  %42 = load i32, ptr @p, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %43)
  %45 = load i8, ptr %44, align 1, !tbaa !9
  %46 = icmp slt i8 %45, 58
  br i1 %46, label %.critedge2, label %47

47:                                               ; preds = %41, %.lr.ph
  %48 = load i32, ptr @p, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %49)
  %51 = load i8, ptr %50, align 1, !tbaa !9
  %52 = icmp eq i8 %51, 46
  br i1 %52, label %.critedge2, label %.critedge.loopexit

.critedge2:                                       ; preds = %41, %47
  %53 = load i32, ptr @p, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %54)
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %57 = icmp eq i8 %56, 46
  br i1 %57, label %68, label %58

58:                                               ; preds = %.critedge2
  %59 = load i32, ptr @p, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %60)
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = sitofp i8 %62 to double
  %64 = tail call double @llvm.fmuladd.f64(double %.01318, double 1.000000e+01, double %63)
  %65 = fadd double %64, -4.800000e+01
  br i1 %.020, label %66, label %68

66:                                               ; preds = %58
  %67 = fmul double %.01119, 1.000000e+01
  br label %68

68:                                               ; preds = %.critedge2, %58, %66
  %.114 = phi double [ %65, %66 ], [ %65, %58 ], [ %.01318, %.critedge2 ]
  %.112 = phi double [ %67, %66 ], [ %.01119, %58 ], [ %.01119, %.critedge2 ]
  %.1 = phi i1 [ true, %66 ], [ false, %58 ], [ true, %.critedge2 ]
  %69 = load i32, ptr @p, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr @p, align 4, !tbaa !5
  %71 = load i32, ptr @len, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %.lr.ph, label %.critedge.loopexit, !llvm.loop !10

.critedge.loopexit:                               ; preds = %68, %47
  %.013.lcssa.ph = phi double [ %.01318, %47 ], [ %.114, %68 ]
  %.011.lcssa.ph = phi double [ %.01119, %47 ], [ %.112, %68 ]
  %73 = fdiv double %.013.lcssa.ph, %.011.lcssa.ph
  br label %.critedge

.critedge:                                        ; preds = %.preheader, %.critedge.loopexit, %0, %32, %20, %9
  %.015 = phi double [ %11, %9 ], [ %23, %20 ], [ %35, %32 ], [ 0.000000e+00, %0 ], [ 0.000000e+00, %.preheader ], [ %73, %.critedge.loopexit ]
  ret double %.015
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3expv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z6intermv() local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass