; LLVM IR from Algo-Phantoms/Algo-Tree :: Code/C++ (Postfixexpression)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.stack = type { i32, [50 x float] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [52 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [50 x i8], align 16
  %3 = alloca [50 x float], align 16
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca %class.stack, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 50, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 200, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 204, ptr %6) #7
  call void @_ZN5stackC2Ev(ptr noundef nonnull align 4 dereferenceable(204) %6)
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %38, %0
  %12 = load i32, ptr %7, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %13
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = sext i8 %15 to i32
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %41

18:                                               ; preds = %11
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = sext i8 %22 to i32
  %24 = call i32 @isalpha(i32 noundef %23) #8
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %38

26:                                               ; preds = %18
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %29
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %27, i8 noundef signext %31)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @.str.2)
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x float], ptr %3, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %36)
  br label %38

38:                                               ; preds = %26, %18
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %7, align 4, !tbaa !5
  br label %11, !llvm.loop !10

41:                                               ; preds = %11
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %43
  store i8 41, ptr %44, align 1, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %93, %41
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %50 = sext i8 %49 to i32
  %51 = icmp ne i32 %50, 41
  br i1 %51, label %52, label %96

52:                                               ; preds = %45
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %57 = sext i8 %56 to i32
  switch i32 %57, label %88 [
    i32 43, label %58
    i32 45, label %64
    i32 42, label %70
    i32 47, label %76
    i32 94, label %82
  ]

58:                                               ; preds = %52
  %59 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %59, ptr %4, align 4, !tbaa !12
  %60 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %60, ptr %5, align 4, !tbaa !12
  %61 = load float, ptr %5, align 4, !tbaa !12
  %62 = load float, ptr %4, align 4, !tbaa !12
  %63 = fadd float %61, %62
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %63)
  br label %93

64:                                               ; preds = %52
  %65 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %65, ptr %4, align 4, !tbaa !12
  %66 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %66, ptr %5, align 4, !tbaa !12
  %67 = load float, ptr %5, align 4, !tbaa !12
  %68 = load float, ptr %4, align 4, !tbaa !12
  %69 = fsub float %67, %68
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %69)
  br label %93

70:                                               ; preds = %52
  %71 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %71, ptr %4, align 4, !tbaa !12
  %72 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %72, ptr %5, align 4, !tbaa !12
  %73 = load float, ptr %5, align 4, !tbaa !12
  %74 = load float, ptr %4, align 4, !tbaa !12
  %75 = fmul float %73, %74
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %75)
  br label %93

76:                                               ; preds = %52
  %77 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %77, ptr %4, align 4, !tbaa !12
  %78 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %78, ptr %5, align 4, !tbaa !12
  %79 = load float, ptr %5, align 4, !tbaa !12
  %80 = load float, ptr %4, align 4, !tbaa !12
  %81 = fdiv float %79, %80
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %81)
  br label %93

82:                                               ; preds = %52
  %83 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %83, ptr %4, align 4, !tbaa !12
  %84 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  store float %84, ptr %5, align 4, !tbaa !12
  %85 = load float, ptr %5, align 4, !tbaa !12
  %86 = load float, ptr %4, align 4, !tbaa !12
  %87 = call noundef float @_ZSt3powff(float noundef %85, float noundef %86)
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %87)
  br label %93

88:                                               ; preds = %52
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [50 x float], ptr %3, i64 0, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !12
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %6, float noundef %92)
  br label %93

93:                                               ; preds = %88, %82, %76, %70, %64, %58
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !5
  br label %45, !llvm.loop !14

96:                                               ; preds = %45
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %98
  store i8 0, ptr %99, align 1, !tbaa !9
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %130, %96
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = icmp ne i8 %105, 0
  br i1 %106, label %107, label %133

107:                                              ; preds = %101
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !9
  %112 = sext i8 %111 to i32
  %113 = call i32 @isalpha(i32 noundef %112) #8
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %122

115:                                              ; preds = %107
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [50 x float], ptr %3, i64 0, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.4)
  br label %129

122:                                              ; preds = %107
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %124
  %126 = load i8, ptr %125, align 1, !tbaa !9
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %126)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef @.str.4)
  br label %129

129:                                              ; preds = %122, %115
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %7, align 4, !tbaa !5
  br label %101, !llvm.loop !15

133:                                              ; preds = %101
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %135 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %6)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %134, float noundef %135)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 204, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 50, ptr %2) #7
  %137 = load i32, ptr %1, align 4
  ret i32 %137
}

; 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 dso_local void @_ZN5stackC2Ev(ptr noundef nonnull align 4 dereferenceable(204)) unnamed_addr #2 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(i32 noundef) #4

; 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) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204), float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #6

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

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

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 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 = { 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 willreturn memory(read) "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 = { 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 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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"}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.stack = type { i32, [50 x float] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [52 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [50 x i8], align 16
  %2 = alloca [50 x float], align 16
  %3 = alloca %class.stack, align 4
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 204, ptr nonnull %3) #7
  call void @_ZN5stackC2Ev(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %4 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %1)
  %6 = load i8, ptr %1, align 16, !tbaa !5
  %.not34 = icmp eq i8 %6, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %18
  %indvars.iv = phi i64 [ %indvars.iv.next, %18 ], [ 0, %0 ]
  %7 = phi i8 [ %20, %18 ], [ %6, %0 ]
  %8 = phi ptr [ %19, %18 ], [ %1, %0 ]
  %9 = sext i8 %7 to i32
  %10 = call i32 @isalpha(i32 noundef %9) #8
  %.not32 = icmp eq i32 %10, 0
  br i1 %.not32, label %18, label %11

11:                                               ; preds = %.lr.ph
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %13 = load i8, ptr %8, align 1, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %12, i8 noundef signext %13)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.2)
  %16 = getelementptr inbounds [50 x float], ptr %2, i64 0, i64 %indvars.iv
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br label %18

18:                                               ; preds = %11, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %indvars.iv.next
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %.not = icmp eq i8 %20, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %18, %0
  %.lcssa33 = phi ptr [ %1, %0 ], [ %19, %18 ]
  store i8 41, ptr %.lcssa33, align 1, !tbaa !5
  br label %21

21:                                               ; preds = %47, %._crit_edge
  %indvars.iv43 = phi i64 [ %indvars.iv.next44, %47 ], [ 0, %._crit_edge ]
  %22 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %indvars.iv43
  %23 = load i8, ptr %22, align 1, !tbaa !5
  switch i8 %23, label %44 [
    i8 41, label %48
    i8 43, label %24
    i8 45, label %28
    i8 42, label %32
    i8 47, label %36
    i8 94, label %40
  ]

24:                                               ; preds = %21
  %25 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %26 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %27 = fadd float %25, %26
  br label %47

28:                                               ; preds = %21
  %29 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %30 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %31 = fsub float %30, %29
  br label %47

32:                                               ; preds = %21
  %33 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %34 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %35 = fmul float %33, %34
  br label %47

36:                                               ; preds = %21
  %37 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %38 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %39 = fdiv float %38, %37
  br label %47

40:                                               ; preds = %21
  %41 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %42 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %43 = call noundef float @_ZSt3powff(float noundef %42, float noundef %41)
  br label %47

44:                                               ; preds = %21
  %45 = getelementptr inbounds [50 x float], ptr %2, i64 0, i64 %indvars.iv43
  %46 = load float, ptr %45, align 4, !tbaa !10
  br label %47

47:                                               ; preds = %44, %40, %36, %32, %28, %24
  %.sink = phi float [ %46, %44 ], [ %43, %40 ], [ %39, %36 ], [ %35, %32 ], [ %31, %28 ], [ %27, %24 ]
  call void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204) %3, float noundef %.sink)
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  br label %21, !llvm.loop !12

48:                                               ; preds = %21
  %49 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %indvars.iv43
  store i8 0, ptr %49, align 1, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %51 = load i8, ptr %1, align 16, !tbaa !5
  %.not3037 = icmp eq i8 %51, 0
  br i1 %.not3037, label %._crit_edge41, label %.lr.ph40

.lr.ph40:                                         ; preds = %48, %61
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %61 ], [ 0, %48 ]
  %52 = phi i8 [ %64, %61 ], [ %51, %48 ]
  %53 = sext i8 %52 to i32
  %54 = call i32 @isalpha(i32 noundef %53) #8
  %.not31 = icmp eq i32 %54, 0
  br i1 %.not31, label %59, label %55

55:                                               ; preds = %.lr.ph40
  %56 = getelementptr inbounds [50 x float], ptr %2, i64 0, i64 %indvars.iv46
  %57 = load float, ptr %56, align 4, !tbaa !10
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %57)
  br label %61

59:                                               ; preds = %.lr.ph40
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %52)
  br label %61

61:                                               ; preds = %55, %59
  %.sink49 = phi ptr [ %58, %55 ], [ %60, %59 ]
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %.sink49, ptr noundef nonnull @.str.4)
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %63 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %indvars.iv.next47
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %.not30 = icmp eq i8 %64, 0
  br i1 %.not30, label %._crit_edge41, label %.lr.ph40, !llvm.loop !13

._crit_edge41:                                    ; preds = %61, %48
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  %66 = call noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204) %3)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %65, float noundef %66)
  call void @llvm.lifetime.end.p0(i64 204, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %1) #7
  ret i32 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 nounwind uwtable
declare dso_local void @_ZN5stackC2Ev(ptr noundef nonnull align 4 dereferenceable(204)) unnamed_addr #2 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @isalpha(i32 noundef) local_unnamed_addr #4

; 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 #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5stack3popEv(ptr noundef nonnull align 4 dereferenceable(204)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stack4pushEf(ptr noundef nonnull align 4 dereferenceable(204), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) local_unnamed_addr #6

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

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

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 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 = { 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 = { mustprogress nofree nounwind willreturn memory(read) "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 = { 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 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

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


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