; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/287 Division 2/Problem C (C)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@h = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@pow2 = external dso_local global [55 x i64], align 16
@ext = external dso_local global i64, align 8
@ans = external dso_local global i64, align 8
@dir = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 2, ptr %2, align 8, !tbaa !5
  store i64 1, ptr @pow2, align 16, !tbaa !5
  store i64 0, ptr @ans, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %5

5:                                                ; preds = %20, %0
  %6 = load i32, ptr %3, align 4, !tbaa !9
  %7 = icmp sle i32 %6, 54
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %23

9:                                                ; preds = %5
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = sub nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = mul nsw i64 %14, %15
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %18
  store i64 %16, ptr %19, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %9
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %3, align 4, !tbaa !9
  br label %5, !llvm.loop !11

23:                                               ; preds = %8
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @h)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %26 = load i64, ptr @h, align 8, !tbaa !5
  %27 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = load i64, ptr @n, align 8, !tbaa !5
  %30 = add nsw i64 %28, %29
  %31 = sub nsw i64 %30, 1
  store i64 %31, ptr @ext, align 8, !tbaa !5
  store i64 0, ptr @ans, align 8, !tbaa !5
  store i64 0, ptr @dir, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %32 = load i64, ptr @h, align 8, !tbaa !5
  %33 = sub nsw i64 %32, 1
  store i64 %33, ptr %4, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %77, %23
  %35 = load i64, ptr %4, align 8, !tbaa !5
  %36 = icmp sge i64 %35, 0
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %80

38:                                               ; preds = %34
  %39 = load i64, ptr @ext, align 8, !tbaa !5
  %40 = load i64, ptr %4, align 8, !tbaa !5
  %41 = shl i64 1, %40
  %42 = and i64 %39, %41
  %43 = icmp sgt i64 %42, 0
  br i1 %43, label %44, label %60

44:                                               ; preds = %38
  %45 = load i64, ptr @dir, align 8, !tbaa !5
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %44
  %48 = load i64, ptr %4, align 8, !tbaa !5
  %49 = add nsw i64 %48, 1
  %50 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = load i64, ptr @ans, align 8, !tbaa !5
  %53 = add nsw i64 %52, %51
  store i64 %53, ptr @ans, align 8, !tbaa !5
  store i64 0, ptr @dir, align 8, !tbaa !5
  br label %59

54:                                               ; preds = %44
  %55 = load i64, ptr @ans, align 8, !tbaa !5
  %56 = add nsw i64 %55, 1
  store i64 %56, ptr @ans, align 8, !tbaa !5
  %57 = load i64, ptr @dir, align 8, !tbaa !5
  %58 = sub nsw i64 1, %57
  store i64 %58, ptr @dir, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %54, %47
  br label %76

60:                                               ; preds = %38
  %61 = load i64, ptr @dir, align 8, !tbaa !5
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %68

63:                                               ; preds = %60
  %64 = load i64, ptr @ans, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr @ans, align 8, !tbaa !5
  %66 = load i64, ptr @dir, align 8, !tbaa !5
  %67 = sub nsw i64 1, %66
  store i64 %67, ptr @dir, align 8, !tbaa !5
  br label %75

68:                                               ; preds = %60
  %69 = load i64, ptr %4, align 8, !tbaa !5
  %70 = add nsw i64 %69, 1
  %71 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr @ans, align 8, !tbaa !5
  %74 = add nsw i64 %73, %72
  store i64 %74, ptr @ans, align 8, !tbaa !5
  store i64 1, ptr @dir, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %68, %63
  br label %76

76:                                               ; preds = %75, %59
  br label %77

77:                                               ; preds = %76
  %78 = load i64, ptr %4, align 8, !tbaa !5
  %79 = add nsw i64 %78, -1
  store i64 %79, ptr %4, align 8, !tbaa !5
  br label %34, !llvm.loop !13

80:                                               ; preds = %37
  %81 = load i64, ptr @ans, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { mustprogress norecurse 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 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 = { inlinehint 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@h = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@pow2 = external dso_local local_unnamed_addr global [55 x i64], align 16
@ext = external dso_local local_unnamed_addr global i64, align 8
@ans = external dso_local local_unnamed_addr global i64, align 8
@dir = external dso_local local_unnamed_addr global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  store i64 1, ptr @pow2, align 16, !tbaa !5
  store i64 0, ptr @ans, align 8, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @pow2, i64 8), align 8, !tbaa !5
  store i64 4, ptr getelementptr inbounds (i8, ptr @pow2, i64 16), align 16, !tbaa !5
  store i64 8, ptr getelementptr inbounds (i8, ptr @pow2, i64 24), align 8, !tbaa !5
  store i64 16, ptr getelementptr inbounds (i8, ptr @pow2, i64 32), align 16, !tbaa !5
  store i64 32, ptr getelementptr inbounds (i8, ptr @pow2, i64 40), align 8, !tbaa !5
  store i64 64, ptr getelementptr inbounds (i8, ptr @pow2, i64 48), align 16, !tbaa !5
  store i64 128, ptr getelementptr inbounds (i8, ptr @pow2, i64 56), align 8, !tbaa !5
  store i64 256, ptr getelementptr inbounds (i8, ptr @pow2, i64 64), align 16, !tbaa !5
  store i64 512, ptr getelementptr inbounds (i8, ptr @pow2, i64 72), align 8, !tbaa !5
  store i64 1024, ptr getelementptr inbounds (i8, ptr @pow2, i64 80), align 16, !tbaa !5
  store i64 2048, ptr getelementptr inbounds (i8, ptr @pow2, i64 88), align 8, !tbaa !5
  store i64 4096, ptr getelementptr inbounds (i8, ptr @pow2, i64 96), align 16, !tbaa !5
  store i64 8192, ptr getelementptr inbounds (i8, ptr @pow2, i64 104), align 8, !tbaa !5
  store i64 16384, ptr getelementptr inbounds (i8, ptr @pow2, i64 112), align 16, !tbaa !5
  store i64 32768, ptr getelementptr inbounds (i8, ptr @pow2, i64 120), align 8, !tbaa !5
  store i64 65536, ptr getelementptr inbounds (i8, ptr @pow2, i64 128), align 16, !tbaa !5
  store i64 131072, ptr getelementptr inbounds (i8, ptr @pow2, i64 136), align 8, !tbaa !5
  store i64 262144, ptr getelementptr inbounds (i8, ptr @pow2, i64 144), align 16, !tbaa !5
  store i64 524288, ptr getelementptr inbounds (i8, ptr @pow2, i64 152), align 8, !tbaa !5
  store i64 1048576, ptr getelementptr inbounds (i8, ptr @pow2, i64 160), align 16, !tbaa !5
  store i64 2097152, ptr getelementptr inbounds (i8, ptr @pow2, i64 168), align 8, !tbaa !5
  store i64 4194304, ptr getelementptr inbounds (i8, ptr @pow2, i64 176), align 16, !tbaa !5
  store i64 8388608, ptr getelementptr inbounds (i8, ptr @pow2, i64 184), align 8, !tbaa !5
  store i64 16777216, ptr getelementptr inbounds (i8, ptr @pow2, i64 192), align 16, !tbaa !5
  store i64 33554432, ptr getelementptr inbounds (i8, ptr @pow2, i64 200), align 8, !tbaa !5
  store i64 67108864, ptr getelementptr inbounds (i8, ptr @pow2, i64 208), align 16, !tbaa !5
  store i64 134217728, ptr getelementptr inbounds (i8, ptr @pow2, i64 216), align 8, !tbaa !5
  store i64 268435456, ptr getelementptr inbounds (i8, ptr @pow2, i64 224), align 16, !tbaa !5
  store i64 536870912, ptr getelementptr inbounds (i8, ptr @pow2, i64 232), align 8, !tbaa !5
  store i64 1073741824, ptr getelementptr inbounds (i8, ptr @pow2, i64 240), align 16, !tbaa !5
  store i64 2147483648, ptr getelementptr inbounds (i8, ptr @pow2, i64 248), align 8, !tbaa !5
  store i64 4294967296, ptr getelementptr inbounds (i8, ptr @pow2, i64 256), align 16, !tbaa !5
  store i64 8589934592, ptr getelementptr inbounds (i8, ptr @pow2, i64 264), align 8, !tbaa !5
  store i64 17179869184, ptr getelementptr inbounds (i8, ptr @pow2, i64 272), align 16, !tbaa !5
  store i64 34359738368, ptr getelementptr inbounds (i8, ptr @pow2, i64 280), align 8, !tbaa !5
  store i64 68719476736, ptr getelementptr inbounds (i8, ptr @pow2, i64 288), align 16, !tbaa !5
  store i64 137438953472, ptr getelementptr inbounds (i8, ptr @pow2, i64 296), align 8, !tbaa !5
  store i64 274877906944, ptr getelementptr inbounds (i8, ptr @pow2, i64 304), align 16, !tbaa !5
  store i64 549755813888, ptr getelementptr inbounds (i8, ptr @pow2, i64 312), align 8, !tbaa !5
  store i64 1099511627776, ptr getelementptr inbounds (i8, ptr @pow2, i64 320), align 16, !tbaa !5
  store i64 2199023255552, ptr getelementptr inbounds (i8, ptr @pow2, i64 328), align 8, !tbaa !5
  store i64 4398046511104, ptr getelementptr inbounds (i8, ptr @pow2, i64 336), align 16, !tbaa !5
  store i64 8796093022208, ptr getelementptr inbounds (i8, ptr @pow2, i64 344), align 8, !tbaa !5
  store i64 17592186044416, ptr getelementptr inbounds (i8, ptr @pow2, i64 352), align 16, !tbaa !5
  store i64 35184372088832, ptr getelementptr inbounds (i8, ptr @pow2, i64 360), align 8, !tbaa !5
  store i64 70368744177664, ptr getelementptr inbounds (i8, ptr @pow2, i64 368), align 16, !tbaa !5
  store i64 140737488355328, ptr getelementptr inbounds (i8, ptr @pow2, i64 376), align 8, !tbaa !5
  store i64 281474976710656, ptr getelementptr inbounds (i8, ptr @pow2, i64 384), align 16, !tbaa !5
  store i64 562949953421312, ptr getelementptr inbounds (i8, ptr @pow2, i64 392), align 8, !tbaa !5
  store i64 1125899906842624, ptr getelementptr inbounds (i8, ptr @pow2, i64 400), align 16, !tbaa !5
  store i64 2251799813685248, ptr getelementptr inbounds (i8, ptr @pow2, i64 408), align 8, !tbaa !5
  store i64 4503599627370496, ptr getelementptr inbounds (i8, ptr @pow2, i64 416), align 16, !tbaa !5
  store i64 9007199254740992, ptr getelementptr inbounds (i8, ptr @pow2, i64 424), align 8, !tbaa !5
  store i64 18014398509481984, ptr getelementptr inbounds (i8, ptr @pow2, i64 432), align 16, !tbaa !5
  %1 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @h)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %3 = load i64, ptr @h, align 8, !tbaa !5
  %4 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %3
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = load i64, ptr @n, align 8, !tbaa !5
  %7 = add i64 %5, -1
  %8 = add i64 %7, %6
  store i64 %8, ptr @ext, align 8, !tbaa !5
  store i64 0, ptr @ans, align 8, !tbaa !5
  store i64 0, ptr @dir, align 8, !tbaa !5
  %9 = icmp sgt i64 %3, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %34
  store i64 %.sink, ptr @dir, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %0
  %10 = phi i64 [ 0, %0 ], [ %35, %._crit_edge.loopexit ]
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %10)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph:                                           ; preds = %0, %34
  %.0.in13 = phi i64 [ %.014, %34 ], [ %3, %0 ]
  %13 = phi i64 [ %36, %34 ], [ 0, %0 ]
  %14 = phi i64 [ %35, %34 ], [ 0, %0 ]
  %.014 = add nsw i64 %.0.in13, -1
  %15 = shl nuw i64 1, %.014
  %16 = and i64 %15, %8
  %17 = icmp sgt i64 %16, 0
  %18 = icmp eq i64 %13, 0
  br i1 %17, label %19, label %27

19:                                               ; preds = %.lr.ph
  br i1 %18, label %20, label %24

20:                                               ; preds = %19
  %21 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %.0.in13
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = add nsw i64 %14, %22
  store i64 %23, ptr @ans, align 8, !tbaa !5
  br label %34

24:                                               ; preds = %19
  %25 = add nsw i64 %14, 1
  store i64 %25, ptr @ans, align 8, !tbaa !5
  %26 = sub nuw nsw i64 1, %13
  br label %34

27:                                               ; preds = %.lr.ph
  br i1 %18, label %28, label %30

28:                                               ; preds = %27
  %29 = add nsw i64 %14, 1
  store i64 %29, ptr @ans, align 8, !tbaa !5
  br label %34

30:                                               ; preds = %27
  %31 = getelementptr inbounds [55 x i64], ptr @pow2, i64 0, i64 %.0.in13
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = add nsw i64 %14, %32
  store i64 %33, ptr @ans, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %24, %20, %30, %28
  %.sink = phi i64 [ %26, %24 ], [ 0, %20 ], [ 1, %30 ], [ 1, %28 ]
  %35 = phi i64 [ %25, %24 ], [ %23, %20 ], [ %33, %30 ], [ %29, %28 ]
  %36 = phi i64 [ 0, %24 ], [ 0, %20 ], [ 1, %30 ], [ 1, %28 ]
  %37 = icmp ugt i64 %.0.in13, 1
  br i1 %37, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !9
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { mustprogress norecurse 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 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 = { inlinehint 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" }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass