; LLVM IR from plskz/competitive-programming :: AtCoder/AtCoder Regular Contest/arc106 (A)

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5powerxx(i64 noundef, i64 noundef) #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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  store i8 0, ptr %4, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 1, ptr %7, align 8, !tbaa !8
  br label %17

17:                                               ; preds = %44, %0
  %18 = load i64, ptr %7, align 8, !tbaa !8
  %19 = icmp sle i64 %18, 38
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %47

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 1, ptr %9, align 8, !tbaa !8
  br label %22

22:                                               ; preds = %39, %21
  %23 = load i64, ptr %9, align 8, !tbaa !8
  %24 = icmp sle i64 %23, 26
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 5, ptr %8, align 4
  br label %42

26:                                               ; preds = %22
  %27 = load i64, ptr %7, align 8, !tbaa !8
  %28 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %27)
  %29 = load i64, ptr %9, align 8, !tbaa !8
  %30 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef %29)
  %31 = add nsw i64 %28, %30
  store i64 %31, ptr %3, align 8, !tbaa !8
  %32 = load i64, ptr %3, align 8, !tbaa !8
  %33 = load i64, ptr %2, align 8, !tbaa !8
  %34 = icmp eq i64 %32, %33
  br i1 %34, label %35, label %38

35:                                               ; preds = %26
  store i8 1, ptr %4, align 1, !tbaa !11
  %36 = load i64, ptr %7, align 8, !tbaa !8
  store i64 %36, ptr %5, align 8, !tbaa !8
  %37 = load i64, ptr %9, align 8, !tbaa !8
  store i64 %37, ptr %6, align 8, !tbaa !8
  store i32 5, ptr %8, align 4
  br label %42

38:                                               ; preds = %26
  br label %39

39:                                               ; preds = %38
  %40 = load i64, ptr %9, align 8, !tbaa !8
  %41 = add nsw i64 %40, 1
  store i64 %41, ptr %9, align 8, !tbaa !8
  br label %22, !llvm.loop !13

42:                                               ; preds = %35, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load i64, ptr %7, align 8, !tbaa !8
  %46 = add nsw i64 %45, 1
  store i64 %46, ptr %7, align 8, !tbaa !8
  br label %17, !llvm.loop !15

47:                                               ; preds = %20
  %48 = load i8, ptr %4, align 1, !tbaa !11, !range !16, !noundef !17
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %56

50:                                               ; preds = %47
  %51 = load i64, ptr %5, align 8, !tbaa !8
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %52, i8 noundef signext 32)
  %54 = load i64, ptr %6, align 8, !tbaa !8
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %54)
  br label %58

56:                                               ; preds = %47
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %58

58:                                               ; preds = %56, %50
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %59 = load i32, ptr %1, align 4
  ret i32 %59
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

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

; 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)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #5 = { 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 #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}


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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5powerxx(i64 noundef, i64 noundef) local_unnamed_addr #0

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %.preheader

.preheader:                                       ; preds = %0, %166
  %.01323 = phi i64 [ 1, %0 ], [ %167, %166 ]
  %.01422 = phi i64 [ undef, %0 ], [ %.1, %166 ]
  %.01521 = phi i64 [ undef, %0 ], [ %.116, %166 ]
  %.01720 = phi i1 [ false, %0 ], [ %.118, %166 ]
  %9 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %10 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 1)
  %11 = add nsw i64 %10, %9
  %12 = load i64, ptr %1, align 8, !tbaa !8
  %13 = icmp eq i64 %11, %12
  br i1 %13, label %166, label %15

14:                                               ; preds = %166
  br i1 %.118, label %168, label %172

15:                                               ; preds = %.preheader
  %16 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %17 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 2)
  %18 = add nsw i64 %17, %16
  %19 = load i64, ptr %1, align 8, !tbaa !8
  %20 = icmp eq i64 %18, %19
  br i1 %20, label %166, label %21

21:                                               ; preds = %15
  %22 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %23 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 3)
  %24 = add nsw i64 %23, %22
  %25 = load i64, ptr %1, align 8, !tbaa !8
  %26 = icmp eq i64 %24, %25
  br i1 %26, label %166, label %27

27:                                               ; preds = %21
  %28 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %29 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 4)
  %30 = add nsw i64 %29, %28
  %31 = load i64, ptr %1, align 8, !tbaa !8
  %32 = icmp eq i64 %30, %31
  br i1 %32, label %166, label %33

33:                                               ; preds = %27
  %34 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %35 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 5)
  %36 = add nsw i64 %35, %34
  %37 = load i64, ptr %1, align 8, !tbaa !8
  %38 = icmp eq i64 %36, %37
  br i1 %38, label %166, label %39

39:                                               ; preds = %33
  %40 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %41 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 6)
  %42 = add nsw i64 %41, %40
  %43 = load i64, ptr %1, align 8, !tbaa !8
  %44 = icmp eq i64 %42, %43
  br i1 %44, label %166, label %45

45:                                               ; preds = %39
  %46 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %47 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 7)
  %48 = add nsw i64 %47, %46
  %49 = load i64, ptr %1, align 8, !tbaa !8
  %50 = icmp eq i64 %48, %49
  br i1 %50, label %166, label %51

51:                                               ; preds = %45
  %52 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %53 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 8)
  %54 = add nsw i64 %53, %52
  %55 = load i64, ptr %1, align 8, !tbaa !8
  %56 = icmp eq i64 %54, %55
  br i1 %56, label %166, label %57

57:                                               ; preds = %51
  %58 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %59 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 9)
  %60 = add nsw i64 %59, %58
  %61 = load i64, ptr %1, align 8, !tbaa !8
  %62 = icmp eq i64 %60, %61
  br i1 %62, label %166, label %63

63:                                               ; preds = %57
  %64 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %65 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 10)
  %66 = add nsw i64 %65, %64
  %67 = load i64, ptr %1, align 8, !tbaa !8
  %68 = icmp eq i64 %66, %67
  br i1 %68, label %166, label %69

69:                                               ; preds = %63
  %70 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %71 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 11)
  %72 = add nsw i64 %71, %70
  %73 = load i64, ptr %1, align 8, !tbaa !8
  %74 = icmp eq i64 %72, %73
  br i1 %74, label %166, label %75

75:                                               ; preds = %69
  %76 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %77 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 12)
  %78 = add nsw i64 %77, %76
  %79 = load i64, ptr %1, align 8, !tbaa !8
  %80 = icmp eq i64 %78, %79
  br i1 %80, label %166, label %81

81:                                               ; preds = %75
  %82 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %83 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 13)
  %84 = add nsw i64 %83, %82
  %85 = load i64, ptr %1, align 8, !tbaa !8
  %86 = icmp eq i64 %84, %85
  br i1 %86, label %166, label %87

87:                                               ; preds = %81
  %88 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %89 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 14)
  %90 = add nsw i64 %89, %88
  %91 = load i64, ptr %1, align 8, !tbaa !8
  %92 = icmp eq i64 %90, %91
  br i1 %92, label %166, label %93

93:                                               ; preds = %87
  %94 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %95 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 15)
  %96 = add nsw i64 %95, %94
  %97 = load i64, ptr %1, align 8, !tbaa !8
  %98 = icmp eq i64 %96, %97
  br i1 %98, label %166, label %99

99:                                               ; preds = %93
  %100 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %101 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 16)
  %102 = add nsw i64 %101, %100
  %103 = load i64, ptr %1, align 8, !tbaa !8
  %104 = icmp eq i64 %102, %103
  br i1 %104, label %166, label %105

105:                                              ; preds = %99
  %106 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %107 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 17)
  %108 = add nsw i64 %107, %106
  %109 = load i64, ptr %1, align 8, !tbaa !8
  %110 = icmp eq i64 %108, %109
  br i1 %110, label %166, label %111

111:                                              ; preds = %105
  %112 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %113 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 18)
  %114 = add nsw i64 %113, %112
  %115 = load i64, ptr %1, align 8, !tbaa !8
  %116 = icmp eq i64 %114, %115
  br i1 %116, label %166, label %117

117:                                              ; preds = %111
  %118 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %119 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 19)
  %120 = add nsw i64 %119, %118
  %121 = load i64, ptr %1, align 8, !tbaa !8
  %122 = icmp eq i64 %120, %121
  br i1 %122, label %166, label %123

123:                                              ; preds = %117
  %124 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %125 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 20)
  %126 = add nsw i64 %125, %124
  %127 = load i64, ptr %1, align 8, !tbaa !8
  %128 = icmp eq i64 %126, %127
  br i1 %128, label %166, label %129

129:                                              ; preds = %123
  %130 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %131 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 21)
  %132 = add nsw i64 %131, %130
  %133 = load i64, ptr %1, align 8, !tbaa !8
  %134 = icmp eq i64 %132, %133
  br i1 %134, label %166, label %135

135:                                              ; preds = %129
  %136 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %137 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 22)
  %138 = add nsw i64 %137, %136
  %139 = load i64, ptr %1, align 8, !tbaa !8
  %140 = icmp eq i64 %138, %139
  br i1 %140, label %166, label %141

141:                                              ; preds = %135
  %142 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %143 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 23)
  %144 = add nsw i64 %143, %142
  %145 = load i64, ptr %1, align 8, !tbaa !8
  %146 = icmp eq i64 %144, %145
  br i1 %146, label %166, label %147

147:                                              ; preds = %141
  %148 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %149 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 24)
  %150 = add nsw i64 %149, %148
  %151 = load i64, ptr %1, align 8, !tbaa !8
  %152 = icmp eq i64 %150, %151
  br i1 %152, label %166, label %153

153:                                              ; preds = %147
  %154 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %155 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 25)
  %156 = add nsw i64 %155, %154
  %157 = load i64, ptr %1, align 8, !tbaa !8
  %158 = icmp eq i64 %156, %157
  br i1 %158, label %166, label %159

159:                                              ; preds = %153
  %160 = call noundef i64 @_Z5powerxx(i64 noundef 3, i64 noundef %.01323)
  %161 = call noundef i64 @_Z5powerxx(i64 noundef 5, i64 noundef 26)
  %162 = add nsw i64 %161, %160
  %163 = load i64, ptr %1, align 8, !tbaa !8
  %164 = icmp eq i64 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %159
  br label %166

166:                                              ; preds = %165, %159, %153, %147, %141, %135, %129, %123, %117, %111, %105, %99, %93, %87, %81, %75, %69, %63, %57, %51, %45, %39, %33, %27, %21, %15, %.preheader
  %.118 = phi i1 [ true, %.preheader ], [ true, %15 ], [ true, %21 ], [ true, %27 ], [ true, %33 ], [ true, %39 ], [ true, %45 ], [ true, %51 ], [ true, %57 ], [ true, %63 ], [ true, %69 ], [ true, %75 ], [ true, %81 ], [ true, %87 ], [ true, %93 ], [ true, %99 ], [ true, %105 ], [ true, %111 ], [ true, %117 ], [ true, %123 ], [ true, %129 ], [ true, %135 ], [ true, %141 ], [ true, %147 ], [ true, %153 ], [ true, %159 ], [ %.01720, %165 ]
  %.116 = phi i64 [ %.01323, %.preheader ], [ %.01323, %15 ], [ %.01323, %21 ], [ %.01323, %27 ], [ %.01323, %33 ], [ %.01323, %39 ], [ %.01323, %45 ], [ %.01323, %51 ], [ %.01323, %57 ], [ %.01323, %63 ], [ %.01323, %69 ], [ %.01323, %75 ], [ %.01323, %81 ], [ %.01323, %87 ], [ %.01323, %93 ], [ %.01323, %99 ], [ %.01323, %105 ], [ %.01323, %111 ], [ %.01323, %117 ], [ %.01323, %123 ], [ %.01323, %129 ], [ %.01323, %135 ], [ %.01323, %141 ], [ %.01323, %147 ], [ %.01323, %153 ], [ %.01323, %159 ], [ %.01521, %165 ]
  %.1 = phi i64 [ 1, %.preheader ], [ 2, %15 ], [ 3, %21 ], [ 4, %27 ], [ 5, %33 ], [ 6, %39 ], [ 7, %45 ], [ 8, %51 ], [ 9, %57 ], [ 10, %63 ], [ 11, %69 ], [ 12, %75 ], [ 13, %81 ], [ 14, %87 ], [ 15, %93 ], [ 16, %99 ], [ 17, %105 ], [ 18, %111 ], [ 19, %117 ], [ 20, %123 ], [ 21, %129 ], [ 22, %135 ], [ 23, %141 ], [ 24, %147 ], [ 25, %153 ], [ 26, %159 ], [ %.01422, %165 ]
  %167 = add nuw nsw i64 %.01323, 1
  %exitcond.not = icmp eq i64 %167, 39
  br i1 %exitcond.not, label %14, label %.preheader, !llvm.loop !11

168:                                              ; preds = %14
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.116)
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %169, i8 noundef signext 32)
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %170, i64 noundef %.1)
  br label %174

172:                                              ; preds = %14
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %174

174:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

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

; 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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

; 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 #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #5 = { 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 #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass