; LLVM IR from ShahjalalShohag/code-library :: Miscellaneous (Expression Parsing)

; 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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack.3" = type { %"class.std::deque.4" }
%"class.std::deque.4" = type { %"class.std::_Deque_base.5" }
%"class.std::_Deque_base.5" = type { %"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl" }
%"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl" = type { %"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl_data" }
%"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.6", %"struct.std::_Deque_iterator.6" }
%"struct.std::_Deque_iterator.6" = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5delimc(i8 noundef signext) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5is_opc(i8 noundef signext) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8is_unaryc(i8 noundef signext) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext) #1

; 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 dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8evaluateNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::stack", align 8
  %4 = alloca %"class.std::stack.3", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %3) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #5
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %12 unwind label %19

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 1, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %13

13:                                               ; preds = %181, %12
  %14 = load i32, ptr %8, align 4, !tbaa !11
  %15 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %16 = trunc i64 %15 to i32
  %17 = icmp slt i32 %14, %16
  br i1 %17, label %23, label %18

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

19:                                               ; preds = %1
  %20 = landingpad { ptr, i32 }
          cleanup
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %5, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %6, align 4
  br label %205

23:                                               ; preds = %13
  %24 = load i32, ptr %8, align 4, !tbaa !11
  %25 = sext i32 %24 to i64
  %26 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %25)
          to label %27 unwind label %31

27:                                               ; preds = %23
  %28 = load i8, ptr %26, align 1, !tbaa !13
  %29 = call noundef zeroext i1 @_Z5delimc(i8 noundef signext %28)
  br i1 %29, label %30, label %35

30:                                               ; preds = %27
  br label %181

31:                                               ; preds = %72, %70, %68, %66, %64, %58, %49, %35, %23
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %5, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %6, align 4
  br label %184

35:                                               ; preds = %27
  %36 = load i32, ptr %8, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %37)
          to label %39 unwind label %31

39:                                               ; preds = %35
  %40 = load i8, ptr %38, align 1, !tbaa !13
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, 40
  br i1 %42, label %43, label %49

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 40, ptr %9, align 1, !tbaa !13
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushEOc(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %44 unwind label %45

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  store i8 1, ptr %7, align 1, !tbaa !9
  br label %180

45:                                               ; preds = %43
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %184

49:                                               ; preds = %39
  %50 = load i32, ptr %8, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %51)
          to label %53 unwind label %31

53:                                               ; preds = %49
  %54 = load i8, ptr %52, align 1, !tbaa !13
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 41
  br i1 %56, label %57, label %72

57:                                               ; preds = %53
  br label %58

58:                                               ; preds = %69, %57
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %60 unwind label %31

60:                                               ; preds = %58
  %61 = load i8, ptr %59, align 1, !tbaa !13
  %62 = sext i8 %61 to i32
  %63 = icmp ne i32 %62, 40
  br i1 %63, label %64, label %70

64:                                               ; preds = %60
  %65 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %66 unwind label %31

66:                                               ; preds = %64
  %67 = load i8, ptr %65, align 1, !tbaa !13
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %3, i8 noundef signext %67)
          to label %68 unwind label %31

68:                                               ; preds = %66
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %69 unwind label %31

69:                                               ; preds = %68
  br label %58, !llvm.loop !14

70:                                               ; preds = %60
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %71 unwind label %31

71:                                               ; preds = %70
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %179

72:                                               ; preds = %53
  %73 = load i32, ptr %8, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %74)
          to label %76 unwind label %31

76:                                               ; preds = %72
  %77 = load i8, ptr %75, align 1, !tbaa !13
  %78 = call noundef zeroext i1 @_Z5is_opc(i8 noundef signext %77)
  br i1 %78, label %79, label %141

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %80 = load i32, ptr %8, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %81)
          to label %83 unwind label %95

83:                                               ; preds = %79
  %84 = load i8, ptr %82, align 1, !tbaa !13
  store i8 %84, ptr %10, align 1, !tbaa !13
  %85 = load i8, ptr %7, align 1, !tbaa !9, !range !16, !noundef !17
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %99

87:                                               ; preds = %83
  %88 = load i8, ptr %10, align 1, !tbaa !13
  %89 = call noundef zeroext i1 @_Z8is_unaryc(i8 noundef signext %88)
  br i1 %89, label %90, label %99

90:                                               ; preds = %87
  %91 = load i8, ptr %10, align 1, !tbaa !13
  %92 = sext i8 %91 to i32
  %93 = sub nsw i32 0, %92
  %94 = trunc i32 %93 to i8
  store i8 %94, ptr %10, align 1, !tbaa !13
  br label %99

95:                                               ; preds = %139, %137, %135, %133, %119, %107, %100, %79
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %5, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %184

99:                                               ; preds = %90, %87, %83
  br label %100

100:                                              ; preds = %138, %99
  %101 = invoke noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %102 unwind label %95

102:                                              ; preds = %100
  br i1 %101, label %131, label %103

103:                                              ; preds = %102
  %104 = load i8, ptr %10, align 1, !tbaa !13
  %105 = sext i8 %104 to i32
  %106 = icmp sge i32 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %103
  %108 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %109 unwind label %95

109:                                              ; preds = %107
  %110 = load i8, ptr %108, align 1, !tbaa !13
  %111 = call noundef i32 @_Z8priorityc(i8 noundef signext %110)
  %112 = load i8, ptr %10, align 1, !tbaa !13
  %113 = call noundef i32 @_Z8priorityc(i8 noundef signext %112)
  %114 = icmp sge i32 %111, %113
  br i1 %114, label %129, label %115

115:                                              ; preds = %109, %103
  %116 = load i8, ptr %10, align 1, !tbaa !13
  %117 = sext i8 %116 to i32
  %118 = icmp slt i32 %117, 0
  br i1 %118, label %119, label %127

119:                                              ; preds = %115
  %120 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %121 unwind label %95

121:                                              ; preds = %119
  %122 = load i8, ptr %120, align 1, !tbaa !13
  %123 = call noundef i32 @_Z8priorityc(i8 noundef signext %122)
  %124 = load i8, ptr %10, align 1, !tbaa !13
  %125 = call noundef i32 @_Z8priorityc(i8 noundef signext %124)
  %126 = icmp sgt i32 %123, %125
  br label %127

127:                                              ; preds = %121, %115
  %128 = phi i1 [ false, %115 ], [ %126, %121 ]
  br label %129

129:                                              ; preds = %127, %109
  %130 = phi i1 [ true, %109 ], [ %128, %127 ]
  br label %131

131:                                              ; preds = %129, %102
  %132 = phi i1 [ false, %102 ], [ %130, %129 ]
  br i1 %132, label %133, label %139

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %135 unwind label %95

135:                                              ; preds = %133
  %136 = load i8, ptr %134, align 1, !tbaa !13
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %3, i8 noundef signext %136)
          to label %137 unwind label %95

137:                                              ; preds = %135
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %138 unwind label %95

138:                                              ; preds = %137
  br label %100, !llvm.loop !18

139:                                              ; preds = %131
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushERKc(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %140 unwind label %95

140:                                              ; preds = %139
  store i8 1, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %178

141:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %142

142:                                              ; preds = %165, %141
  %143 = load i32, ptr %8, align 4, !tbaa !11
  %144 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %145 = trunc i64 %144 to i32
  %146 = icmp slt i32 %143, %145
  br i1 %146, label %147, label %156

147:                                              ; preds = %142
  %148 = load i32, ptr %8, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %149)
          to label %151 unwind label %170

151:                                              ; preds = %147
  %152 = load i8, ptr %150, align 1, !tbaa !13
  %153 = sext i8 %152 to i32
  %154 = call i32 @isalnum(i32 noundef %153) #6
  %155 = icmp ne i32 %154, 0
  br label %156

156:                                              ; preds = %151, %142
  %157 = phi i1 [ false, %142 ], [ %155, %151 ]
  br i1 %157, label %158, label %174

158:                                              ; preds = %156
  %159 = load i32, ptr %11, align 4, !tbaa !11
  %160 = mul nsw i32 %159, 10
  %161 = load i32, ptr %8, align 4, !tbaa !11
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !11
  %163 = sext i32 %161 to i64
  %164 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %163)
          to label %165 unwind label %170

165:                                              ; preds = %158
  %166 = load i8, ptr %164, align 1, !tbaa !13
  %167 = sext i8 %166 to i32
  %168 = add nsw i32 %160, %167
  %169 = sub nsw i32 %168, 48
  store i32 %169, ptr %11, align 4, !tbaa !11
  br label %142, !llvm.loop !19

170:                                              ; preds = %174, %158, %147
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %5, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %184

174:                                              ; preds = %156
  %175 = load i32, ptr %8, align 4, !tbaa !11
  %176 = add nsw i32 %175, -1
  store i32 %176, ptr %8, align 4, !tbaa !11
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %177 unwind label %170

177:                                              ; preds = %174
  store i8 0, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %178

178:                                              ; preds = %177, %140
  br label %179

179:                                              ; preds = %178, %71
  br label %180

180:                                              ; preds = %179, %44
  br label %181

181:                                              ; preds = %180, %30
  %182 = load i32, ptr %8, align 4, !tbaa !11
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %8, align 4, !tbaa !11
  br label %13, !llvm.loop !20

184:                                              ; preds = %170, %95, %45, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %204

185:                                              ; preds = %18
  br label %186

186:                                              ; preds = %195, %185
  %187 = invoke noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %188 unwind label %196

188:                                              ; preds = %186
  %189 = xor i1 %187, true
  br i1 %189, label %190, label %200

190:                                              ; preds = %188
  %191 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %192 unwind label %196

192:                                              ; preds = %190
  %193 = load i8, ptr %191, align 1, !tbaa !13
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %3, i8 noundef signext %193)
          to label %194 unwind label %196

194:                                              ; preds = %192
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %195 unwind label %196

195:                                              ; preds = %194
  br label %186, !llvm.loop !21

196:                                              ; preds = %200, %194, %192, %190, %186
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %5, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %6, align 4
  br label %204

200:                                              ; preds = %188
  %201 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %202 unwind label %196

202:                                              ; preds = %200
  %203 = load i32, ptr %201, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #5
  ret i32 %203

204:                                              ; preds = %196, %184
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #5
  br label %205

205:                                              ; preds = %204, %19
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #5
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %5, align 8
  %208 = load i32, ptr %6, align 4
  %209 = insertvalue { ptr, i32 } poison, ptr %207, 0
  %210 = insertvalue { ptr, i32 } %209, i32 %208, 1
  resume { ptr, i32 } %210
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(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 uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushEOc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalnum(i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; 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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack.3" = type { %"class.std::deque.4" }
%"class.std::deque.4" = type { %"class.std::_Deque_base.5" }
%"class.std::_Deque_base.5" = type { %"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl" }
%"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl" = type { %"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl_data" }
%"struct.std::_Deque_base<char, std::allocator<char>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.6", %"struct.std::_Deque_iterator.6" }
%"struct.std::_Deque_iterator.6" = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5delimc(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5is_opc(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8is_unaryc(i8 noundef signext) 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
declare dso_local void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext) local_unnamed_addr #1

; 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 dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; 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 uwtable
define dso_local noundef i32 @_Z8evaluateNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::stack", align 8
  %3 = alloca %"class.std::stack.3", align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #5
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %.preheader31 unwind label %11

.preheader31:                                     ; preds = %1
  %7 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %8 = trunc i64 %7 to i32
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph41, label %.preheader

.preheader:                                       ; preds = %97, %.preheader31
  %10 = call noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %10, label %._crit_edge43, label %.lr.ph42

11:                                               ; preds = %1
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %111

.lr.ph41:                                         ; preds = %.preheader31, %97
  %.040 = phi i32 [ %98, %97 ], [ 0, %.preheader31 ]
  %.01739 = phi i1 [ %.118, %97 ], [ true, %.preheader31 ]
  %13 = sext i32 %.040 to i64
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %13)
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = call noundef zeroext i1 @_Z5delimc(i8 noundef signext %15)
  br i1 %16, label %97, label %19

17:                                               ; preds = %.lr.ph38
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %110

19:                                               ; preds = %.lr.ph41
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %13)
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %22 = icmp eq i8 %21, 40
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  store i8 40, ptr %4, align 1, !tbaa !5
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushEOc(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %25

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

25:                                               ; preds = %23
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %110

27:                                               ; preds = %19
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %13)
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = icmp eq i8 %29, 41
  br i1 %30, label %.preheader30, label %38

.preheader30:                                     ; preds = %27
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %32 = load i8, ptr %31, align 1, !tbaa !5
  %.not2637 = icmp eq i8 %32, 40
  br i1 %.not2637, label %._crit_edge, label %.lr.ph38

.lr.ph38:                                         ; preds = %.preheader30, %35
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %34 = load i8, ptr %33, align 1, !tbaa !5
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %2, i8 noundef signext %34)
          to label %35 unwind label %17

35:                                               ; preds = %.lr.ph38
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %.not26 = icmp eq i8 %37, 40
  br i1 %.not26, label %._crit_edge, label %.lr.ph38, !llvm.loop !8

._crit_edge:                                      ; preds = %35, %.preheader30
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %97

38:                                               ; preds = %27
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %13)
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = call noundef zeroext i1 @_Z5is_opc(i8 noundef signext %40)
  br i1 %41, label %42, label %74

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %13)
  %44 = load i8, ptr %43, align 1, !tbaa !5
  store i8 %44, ptr %5, align 1, !tbaa !5
  br i1 %.01739, label %45, label %51

45:                                               ; preds = %42
  %46 = call noundef zeroext i1 @_Z8is_unaryc(i8 noundef signext %44)
  br i1 %46, label %47, label %51

47:                                               ; preds = %45
  %48 = load i8, ptr %5, align 1, !tbaa !5
  %49 = sub i8 0, %48
  store i8 %49, ptr %5, align 1, !tbaa !5
  br label %51

.loopexit:                                        ; preds = %.critedge2
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %50

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

50:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %110

51:                                               ; preds = %47, %45, %42
  %52 = call noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %52, label %.critedge, label %.lr.ph35

.lr.ph35:                                         ; preds = %51, %71
  %53 = load i8, ptr %5, align 1, !tbaa !5
  %54 = icmp sgt i8 %53, -1
  br i1 %54, label %55, label %.thread

55:                                               ; preds = %.lr.ph35
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %58 = call noundef i32 @_Z8priorityc(i8 noundef signext %57)
  %59 = load i8, ptr %5, align 1, !tbaa !5
  %60 = call noundef i32 @_Z8priorityc(i8 noundef signext %59)
  %.not25 = icmp slt i32 %58, %60
  br i1 %.not25, label %61, label %.critedge2

61:                                               ; preds = %55
  %.pr = load i8, ptr %5, align 1, !tbaa !5
  %62 = icmp slt i8 %.pr, 0
  br i1 %62, label %.thread, label %.critedge

.thread:                                          ; preds = %.lr.ph35, %61
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %65 = call noundef i32 @_Z8priorityc(i8 noundef signext %64)
  %66 = load i8, ptr %5, align 1, !tbaa !5
  %67 = call noundef i32 @_Z8priorityc(i8 noundef signext %66)
  %68 = icmp sgt i32 %65, %67
  br i1 %68, label %.critedge2, label %.critedge

.critedge2:                                       ; preds = %55, %.thread
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %70 = load i8, ptr %69, align 1, !tbaa !5
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %2, i8 noundef signext %70)
          to label %71 unwind label %.loopexit

71:                                               ; preds = %.critedge2
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %72 = call noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %72, label %.critedge, label %.lr.ph35, !llvm.loop !10

.critedge:                                        ; preds = %.thread, %61, %71, %51
  invoke void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushERKc(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %73 unwind label %.loopexit.split-lp

73:                                               ; preds = %.critedge
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %97

74:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !11
  %75 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %76 = trunc i64 %75 to i32
  %77 = icmp slt i32 %.040, %76
  br i1 %77, label %.lr.ph, label %.critedge4

.lr.ph:                                           ; preds = %74, %82
  %indvars.iv = phi i64 [ %indvars.iv.next, %82 ], [ %13, %74 ]
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %79 = load i8, ptr %78, align 1, !tbaa !5
  %80 = sext i8 %79 to i32
  %81 = call i32 @isalnum(i32 noundef %80) #6
  %.not = icmp eq i32 %81, 0
  br i1 %.not, label %.critedge4.loopexit, label %82

82:                                               ; preds = %.lr.ph
  %83 = load i32, ptr %6, align 4, !tbaa !11
  %84 = mul nsw i32 %83, 10
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = sext i8 %86 to i32
  %88 = add i32 %84, -48
  %89 = add i32 %88, %87
  store i32 %89, ptr %6, align 4, !tbaa !11
  %90 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %sext = shl i64 %90, 32
  %91 = ashr exact i64 %sext, 32
  %92 = icmp slt i64 %indvars.iv.next, %91
  br i1 %92, label %.lr.ph, label %.critedge4.loopexit, !llvm.loop !13

93:                                               ; preds = %.critedge4
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %110

.critedge4.loopexit:                              ; preds = %82, %.lr.ph
  %.1.lcssa.ph.in = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next, %82 ]
  %.1.lcssa.ph = trunc i64 %.1.lcssa.ph.in to i32
  br label %.critedge4

.critedge4:                                       ; preds = %.critedge4.loopexit, %74
  %.1.lcssa = phi i32 [ %.040, %74 ], [ %.1.lcssa.ph, %.critedge4.loopexit ]
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %95 unwind label %93

95:                                               ; preds = %.critedge4
  %96 = add nsw i32 %.1.lcssa, -1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %97

97:                                               ; preds = %24, %73, %95, %._crit_edge, %.lr.ph41
  %.118 = phi i1 [ %.01739, %.lr.ph41 ], [ true, %24 ], [ false, %._crit_edge ], [ true, %73 ], [ false, %95 ]
  %.2 = phi i32 [ %.040, %.lr.ph41 ], [ %.040, %24 ], [ %.040, %._crit_edge ], [ %.040, %73 ], [ %96, %95 ]
  %98 = add nsw i32 %.2, 1
  %99 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %100 = trunc i64 %99 to i32
  %101 = icmp slt i32 %98, %100
  br i1 %101, label %.lr.ph41, label %.preheader, !llvm.loop !14

.lr.ph42:                                         ; preds = %.preheader, %104
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %103 = load i8, ptr %102, align 1, !tbaa !5
  invoke void @_Z10process_opRSt5stackIiSt5dequeIiSaIiEEEc(ptr noundef nonnull align 8 dereferenceable(80) %2, i8 noundef signext %103)
          to label %104 unwind label %106

104:                                              ; preds = %.lr.ph42
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %105 = call noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %105, label %._crit_edge43, label %.lr.ph42, !llvm.loop !15

106:                                              ; preds = %.lr.ph42
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

._crit_edge43:                                    ; preds = %104, %.preheader
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %109 = load i32, ptr %108, align 4, !tbaa !11
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret i32 %109

110:                                              ; preds = %17, %25, %50, %93, %106
  %.pn.pn = phi { ptr, i32 } [ %107, %106 ], [ %26, %25 ], [ %18, %17 ], [ %lpad.phi, %50 ], [ %94, %93 ]
  call void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  br label %111

111:                                              ; preds = %110, %11
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %110 ], [ %12, %11 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(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 uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEE4pushEOc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIcSt5dequeIcSaIcEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIcSt5dequeIcSaIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIcSt5dequeIcSaIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !6, i64 0}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}


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