; LLVM IR from intel/qpl :: tools/utils/generators/deflate_generator (token)

; 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.char_type_c = type { [256 x i32], [256 x i8] }
%class.token_parser_c = type { ptr, %class.token_c, i8, i32 }
%class.token_c = type { i8, i32 }

@_ZL7g_ctype = external hidden global %class.char_type_c, align 4
@stderr = external global ptr, align 8
@_ZTISt9exception = external constant ptr
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280), i32 noundef) #2 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare ptr @__cxa_allocate_exception(i64)

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280), i32 noundef) #2 align 2

declare i32 @putc(i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i8 @_ZN14token_parser_c19parse_three_stringsEP7token_cPKcj12token_type_tS3_jS4_S3_jS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i8 noundef zeroext %4, ptr noundef %5, i32 noundef %6, i8 noundef zeroext %7, ptr noundef %8, i32 noundef %9, i8 noundef zeroext %10) #1 align 2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store i32 %3, ptr %15, align 4, !tbaa !9
  store i8 %4, ptr %16, align 1, !tbaa !11
  store ptr %5, ptr %17, align 8, !tbaa !5
  store i32 %6, ptr %18, align 4, !tbaa !9
  store i8 %7, ptr %19, align 1, !tbaa !11
  store ptr %8, ptr %20, align 8, !tbaa !5
  store i32 %9, ptr %21, align 4, !tbaa !9
  store i8 %10, ptr %22, align 1, !tbaa !11
  %34 = load ptr, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  store ptr null, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %35 = load i8, ptr %16, align 1, !tbaa !11
  store i8 %35, ptr %26, align 1, !tbaa !11
  %36 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  store i32 %36, ptr %23, align 4, !tbaa !9
  %37 = load i32, ptr %23, align 4, !tbaa !9
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %39, label %43

39:                                               ; preds = %11
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.2) #5
  %42 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #5
  call void @__cxa_throw(ptr %42, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

43:                                               ; preds = %11
  %44 = load i32, ptr %23, align 4, !tbaa !9
  %45 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %44)
  %46 = zext i8 %45 to i32
  store i32 %46, ptr %23, align 4, !tbaa !9
  %47 = load i32, ptr %23, align 4, !tbaa !9
  %48 = call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %47)
  store i32 %48, ptr %24, align 4, !tbaa !9
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 1
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 0, %52
  br i1 %53, label %54, label %62

54:                                               ; preds = %43
  %55 = load i32, ptr %24, align 4, !tbaa !9
  %56 = and i32 %55, 24
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %62, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %59, ptr %25, align 8, !tbaa !5
  %60 = load i8, ptr %16, align 1, !tbaa !11
  store i8 %60, ptr %26, align 1, !tbaa !11
  %61 = load i32, ptr %23, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef %61)
  br label %307

62:                                               ; preds = %54, %43
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 1
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = sext i8 %65 to i32
  %67 = icmp eq i32 0, %66
  br i1 %67, label %68, label %76

68:                                               ; preds = %62
  %69 = load i32, ptr %24, align 4, !tbaa !9
  %70 = and i32 %69, 24
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %76, label %72

72:                                               ; preds = %68
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %73, ptr %25, align 8, !tbaa !5
  %74 = load i8, ptr %19, align 1, !tbaa !11
  store i8 %74, ptr %26, align 1, !tbaa !11
  %75 = load i32, ptr %23, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef %75)
  br label %306

76:                                               ; preds = %68, %62
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 1
  %79 = load i8, ptr %78, align 1, !tbaa !13
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 0, %80
  br i1 %81, label %82, label %90

82:                                               ; preds = %76
  %83 = load i32, ptr %24, align 4, !tbaa !9
  %84 = and i32 %83, 24
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %90, label %86

86:                                               ; preds = %82
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %87, ptr %25, align 8, !tbaa !5
  %88 = load i8, ptr %22, align 1, !tbaa !11
  store i8 %88, ptr %26, align 1, !tbaa !11
  %89 = load i32, ptr %23, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef %89)
  br label %305

90:                                               ; preds = %82, %76
  %91 = load i32, ptr %23, align 4, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 1
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = sext i8 %94 to i32
  %96 = icmp eq i32 %91, %95
  br i1 %96, label %97, label %157

97:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 2, ptr %27, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %151, %97
  %99 = load i32, ptr %27, align 4, !tbaa !9
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 2, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %154

103:                                              ; preds = %98
  %104 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  store i32 %104, ptr %23, align 4, !tbaa !9
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = icmp eq i32 %105, -1
  br i1 %106, label %107, label %111

107:                                              ; preds = %103
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.2) #5
  %110 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %110) #5
  call void @__cxa_throw(ptr %110, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

111:                                              ; preds = %103
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %112)
  %114 = zext i8 %113 to i32
  store i32 %114, ptr %23, align 4, !tbaa !9
  %115 = load i32, ptr %23, align 4, !tbaa !9
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load i32, ptr %27, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !13
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %115, %121
  br i1 %122, label %123, label %150

123:                                              ; preds = %111
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %140, %123
  %127 = load i32, ptr %29, align 4, !tbaa !9
  %128 = load i32, ptr %27, align 4, !tbaa !9
  %129 = icmp ult i32 %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 5, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %143

131:                                              ; preds = %126
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load i32, ptr %29, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !13
  %137 = sext i8 %136 to i32
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = call i32 @putc(i32 noundef %137, ptr noundef %138)
  br label %140

140:                                              ; preds = %131
  %141 = load i32, ptr %29, align 4, !tbaa !9
  %142 = add i32 %141, 1
  store i32 %142, ptr %29, align 4, !tbaa !9
  br label %126, !llvm.loop !14

143:                                              ; preds = %130
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = load i32, ptr %23, align 4, !tbaa !9
  %146 = getelementptr inbounds %class.token_parser_c, ptr %34, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !16
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.4, i32 noundef %145, i32 noundef %147) #5
  %149 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %149) #5
  call void @__cxa_throw(ptr %149, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

150:                                              ; preds = %111
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %27, align 4, !tbaa !9
  br label %98, !llvm.loop !20

154:                                              ; preds = %102
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %155, ptr %25, align 8, !tbaa !5
  %156 = load i8, ptr %16, align 1, !tbaa !11
  store i8 %156, ptr %26, align 1, !tbaa !11
  br label %304

157:                                              ; preds = %90
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = getelementptr inbounds i8, ptr %159, i64 1
  %161 = load i8, ptr %160, align 1, !tbaa !13
  %162 = sext i8 %161 to i32
  %163 = icmp eq i32 %158, %162
  br i1 %163, label %164, label %224

164:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 2, ptr %30, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %218, %164
  %166 = load i32, ptr %30, align 4, !tbaa !9
  %167 = load i32, ptr %18, align 4, !tbaa !9
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 8, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %221

170:                                              ; preds = %165
  %171 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  store i32 %171, ptr %23, align 4, !tbaa !9
  %172 = load i32, ptr %23, align 4, !tbaa !9
  %173 = icmp eq i32 %172, -1
  br i1 %173, label %174, label %178

174:                                              ; preds = %170
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.2) #5
  %177 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %177) #5
  call void @__cxa_throw(ptr %177, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

178:                                              ; preds = %170
  %179 = load i32, ptr %23, align 4, !tbaa !9
  %180 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %179)
  %181 = zext i8 %180 to i32
  store i32 %181, ptr %23, align 4, !tbaa !9
  %182 = load i32, ptr %23, align 4, !tbaa !9
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = load i32, ptr %30, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds i8, ptr %183, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !13
  %188 = sext i8 %187 to i32
  %189 = icmp ne i32 %182, %188
  br i1 %189, label %190, label %217

190:                                              ; preds = %178
  %191 = load ptr, ptr @stderr, align 8, !tbaa !5
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %207, %190
  %194 = load i32, ptr %31, align 4, !tbaa !9
  %195 = load i32, ptr %30, align 4, !tbaa !9
  %196 = icmp ult i32 %194, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %193
  store i32 11, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %210

198:                                              ; preds = %193
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load i32, ptr %31, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %199, i64 %201
  %203 = load i8, ptr %202, align 1, !tbaa !13
  %204 = sext i8 %203 to i32
  %205 = load ptr, ptr @stderr, align 8, !tbaa !5
  %206 = call i32 @putc(i32 noundef %204, ptr noundef %205)
  br label %207

207:                                              ; preds = %198
  %208 = load i32, ptr %31, align 4, !tbaa !9
  %209 = add i32 %208, 1
  store i32 %209, ptr %31, align 4, !tbaa !9
  br label %193, !llvm.loop !21

210:                                              ; preds = %197
  %211 = load ptr, ptr @stderr, align 8, !tbaa !5
  %212 = load i32, ptr %23, align 4, !tbaa !9
  %213 = getelementptr inbounds %class.token_parser_c, ptr %34, i32 0, i32 3
  %214 = load i32, ptr %213, align 4, !tbaa !16
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.4, i32 noundef %212, i32 noundef %214) #5
  %216 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %216) #5
  call void @__cxa_throw(ptr %216, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

217:                                              ; preds = %178
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %30, align 4, !tbaa !9
  %220 = add i32 %219, 1
  store i32 %220, ptr %30, align 4, !tbaa !9
  br label %165, !llvm.loop !22

221:                                              ; preds = %169
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %222, ptr %25, align 8, !tbaa !5
  %223 = load i8, ptr %19, align 1, !tbaa !11
  store i8 %223, ptr %26, align 1, !tbaa !11
  br label %303

224:                                              ; preds = %157
  %225 = load i32, ptr %23, align 4, !tbaa !9
  %226 = load ptr, ptr %20, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i64 1
  %228 = load i8, ptr %227, align 1, !tbaa !13
  %229 = sext i8 %228 to i32
  %230 = icmp eq i32 %225, %229
  br i1 %230, label %231, label %291

231:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 2, ptr %32, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %285, %231
  %233 = load i32, ptr %32, align 4, !tbaa !9
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = icmp ult i32 %233, %234
  br i1 %235, label %237, label %236

236:                                              ; preds = %232
  store i32 14, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %288

237:                                              ; preds = %232
  %238 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  store i32 %238, ptr %23, align 4, !tbaa !9
  %239 = load i32, ptr %23, align 4, !tbaa !9
  %240 = icmp eq i32 %239, -1
  br i1 %240, label %241, label %245

241:                                              ; preds = %237
  %242 = load ptr, ptr @stderr, align 8, !tbaa !5
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.2) #5
  %244 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %244) #5
  call void @__cxa_throw(ptr %244, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

245:                                              ; preds = %237
  %246 = load i32, ptr %23, align 4, !tbaa !9
  %247 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %246)
  %248 = zext i8 %247 to i32
  store i32 %248, ptr %23, align 4, !tbaa !9
  %249 = load i32, ptr %23, align 4, !tbaa !9
  %250 = load ptr, ptr %20, align 8, !tbaa !5
  %251 = load i32, ptr %32, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds i8, ptr %250, i64 %252
  %254 = load i8, ptr %253, align 1, !tbaa !13
  %255 = sext i8 %254 to i32
  %256 = icmp ne i32 %249, %255
  br i1 %256, label %257, label %284

257:                                              ; preds = %245
  %258 = load ptr, ptr @stderr, align 8, !tbaa !5
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %260

260:                                              ; preds = %274, %257
  %261 = load i32, ptr %33, align 4, !tbaa !9
  %262 = load i32, ptr %32, align 4, !tbaa !9
  %263 = icmp ult i32 %261, %262
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 17, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %277

265:                                              ; preds = %260
  %266 = load ptr, ptr %20, align 8, !tbaa !5
  %267 = load i32, ptr %33, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds i8, ptr %266, i64 %268
  %270 = load i8, ptr %269, align 1, !tbaa !13
  %271 = sext i8 %270 to i32
  %272 = load ptr, ptr @stderr, align 8, !tbaa !5
  %273 = call i32 @putc(i32 noundef %271, ptr noundef %272)
  br label %274

274:                                              ; preds = %265
  %275 = load i32, ptr %33, align 4, !tbaa !9
  %276 = add i32 %275, 1
  store i32 %276, ptr %33, align 4, !tbaa !9
  br label %260, !llvm.loop !23

277:                                              ; preds = %264
  %278 = load ptr, ptr @stderr, align 8, !tbaa !5
  %279 = load i32, ptr %23, align 4, !tbaa !9
  %280 = getelementptr inbounds %class.token_parser_c, ptr %34, i32 0, i32 3
  %281 = load i32, ptr %280, align 4, !tbaa !16
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.4, i32 noundef %279, i32 noundef %281) #5
  %283 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %283) #5
  call void @__cxa_throw(ptr %283, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

284:                                              ; preds = %245
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %32, align 4, !tbaa !9
  %287 = add i32 %286, 1
  store i32 %287, ptr %32, align 4, !tbaa !9
  br label %232, !llvm.loop !24

288:                                              ; preds = %236
  %289 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %289, ptr %25, align 8, !tbaa !5
  %290 = load i8, ptr %22, align 1, !tbaa !11
  store i8 %290, ptr %26, align 1, !tbaa !11
  br label %302

291:                                              ; preds = %224
  %292 = load ptr, ptr @stderr, align 8, !tbaa !5
  %293 = load ptr, ptr %14, align 8, !tbaa !5
  %294 = getelementptr inbounds i8, ptr %293, i64 0
  %295 = load i8, ptr %294, align 1, !tbaa !13
  %296 = sext i8 %295 to i32
  %297 = load i32, ptr %23, align 4, !tbaa !9
  %298 = getelementptr inbounds %class.token_parser_c, ptr %34, i32 0, i32 3
  %299 = load i32, ptr %298, align 4, !tbaa !16
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.6, i32 noundef %296, i32 noundef %297, i32 noundef %299) #5
  %301 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %301) #5
  call void @__cxa_throw(ptr %301, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

302:                                              ; preds = %288
  br label %303

303:                                              ; preds = %302, %221
  br label %304

304:                                              ; preds = %303, %154
  br label %305

305:                                              ; preds = %304, %86
  br label %306

306:                                              ; preds = %305, %72
  br label %307

307:                                              ; preds = %306, %58
  %308 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  store i32 %308, ptr %23, align 4, !tbaa !9
  %309 = load i32, ptr %23, align 4, !tbaa !9
  %310 = call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %309)
  store i32 %310, ptr %24, align 4, !tbaa !9
  %311 = load i32, ptr %24, align 4, !tbaa !9
  %312 = and i32 %311, 24
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %322

314:                                              ; preds = %307
  %315 = load ptr, ptr @stderr, align 8, !tbaa !5
  %316 = load ptr, ptr %25, align 8, !tbaa !5
  %317 = load i32, ptr %23, align 4, !tbaa !9
  %318 = getelementptr inbounds %class.token_parser_c, ptr %34, i32 0, i32 3
  %319 = load i32, ptr %318, align 4, !tbaa !16
  %320 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef @.str.5, ptr noundef %316, i32 noundef %317, i32 noundef %319) #5
  %321 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %321) #5
  call void @__cxa_throw(ptr %321, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

322:                                              ; preds = %307
  %323 = load i32, ptr %23, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef %323)
  %324 = load i8, ptr %26, align 1, !tbaa !11
  store i32 1, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  ret i8 %324
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { nounwind "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 = { "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 = { noreturn }

!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 = !{!12, !12, i64 0}
!12 = !{!"_ZTS12token_type_t", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 20}
!17 = !{!"_ZTS14token_parser_c", !6, i64 0, !18, i64 8, !19, i64 16, !10, i64 20}
!18 = !{!"_ZTS7token_c", !12, i64 0, !10, i64 4}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !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.char_type_c = type { [256 x i32], [256 x i8] }

@_ZL7g_ctype = external hidden global %class.char_type_c, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@_ZTISt9exception = external constant ptr
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @putc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i8 @_ZN14token_parser_c19parse_three_stringsEP7token_cPKcj12token_type_tS3_jS4_S3_jS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readnone %1, ptr noundef %2, i32 noundef %3, i8 noundef zeroext %4, ptr noundef %5, i32 noundef %6, i8 noundef zeroext %7, ptr noundef %8, i32 noundef %9, i8 noundef zeroext %10) local_unnamed_addr #0 align 2 {
  %12 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %13 = icmp eq i32 %12, -1
  br i1 %13, label %14, label %18

14:                                               ; preds = %11
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.2) #4
  %17 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  tail call void @__cxa_throw(ptr nonnull %17, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

18:                                               ; preds = %11
  %19 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %12)
  %20 = zext i8 %19 to i32
  %21 = tail call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %20)
  %22 = getelementptr inbounds i8, ptr %2, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = icmp eq i8 %23, 0
  %25 = and i32 %21, 24
  %.not = icmp eq i32 %25, 0
  %or.cond = and i1 %24, %.not
  br i1 %or.cond, label %.loopexit.sink.split, label %26

26:                                               ; preds = %18
  %27 = getelementptr inbounds i8, ptr %5, i64 1
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = icmp eq i8 %28, 0
  %or.cond102 = and i1 %.not, %29
  br i1 %or.cond102, label %.loopexit.sink.split, label %30

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %8, i64 1
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = icmp eq i8 %32, 0
  %or.cond103 = and i1 %.not, %33
  br i1 %or.cond103, label %.loopexit.sink.split, label %34

34:                                               ; preds = %30
  %35 = sext i8 %23 to i32
  %36 = icmp eq i32 %20, %35
  br i1 %36, label %.preheader, label %66

.preheader:                                       ; preds = %34
  %37 = icmp ugt i32 %3, 2
  br i1 %37, label %.lr.ph122.preheader, label %.loopexit

.lr.ph122.preheader:                              ; preds = %.preheader
  %wide.trip.count164 = zext i32 %3 to i64
  br label %.lr.ph122

.lr.ph122:                                        ; preds = %.lr.ph122.preheader, %65
  %indvars.iv169 = phi i32 [ 2, %.lr.ph122.preheader ], [ %indvars.iv.next170, %65 ]
  %indvars.iv161 = phi i64 [ 2, %.lr.ph122.preheader ], [ %indvars.iv.next162, %65 ]
  %38 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %44

40:                                               ; preds = %.lr.ph122
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.2) #4
  %43 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #5
  tail call void @__cxa_throw(ptr nonnull %43, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

44:                                               ; preds = %.lr.ph122
  %45 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %38)
  %46 = zext i8 %45 to i32
  %47 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv161
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = sext i8 %48 to i32
  %.not101 = icmp eq i32 %46, %49
  br i1 %.not101, label %65, label %50

50:                                               ; preds = %44
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.3) #4
  %wide.trip.count173 = zext i32 %indvars.iv169 to i64
  br label %59

53:                                               ; preds = %59
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 20
  %56 = load i32, ptr %55, align 4, !tbaa !10
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.4, i32 noundef %46, i32 noundef %56) #4
  %58 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #5
  tail call void @__cxa_throw(ptr nonnull %58, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

59:                                               ; preds = %50, %59
  %indvars.iv166 = phi i64 [ 0, %50 ], [ %indvars.iv.next167, %59 ]
  %60 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv166
  %61 = load i8, ptr %60, align 1, !tbaa !9
  %62 = sext i8 %61 to i32
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = tail call i32 @putc(i32 noundef %62, ptr noundef %63)
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count173
  br i1 %exitcond174.not, label %53, label %59, !llvm.loop !16

65:                                               ; preds = %44
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  %indvars.iv.next170 = add nuw i32 %indvars.iv169, 1
  br i1 %exitcond165.not, label %.loopexit, label %.lr.ph122, !llvm.loop !18

66:                                               ; preds = %34
  %67 = sext i8 %28 to i32
  %68 = icmp eq i32 %20, %67
  br i1 %68, label %.preheader104, label %98

.preheader104:                                    ; preds = %66
  %69 = icmp ugt i32 %6, 2
  br i1 %69, label %.lr.ph119.preheader, label %.loopexit

.lr.ph119.preheader:                              ; preds = %.preheader104
  %wide.trip.count150 = zext i32 %6 to i64
  br label %.lr.ph119

.lr.ph119:                                        ; preds = %.lr.ph119.preheader, %97
  %indvars.iv155 = phi i32 [ 2, %.lr.ph119.preheader ], [ %indvars.iv.next156, %97 ]
  %indvars.iv147 = phi i64 [ 2, %.lr.ph119.preheader ], [ %indvars.iv.next148, %97 ]
  %70 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %71 = icmp eq i32 %70, -1
  br i1 %71, label %72, label %76

72:                                               ; preds = %.lr.ph119
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.2) #4
  %75 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #5
  tail call void @__cxa_throw(ptr nonnull %75, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

76:                                               ; preds = %.lr.ph119
  %77 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %70)
  %78 = zext i8 %77 to i32
  %79 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv147
  %80 = load i8, ptr %79, align 1, !tbaa !9
  %81 = sext i8 %80 to i32
  %.not99 = icmp eq i32 %78, %81
  br i1 %.not99, label %97, label %82

82:                                               ; preds = %76
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.3) #4
  %wide.trip.count159 = zext i32 %indvars.iv155 to i64
  br label %91

85:                                               ; preds = %91
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %0, i64 20
  %88 = load i32, ptr %87, align 4, !tbaa !10
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.4, i32 noundef %78, i32 noundef %88) #4
  %90 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %90) #5
  tail call void @__cxa_throw(ptr nonnull %90, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

91:                                               ; preds = %82, %91
  %indvars.iv152 = phi i64 [ 0, %82 ], [ %indvars.iv.next153, %91 ]
  %92 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv152
  %93 = load i8, ptr %92, align 1, !tbaa !9
  %94 = sext i8 %93 to i32
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = tail call i32 @putc(i32 noundef %94, ptr noundef %95)
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %exitcond160.not = icmp eq i64 %indvars.iv.next153, %wide.trip.count159
  br i1 %exitcond160.not, label %85, label %91, !llvm.loop !19

97:                                               ; preds = %76
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count150
  %indvars.iv.next156 = add nuw i32 %indvars.iv155, 1
  br i1 %exitcond151.not, label %.loopexit, label %.lr.ph119, !llvm.loop !20

98:                                               ; preds = %66
  %99 = sext i8 %32 to i32
  %100 = icmp eq i32 %20, %99
  br i1 %100, label %.preheader106, label %130

.preheader106:                                    ; preds = %98
  %101 = icmp ugt i32 %9, 2
  br i1 %101, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader106
  %wide.trip.count = zext i32 %9 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %129
  %indvars.iv141 = phi i32 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next142, %129 ]
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %129 ]
  %102 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %104, label %108

104:                                              ; preds = %.lr.ph
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  %106 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.2) #4
  %107 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %107) #5
  tail call void @__cxa_throw(ptr nonnull %107, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

108:                                              ; preds = %.lr.ph
  %109 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %102)
  %110 = zext i8 %109 to i32
  %111 = getelementptr inbounds i8, ptr %8, i64 %indvars.iv
  %112 = load i8, ptr %111, align 1, !tbaa !9
  %113 = sext i8 %112 to i32
  %.not98 = icmp eq i32 %110, %113
  br i1 %.not98, label %129, label %114

114:                                              ; preds = %108
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.3) #4
  %wide.trip.count145 = zext i32 %indvars.iv141 to i64
  br label %123

117:                                              ; preds = %123
  %118 = load ptr, ptr @stderr, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %0, i64 20
  %120 = load i32, ptr %119, align 4, !tbaa !10
  %121 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.4, i32 noundef %110, i32 noundef %120) #4
  %122 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %122) #5
  tail call void @__cxa_throw(ptr nonnull %122, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

123:                                              ; preds = %114, %123
  %indvars.iv138 = phi i64 [ 0, %114 ], [ %indvars.iv.next139, %123 ]
  %124 = getelementptr inbounds i8, ptr %8, i64 %indvars.iv138
  %125 = load i8, ptr %124, align 1, !tbaa !9
  %126 = sext i8 %125 to i32
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  %128 = tail call i32 @putc(i32 noundef %126, ptr noundef %127)
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count145
  br i1 %exitcond146.not, label %117, label %123, !llvm.loop !21

129:                                              ; preds = %108
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  %indvars.iv.next142 = add nuw i32 %indvars.iv141, 1
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !22

130:                                              ; preds = %98
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = load i8, ptr %2, align 1, !tbaa !9
  %133 = sext i8 %132 to i32
  %134 = getelementptr inbounds i8, ptr %0, i64 20
  %135 = load i32, ptr %134, align 4, !tbaa !10
  %136 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.6, i32 noundef %133, i32 noundef %20, i32 noundef %135) #4
  %137 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %137) #5
  tail call void @__cxa_throw(ptr nonnull %137, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

.loopexit.sink.split:                             ; preds = %30, %26, %18
  %.087.ph = phi ptr [ %2, %18 ], [ %5, %26 ], [ %8, %30 ]
  %.086.ph = phi i8 [ %4, %18 ], [ %7, %26 ], [ %10, %30 ]
  tail call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %20)
  br label %.loopexit

.loopexit:                                        ; preds = %129, %97, %65, %.loopexit.sink.split, %.preheader106, %.preheader104, %.preheader
  %.087 = phi ptr [ %2, %.preheader ], [ %5, %.preheader104 ], [ %8, %.preheader106 ], [ %.087.ph, %.loopexit.sink.split ], [ %2, %65 ], [ %5, %97 ], [ %8, %129 ]
  %.086 = phi i8 [ %4, %.preheader ], [ %7, %.preheader104 ], [ %10, %.preheader106 ], [ %.086.ph, %.loopexit.sink.split ], [ %4, %65 ], [ %7, %97 ], [ %10, %129 ]
  %138 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %139 = tail call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %138)
  %140 = and i32 %139, 24
  %.not100 = icmp eq i32 %140, 0
  br i1 %.not100, label %147, label %141

141:                                              ; preds = %.loopexit
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %0, i64 20
  %144 = load i32, ptr %143, align 4, !tbaa !10
  %145 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.5, ptr noundef nonnull %.087, i32 noundef %138, i32 noundef %144) #4
  %146 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %146) #5
  tail call void @__cxa_throw(ptr nonnull %146, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

147:                                              ; preds = %.loopexit
  tail call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %138)
  ret i8 %.086
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { nofree nounwind "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 = { nounwind "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 = { cold nounwind }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !14, i64 20}
!11 = !{!"_ZTS14token_parser_c", !6, i64 0, !12, i64 8, !15, i64 16, !14, i64 20}
!12 = !{!"_ZTS7token_c", !13, i64 0, !14, i64 4}
!13 = !{!"_ZTS12token_type_t", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


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