; LLVM IR from amaitou/DataStructures :: problems/postfixevaluation (postfixevaluation)

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

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

@s = external dso_local global %struct.operation, align 4
@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10digitalphai(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8priorityc(i8 noundef signext) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14infixt2postfixNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %10 unwind label %17

10:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %135, %10
  %12 = load i32, ptr %9, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %15 = icmp ult i64 %13, %14
  br i1 %15, label %21, label %16

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %138

17:                                               ; preds = %2
  %18 = landingpad { ptr, i32 }
          cleanup
  %19 = extractvalue { ptr, i32 } %18, 0
  store ptr %19, ptr %7, align 8
  %20 = extractvalue { ptr, i32 } %18, 1
  store i32 %20, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  br label %159

21:                                               ; preds = %11
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %25 unwind label %30

25:                                               ; preds = %21
  %26 = load i8, ptr %24, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %27, 32
  br i1 %28, label %29, label %34

29:                                               ; preds = %25
  br label %135

30:                                               ; preds = %127, %123, %121, %118, %116, %106, %102, %99, %96, %94, %91, %89, %85, %76, %72, %68, %59, %50, %46, %42, %34, %21
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %158

34:                                               ; preds = %25
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %36)
          to label %38 unwind label %30

38:                                               ; preds = %34
  %39 = load i8, ptr %37, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 40
  br i1 %41, label %42, label %50

42:                                               ; preds = %38
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %44)
          to label %46 unwind label %30

46:                                               ; preds = %42
  %47 = load i8, ptr %45, align 1, !tbaa !11
  %48 = sitofp i8 %47 to float
  invoke void @_ZN9operation4pushEf(ptr noundef nonnull align 4 dereferenceable(404) @s, float noundef %48)
          to label %49 unwind label %30

49:                                               ; preds = %46
  br label %133

50:                                               ; preds = %38
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %52)
          to label %54 unwind label %30

54:                                               ; preds = %50
  %55 = load i8, ptr %53, align 1, !tbaa !11
  %56 = sext i8 %55 to i32
  %57 = call noundef i32 @_Z10digitalphai(i32 noundef %56)
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %68, label %59

59:                                               ; preds = %54
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %61)
          to label %63 unwind label %30

63:                                               ; preds = %59
  %64 = load i8, ptr %62, align 1, !tbaa !11
  %65 = sext i8 %64 to i32
  %66 = call noundef i32 @_Z10digitalphai(i32 noundef %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %76

68:                                               ; preds = %63, %54
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %70)
          to label %72 unwind label %30

72:                                               ; preds = %68
  %73 = load i8, ptr %71, align 1, !tbaa !11
  %74 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %73)
          to label %75 unwind label %30

75:                                               ; preds = %72
  br label %132

76:                                               ; preds = %63
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %78)
          to label %80 unwind label %30

80:                                               ; preds = %76
  %81 = load i8, ptr %79, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 41
  br i1 %83, label %84, label %98

84:                                               ; preds = %80
  br label %85

85:                                               ; preds = %95, %84
  %86 = invoke noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %87 unwind label %30

87:                                               ; preds = %85
  %88 = fcmp une float %86, 4.000000e+01
  br i1 %88, label %89, label %96

89:                                               ; preds = %87
  %90 = invoke noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %91 unwind label %30

91:                                               ; preds = %89
  %92 = fptosi float %90 to i8
  %93 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %92)
          to label %94 unwind label %30

94:                                               ; preds = %91
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %95 unwind label %30

95:                                               ; preds = %94
  br label %85, !llvm.loop !12

96:                                               ; preds = %87
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %97 unwind label %30

97:                                               ; preds = %96
  br label %131

98:                                               ; preds = %80
  br label %99

99:                                               ; preds = %122, %98
  %100 = invoke noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %101 unwind label %30

101:                                              ; preds = %99
  br i1 %100, label %114, label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %104)
          to label %106 unwind label %30

106:                                              ; preds = %102
  %107 = load i8, ptr %105, align 1, !tbaa !11
  %108 = call noundef i32 @_Z8priorityc(i8 noundef signext %107)
  %109 = invoke noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %110 unwind label %30

110:                                              ; preds = %106
  %111 = fptosi float %109 to i8
  %112 = call noundef i32 @_Z8priorityc(i8 noundef signext %111)
  %113 = icmp sle i32 %108, %112
  br label %114

114:                                              ; preds = %110, %101
  %115 = phi i1 [ false, %101 ], [ %113, %110 ]
  br i1 %115, label %116, label %123

116:                                              ; preds = %114
  %117 = invoke noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %118 unwind label %30

118:                                              ; preds = %116
  %119 = fptosi float %117 to i8
  %120 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %119)
          to label %121 unwind label %30

121:                                              ; preds = %118
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %122 unwind label %30

122:                                              ; preds = %121
  br label %99, !llvm.loop !14

123:                                              ; preds = %114
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %125)
          to label %127 unwind label %30

127:                                              ; preds = %123
  %128 = load i8, ptr %126, align 1, !tbaa !11
  %129 = sitofp i8 %128 to float
  invoke void @_ZN9operation4pushEf(ptr noundef nonnull align 4 dereferenceable(404) @s, float noundef %129)
          to label %130 unwind label %30

130:                                              ; preds = %127
  br label %131

131:                                              ; preds = %130, %97
  br label %132

132:                                              ; preds = %131, %75
  br label %133

133:                                              ; preds = %132, %49
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134, %29
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !9
  br label %11, !llvm.loop !15

138:                                              ; preds = %16
  br label %139

139:                                              ; preds = %149, %138
  %140 = invoke noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %141 unwind label %150

141:                                              ; preds = %139
  %142 = xor i1 %140, true
  br i1 %142, label %143, label %154

143:                                              ; preds = %141
  %144 = invoke noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %145 unwind label %150

145:                                              ; preds = %143
  %146 = fptosi float %144 to i8
  %147 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %146)
          to label %148 unwind label %150

148:                                              ; preds = %145
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %149 unwind label %150

149:                                              ; preds = %148
  br label %139, !llvm.loop !16

150:                                              ; preds = %148, %145, %143, %139
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %7, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %8, align 4
  br label %158

154:                                              ; preds = %141
  store i1 true, ptr %5, align 1
  %155 = load i1, ptr %5, align 1
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %157

157:                                              ; preds = %156, %154
  ret void

158:                                              ; preds = %150, %30
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %159

159:                                              ; preds = %158, %17
  %160 = load ptr, ptr %7, align 8
  %161 = load i32, ptr %8, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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


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

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

@s = external dso_local global %struct.operation, align 4
@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10digitalphai(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8priorityc(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14infixt2postfixNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %4 unwind label %6

4:                                                ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  %5 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %.not27 = icmp eq i64 %5, 0
  br i1 %.not27, label %.preheader.preheader, label %.lr.ph

6:                                                ; preds = %2
  %7 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  br label %69

.lr.ph:                                           ; preds = %4, %57
  %indvars.iv = phi i64 [ %indvars.iv.next, %57 ], [ 0, %4 ]
  %8 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %10 = icmp eq i8 %9, 32
  br i1 %10, label %57, label %11

.loopexit:                                        ; preds = %35, %39
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %53, %49
  %lpad.loopexit23 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %40, %25
  %lpad.loopexit.split-lp24 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

11:                                               ; preds = %.lr.ph
  %12 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = icmp eq i8 %13, 40
  %15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %16 = load i8, ptr %15, align 1, !tbaa !5
  br i1 %14, label %.sink.split, label %17

17:                                               ; preds = %11
  %18 = sext i8 %16 to i32
  %19 = call noundef i32 @_Z10digitalphai(i32 noundef %18)
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %25

20:                                               ; preds = %17
  %21 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = sext i8 %22 to i32
  %24 = call noundef i32 @_Z10digitalphai(i32 noundef %23)
  %.not17 = icmp eq i32 %24, 0
  br i1 %.not17, label %29, label %25

25:                                               ; preds = %20, %17
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %27)
          to label %57 unwind label %.loopexit.split-lp.loopexit.split-lp

29:                                               ; preds = %20
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %32 = icmp eq i8 %31, 41
  br i1 %32, label %.preheader21, label %.preheader22

.preheader21:                                     ; preds = %29, %39
  %33 = call noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  %34 = fcmp une float %33, 4.000000e+01
  br i1 %34, label %35, label %40

35:                                               ; preds = %.preheader21
  %36 = call noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  %37 = fptosi float %36 to i8
  %38 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %37)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %35
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %.preheader21 unwind label %.loopexit, !llvm.loop !8

40:                                               ; preds = %.preheader21
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %57 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader22:                                     ; preds = %29, %53
  %41 = call noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  br i1 %41, label %.critedge, label %42

42:                                               ; preds = %.preheader22
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %44 = load i8, ptr %43, align 1, !tbaa !5
  %45 = call noundef i32 @_Z8priorityc(i8 noundef signext %44)
  %46 = call noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  %47 = fptosi float %46 to i8
  %48 = call noundef i32 @_Z8priorityc(i8 noundef signext %47)
  %.not18 = icmp sgt i32 %45, %48
  br i1 %.not18, label %.critedge, label %49

49:                                               ; preds = %42
  %50 = call noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  %51 = fptosi float %50 to i8
  %52 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %51)
          to label %53 unwind label %.loopexit.split-lp.loopexit

53:                                               ; preds = %49
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %.preheader22 unwind label %.loopexit.split-lp.loopexit, !llvm.loop !10

.critedge:                                        ; preds = %.preheader22, %42
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %55 = load i8, ptr %54, align 1, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %11, %.critedge
  %.sink29 = phi i8 [ %55, %.critedge ], [ %16, %11 ]
  %56 = sitofp i8 %.sink29 to float
  call void @_ZN9operation4pushEf(ptr noundef nonnull align 4 dereferenceable(404) @s, float noundef %56)
  br label %57

57:                                               ; preds = %.sink.split, %25, %40, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %58 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %59 = icmp ugt i64 %58, %indvars.iv.next
  br i1 %59, label %.lr.ph, label %.preheader.preheader, !llvm.loop !11

.preheader.preheader:                             ; preds = %57, %4
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %65
  %60 = call noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  br i1 %60, label %68, label %61

61:                                               ; preds = %.preheader
  %62 = call noundef float @_ZN9operation4peekEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
  %63 = fptosi float %62 to i8
  %64 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %63)
          to label %65 unwind label %66

65:                                               ; preds = %61
  invoke void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404) @s)
          to label %.preheader unwind label %66, !llvm.loop !12

66:                                               ; preds = %65, %61
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

68:                                               ; preds = %.preheader
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %66
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit23, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp24, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %69

69:                                               ; preds = %.loopexit.split-lp, %6
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %7, %6 ]
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9operation3popEv(ptr noundef nonnull align 4 dereferenceable(404)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9operation5emptyEv(ptr noundef nonnull align 4 dereferenceable(404)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = distinct !{!12, !9}


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