; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Educational Codeforces Round 134 (Rated for Div. 2)/D. Maximum AND.ll (Z5solvev)

; 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" }
%class.anon = type { i64, ptr, i64, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i64, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %17 = load i64, ptr %1, align 8, !tbaa !5
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %2, align 8
  %19 = alloca i64, i64 %17, align 16
  store i64 %17, ptr %3, align 8
  %20 = load i64, ptr %1, align 8, !tbaa !5
  %21 = alloca i64, i64 %20, align 16
  store i64 %20, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr %19, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %22, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = mul nuw i64 8, %17
  %25 = udiv i64 %24, 8
  %26 = getelementptr inbounds i64, ptr %23, i64 %25
  store ptr %26, ptr %7, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %36, %0
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = icmp ne ptr %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %39

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %33, ptr %8, align 8, !tbaa !9
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %6, align 8, !tbaa !9
  %38 = getelementptr inbounds i64, ptr %37, i32 1
  store ptr %38, ptr %6, align 8, !tbaa !9
  br label %27

39:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr %21, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %40, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %41 = load ptr, ptr %9, align 8, !tbaa !9
  %42 = mul nuw i64 8, %20
  %43 = udiv i64 %42, 8
  %44 = getelementptr inbounds i64, ptr %41, i64 %43
  store ptr %44, ptr %11, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %54, %39
  %46 = load ptr, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !9
  %48 = icmp ne ptr %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %57

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %51, ptr %12, align 8, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %52)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %54

54:                                               ; preds = %50
  %55 = load ptr, ptr %10, align 8, !tbaa !9
  %56 = getelementptr inbounds i64, ptr %55, i32 1
  store ptr %56, ptr %10, align 8, !tbaa !9
  br label %45

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %58 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  store i64 %17, ptr %58, align 8, !tbaa !11
  %59 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 1
  store ptr %19, ptr %59, align 8, !tbaa !9
  %60 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 2
  store i64 %20, ptr %60, align 8, !tbaa !13
  %61 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 3
  store ptr %21, ptr %61, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 30, ptr %15, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %82, %57
  %63 = load i64, ptr %15, align 8, !tbaa !5
  %64 = icmp sge i64 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %85

66:                                               ; preds = %62
  %67 = load i64, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %15, align 8, !tbaa !5
  %69 = trunc i64 %68 to i32
  %70 = shl i32 1, %69
  %71 = sext i32 %70 to i64
  %72 = or i64 %67, %71
  %73 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %72)
  br i1 %73, label %74, label %81

74:                                               ; preds = %66
  %75 = load i64, ptr %15, align 8, !tbaa !5
  %76 = trunc i64 %75 to i32
  %77 = shl i32 1, %76
  %78 = sext i32 %77 to i64
  %79 = load i64, ptr %14, align 8, !tbaa !5
  %80 = or i64 %79, %78
  store i64 %80, ptr %14, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %74, %66
  br label %82

82:                                               ; preds = %81
  %83 = load i64, ptr %15, align 8, !tbaa !5
  %84 = add nsw i64 %83, -1
  store i64 %84, ptr %15, align 8, !tbaa !5
  br label %62, !llvm.loop !14

85:                                               ; preds = %65
  %86 = load i64, ptr %14, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %86)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %89 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %89)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 = { nocallback nofree nosync nounwind willreturn }
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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZ5solvevE3$_0", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"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::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" }
%class.anon = type { i64, ptr, i64, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca %class.anon, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = call ptr @llvm.stacksave.p0()
  %6 = alloca i64, i64 %4, align 16
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %8 = alloca i64, i64 %7, align 16
  %9 = getelementptr inbounds i64, ptr %6, i64 %4
  %.not25 = icmp eq i64 %4, 0
  br i1 %.not25, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %10 = getelementptr inbounds i64, ptr %8, i64 %7
  %.not2427 = icmp eq i64 %7, 0
  br i1 %.not2427, label %._crit_edge31, label %.lr.ph30

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02226 = phi ptr [ %12, %.lr.ph ], [ %6, %0 ]
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %.02226)
  %12 = getelementptr inbounds i8, ptr %.02226, i64 8
  %.not = icmp eq ptr %12, %9
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge31:                                    ; preds = %.lr.ph30, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  store i64 %4, ptr %2, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %6, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %7, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %8, ptr %15, align 8, !tbaa !12
  %16 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1073741824)
  %spec.select = select i1 %16, i64 1073741824, i64 0
  %17 = or disjoint i64 %spec.select, 536870912
  %18 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %17)
  %spec.select.1 = select i1 %18, i64 %17, i64 %spec.select
  %19 = or disjoint i64 %spec.select.1, 268435456
  %20 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %19)
  %spec.select.2 = select i1 %20, i64 %19, i64 %spec.select.1
  %21 = or disjoint i64 %spec.select.2, 134217728
  %22 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %21)
  %spec.select.3 = select i1 %22, i64 %21, i64 %spec.select.2
  %23 = or i64 %spec.select.3, 67108864
  %24 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23)
  %spec.select.4 = select i1 %24, i64 %23, i64 %spec.select.3
  %25 = or i64 %spec.select.4, 33554432
  %26 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %25)
  %spec.select.5 = select i1 %26, i64 %25, i64 %spec.select.4
  %27 = or i64 %spec.select.5, 16777216
  %28 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %27)
  %spec.select.6 = select i1 %28, i64 %27, i64 %spec.select.5
  %29 = or i64 %spec.select.6, 8388608
  %30 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %29)
  %spec.select.7 = select i1 %30, i64 %29, i64 %spec.select.6
  %31 = or i64 %spec.select.7, 4194304
  %32 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %31)
  %spec.select.8 = select i1 %32, i64 %31, i64 %spec.select.7
  %33 = or i64 %spec.select.8, 2097152
  %34 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %33)
  %spec.select.9 = select i1 %34, i64 %33, i64 %spec.select.8
  %35 = or i64 %spec.select.9, 1048576
  %36 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %35)
  %spec.select.10 = select i1 %36, i64 %35, i64 %spec.select.9
  %37 = or i64 %spec.select.10, 524288
  %38 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %37)
  %spec.select.11 = select i1 %38, i64 %37, i64 %spec.select.10
  %39 = or i64 %spec.select.11, 262144
  %40 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %39)
  %spec.select.12 = select i1 %40, i64 %39, i64 %spec.select.11
  %41 = or i64 %spec.select.12, 131072
  %42 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %41)
  %spec.select.13 = select i1 %42, i64 %41, i64 %spec.select.12
  %43 = or i64 %spec.select.13, 65536
  %44 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %43)
  %spec.select.14 = select i1 %44, i64 %43, i64 %spec.select.13
  %45 = or i64 %spec.select.14, 32768
  %46 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %45)
  %spec.select.15 = select i1 %46, i64 %45, i64 %spec.select.14
  %47 = or i64 %spec.select.15, 16384
  %48 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %47)
  %spec.select.16 = select i1 %48, i64 %47, i64 %spec.select.15
  %49 = or i64 %spec.select.16, 8192
  %50 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %49)
  %spec.select.17 = select i1 %50, i64 %49, i64 %spec.select.16
  %51 = or i64 %spec.select.17, 4096
  %52 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %51)
  %spec.select.18 = select i1 %52, i64 %51, i64 %spec.select.17
  %53 = or i64 %spec.select.18, 2048
  %54 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %53)
  %spec.select.19 = select i1 %54, i64 %53, i64 %spec.select.18
  %55 = or i64 %spec.select.19, 1024
  %56 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %55)
  %spec.select.20 = select i1 %56, i64 %55, i64 %spec.select.19
  %57 = or i64 %spec.select.20, 512
  %58 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %57)
  %spec.select.21 = select i1 %58, i64 %57, i64 %spec.select.20
  %59 = or i64 %spec.select.21, 256
  %60 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %59)
  %spec.select.22 = select i1 %60, i64 %59, i64 %spec.select.21
  %61 = or i64 %spec.select.22, 128
  %62 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %61)
  %spec.select.23 = select i1 %62, i64 %61, i64 %spec.select.22
  %63 = or i64 %spec.select.23, 64
  %64 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %63)
  %spec.select.24 = select i1 %64, i64 %63, i64 %spec.select.23
  %65 = or i64 %spec.select.24, 32
  %66 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %65)
  %spec.select.25 = select i1 %66, i64 %65, i64 %spec.select.24
  %67 = or i64 %spec.select.25, 16
  %68 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %67)
  %spec.select.26 = select i1 %68, i64 %67, i64 %spec.select.25
  %69 = or i64 %spec.select.26, 8
  %70 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %69)
  %spec.select.27 = select i1 %70, i64 %69, i64 %spec.select.26
  %71 = or i64 %spec.select.27, 4
  %72 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %71)
  %spec.select.28 = select i1 %72, i64 %71, i64 %spec.select.27
  %73 = or i64 %spec.select.28, 2
  %74 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %73)
  %spec.select.29 = select i1 %74, i64 %73, i64 %spec.select.28
  %75 = or i64 %spec.select.29, 1
  %76 = call noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %75)
  %spec.select.30 = select i1 %76, i64 %75, i64 %spec.select.29
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %spec.select.30)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.stackrestore.p0(ptr %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void

.lr.ph30:                                         ; preds = %._crit_edge, %.lr.ph30
  %.02328 = phi ptr [ %80, %.lr.ph30 ], [ %8, %._crit_edge ]
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %.02328)
  %80 = getelementptr inbounds i8, ptr %.02328, i64 8
  %.not24 = icmp eq ptr %80, %10
  br i1 %.not24, label %._crit_edge31, label %.lr.ph30
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ5solvevENK3$_0clEl"(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSZ5solvevE3$_0", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 16}


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