; 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_c17parse_two_stringsEP7token_cPKcj12token_type_tS3_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) #1 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i8 %4, ptr %13, align 1, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i8 %7, ptr %16, align 1, !tbaa !11
  %26 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %27 = load i8, ptr %13, align 1, !tbaa !11
  store i8 %27, ptr %20, align 1, !tbaa !11
  %28 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  store i32 %28, ptr %17, align 4, !tbaa !9
  %29 = load i32, ptr %17, align 4, !tbaa !9
  %30 = icmp eq i32 %29, -1
  br i1 %30, label %31, label %35

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

35:                                               ; preds = %8
  %36 = load i32, ptr %17, align 4, !tbaa !9
  %37 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %36)
  %38 = zext i8 %37 to i32
  store i32 %38, ptr %17, align 4, !tbaa !9
  %39 = load i32, ptr %17, align 4, !tbaa !9
  %40 = call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %39)
  store i32 %40, ptr %18, align 4, !tbaa !9
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = load i8, ptr %42, align 1, !tbaa !13
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 0, %44
  br i1 %45, label %46, label %54

46:                                               ; preds = %35
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = and i32 %47, 24
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %54, label %50

50:                                               ; preds = %46
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %51, ptr %19, align 8, !tbaa !5
  %52 = load i8, ptr %13, align 1, !tbaa !11
  store i8 %52, ptr %20, align 1, !tbaa !11
  %53 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %53)
  br label %216

54:                                               ; preds = %46, %35
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  %57 = load i8, ptr %56, align 1, !tbaa !13
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 0, %58
  br i1 %59, label %60, label %68

60:                                               ; preds = %54
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = and i32 %61, 24
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %68, label %64

64:                                               ; preds = %60
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %65, ptr %19, align 8, !tbaa !5
  %66 = load i8, ptr %16, align 1, !tbaa !11
  store i8 %66, ptr %20, align 1, !tbaa !11
  %67 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %67)
  br label %215

68:                                               ; preds = %60, %54
  %69 = load i32, ptr %17, align 4, !tbaa !9
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 1
  %72 = load i8, ptr %71, align 1, !tbaa !13
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %69, %73
  br i1 %74, label %75, label %135

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 2, ptr %21, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %129, %75
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = icmp ult i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %132

81:                                               ; preds = %76
  %82 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  store i32 %82, ptr %17, align 4, !tbaa !9
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = icmp eq i32 %83, -1
  br i1 %84, label %85, label %89

85:                                               ; preds = %81
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.2) #5
  %88 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %88) #5
  call void @__cxa_throw(ptr %88, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

89:                                               ; preds = %81
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %90)
  %92 = zext i8 %91 to i32
  store i32 %92, ptr %17, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !13
  %99 = sext i8 %98 to i32
  %100 = icmp ne i32 %93, %99
  br i1 %100, label %101, label %128

101:                                              ; preds = %89
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %118, %101
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = load i32, ptr %21, align 4, !tbaa !9
  %107 = icmp ult i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %121

109:                                              ; preds = %104
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i32, ptr %23, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %110, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !13
  %115 = sext i8 %114 to i32
  %116 = load ptr, ptr @stderr, align 8, !tbaa !5
  %117 = call i32 @putc(i32 noundef %115, ptr noundef %116)
  br label %118

118:                                              ; preds = %109
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = add i32 %119, 1
  store i32 %120, ptr %23, align 4, !tbaa !9
  br label %104, !llvm.loop !14

121:                                              ; preds = %108
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = load i32, ptr %17, align 4, !tbaa !9
  %124 = getelementptr inbounds %class.token_parser_c, ptr %26, i32 0, i32 3
  %125 = load i32, ptr %124, align 4, !tbaa !16
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.4, i32 noundef %123, i32 noundef %125) #5
  %127 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %127) #5
  call void @__cxa_throw(ptr %127, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

128:                                              ; preds = %89
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %21, align 4, !tbaa !9
  %131 = add i32 %130, 1
  store i32 %131, ptr %21, align 4, !tbaa !9
  br label %76, !llvm.loop !20

132:                                              ; preds = %80
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %133, ptr %19, align 8, !tbaa !5
  %134 = load i8, ptr %13, align 1, !tbaa !11
  store i8 %134, ptr %20, align 1, !tbaa !11
  br label %214

135:                                              ; preds = %68
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 1
  %139 = load i8, ptr %138, align 1, !tbaa !13
  %140 = sext i8 %139 to i32
  %141 = icmp eq i32 %136, %140
  br i1 %141, label %142, label %202

142:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %196, %142
  %144 = load i32, ptr %24, align 4, !tbaa !9
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = icmp ult i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %199

148:                                              ; preds = %143
  %149 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  store i32 %149, ptr %17, align 4, !tbaa !9
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = icmp eq i32 %150, -1
  br i1 %151, label %152, label %156

152:                                              ; preds = %148
  %153 = load ptr, ptr @stderr, align 8, !tbaa !5
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.2) #5
  %155 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %155) #5
  call void @__cxa_throw(ptr %155, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

156:                                              ; preds = %148
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %157)
  %159 = zext i8 %158 to i32
  store i32 %159, ptr %17, align 4, !tbaa !9
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load i32, ptr %24, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %161, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !13
  %166 = sext i8 %165 to i32
  %167 = icmp ne i32 %160, %166
  br i1 %167, label %168, label %195

168:                                              ; preds = %156
  %169 = load ptr, ptr @stderr, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %185, %168
  %172 = load i32, ptr %25, align 4, !tbaa !9
  %173 = load i32, ptr %24, align 4, !tbaa !9
  %174 = icmp ult i32 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %188

176:                                              ; preds = %171
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load i32, ptr %25, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds i8, ptr %177, i64 %179
  %181 = load i8, ptr %180, align 1, !tbaa !13
  %182 = sext i8 %181 to i32
  %183 = load ptr, ptr @stderr, align 8, !tbaa !5
  %184 = call i32 @putc(i32 noundef %182, ptr noundef %183)
  br label %185

185:                                              ; preds = %176
  %186 = load i32, ptr %25, align 4, !tbaa !9
  %187 = add i32 %186, 1
  store i32 %187, ptr %25, align 4, !tbaa !9
  br label %171, !llvm.loop !21

188:                                              ; preds = %175
  %189 = load ptr, ptr @stderr, align 8, !tbaa !5
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = getelementptr inbounds %class.token_parser_c, ptr %26, i32 0, i32 3
  %192 = load i32, ptr %191, align 4, !tbaa !16
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.4, i32 noundef %190, i32 noundef %192) #5
  %194 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %194) #5
  call void @__cxa_throw(ptr %194, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

195:                                              ; preds = %156
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %24, align 4, !tbaa !9
  %198 = add i32 %197, 1
  store i32 %198, ptr %24, align 4, !tbaa !9
  br label %143, !llvm.loop !22

199:                                              ; preds = %147
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %200, ptr %19, align 8, !tbaa !5
  %201 = load i8, ptr %16, align 1, !tbaa !11
  store i8 %201, ptr %20, align 1, !tbaa !11
  br label %213

202:                                              ; preds = %135
  %203 = load ptr, ptr @stderr, align 8, !tbaa !5
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %204, i64 0
  %206 = load i8, ptr %205, align 1, !tbaa !13
  %207 = sext i8 %206 to i32
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = getelementptr inbounds %class.token_parser_c, ptr %26, i32 0, i32 3
  %210 = load i32, ptr %209, align 4, !tbaa !16
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.6, i32 noundef %207, i32 noundef %208, i32 noundef %210) #5
  %212 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %212) #5
  call void @__cxa_throw(ptr %212, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

213:                                              ; preds = %199
  br label %214

214:                                              ; preds = %213, %132
  br label %215

215:                                              ; preds = %214, %64
  br label %216

216:                                              ; preds = %215, %50
  %217 = call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  store i32 %217, ptr %17, align 4, !tbaa !9
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %218)
  store i32 %219, ptr %18, align 4, !tbaa !9
  %220 = load i32, ptr %18, align 4, !tbaa !9
  %221 = and i32 %220, 24
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %231

223:                                              ; preds = %216
  %224 = load ptr, ptr @stderr, align 8, !tbaa !5
  %225 = load ptr, ptr %19, align 8, !tbaa !5
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = getelementptr inbounds %class.token_parser_c, ptr %26, i32 0, i32 3
  %228 = load i32, ptr %227, align 4, !tbaa !16
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.5, ptr noundef %225, i32 noundef %226, i32 noundef %228) #5
  %230 = call ptr @__cxa_allocate_exception(i64 8) #5
  call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %230) #5
  call void @__cxa_throw(ptr %230, ptr @_ZTISt9exception, ptr @_ZNSt9exceptionD1Ev) #6
  unreachable

231:                                              ; preds = %216
  %232 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %232)
  %233 = load i8, ptr %20, align 1, !tbaa !11
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  ret i8 %233
}

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}


; 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_c17parse_two_stringsEP7token_cPKcj12token_type_tS3_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) local_unnamed_addr #0 align 2 {
  %9 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %10 = icmp eq i32 %9, -1
  br i1 %10, label %11, label %15

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

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

23:                                               ; preds = %15
  %24 = getelementptr inbounds i8, ptr %5, i64 1
  %25 = load i8, ptr %24, align 1, !tbaa !9
  %26 = icmp eq i8 %25, 0
  %or.cond73 = and i1 %.not, %26
  br i1 %or.cond73, label %.loopexit.sink.split, label %27

27:                                               ; preds = %23
  %28 = sext i8 %20 to i32
  %29 = icmp eq i32 %17, %28
  br i1 %29, label %.preheader, label %59

.preheader:                                       ; preds = %27
  %30 = icmp ugt i32 %3, 2
  br i1 %30, label %.lr.ph84.preheader, label %.loopexit

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

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %58
  %indvars.iv112 = phi i32 [ 2, %.lr.ph84.preheader ], [ %indvars.iv.next113, %58 ]
  %indvars.iv104 = phi i64 [ 2, %.lr.ph84.preheader ], [ %indvars.iv.next105, %58 ]
  %31 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %32 = icmp eq i32 %31, -1
  br i1 %32, label %33, label %37

33:                                               ; preds = %.lr.ph84
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.2) #4
  %36 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  tail call void @__cxa_throw(ptr nonnull %36, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

37:                                               ; preds = %.lr.ph84
  %38 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %31)
  %39 = zext i8 %38 to i32
  %40 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv104
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  %.not72 = icmp eq i32 %39, %42
  br i1 %.not72, label %58, label %43

43:                                               ; preds = %37
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.3) #4
  %wide.trip.count116 = zext i32 %indvars.iv112 to i64
  br label %52

46:                                               ; preds = %52
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %0, i64 20
  %49 = load i32, ptr %48, align 4, !tbaa !10
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.4, i32 noundef %39, i32 noundef %49) #4
  %51 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #5
  tail call void @__cxa_throw(ptr nonnull %51, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

52:                                               ; preds = %43, %52
  %indvars.iv109 = phi i64 [ 0, %43 ], [ %indvars.iv.next110, %52 ]
  %53 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv109
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = sext i8 %54 to i32
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = tail call i32 @putc(i32 noundef %55, ptr noundef %56)
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count116
  br i1 %exitcond117.not, label %46, label %52, !llvm.loop !16

58:                                               ; preds = %37
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count107
  %indvars.iv.next113 = add nuw i32 %indvars.iv112, 1
  br i1 %exitcond108.not, label %.loopexit, label %.lr.ph84, !llvm.loop !18

59:                                               ; preds = %27
  %60 = sext i8 %25 to i32
  %61 = icmp eq i32 %17, %60
  br i1 %61, label %.preheader74, label %91

.preheader74:                                     ; preds = %59
  %62 = icmp ugt i32 %6, 2
  br i1 %62, label %.lr.ph.preheader, label %.loopexit

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %90
  %indvars.iv98 = phi i32 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next99, %90 ]
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %90 ]
  %63 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %64 = icmp eq i32 %63, -1
  br i1 %64, label %65, label %69

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

69:                                               ; preds = %.lr.ph
  %70 = tail call noundef signext i8 @_ZN11char_type_c7tolowerEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %63)
  %71 = zext i8 %70 to i32
  %72 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv
  %73 = load i8, ptr %72, align 1, !tbaa !9
  %74 = sext i8 %73 to i32
  %.not70 = icmp eq i32 %71, %74
  br i1 %.not70, label %90, label %75

75:                                               ; preds = %69
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.3) #4
  %wide.trip.count102 = zext i32 %indvars.iv98 to i64
  br label %84

78:                                               ; preds = %84
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %0, i64 20
  %81 = load i32, ptr %80, align 4, !tbaa !10
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.4, i32 noundef %71, i32 noundef %81) #4
  %83 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #5
  tail call void @__cxa_throw(ptr nonnull %83, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

84:                                               ; preds = %75, %84
  %indvars.iv95 = phi i64 [ 0, %75 ], [ %indvars.iv.next96, %84 ]
  %85 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv95
  %86 = load i8, ptr %85, align 1, !tbaa !9
  %87 = sext i8 %86 to i32
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = tail call i32 @putc(i32 noundef %87, ptr noundef %88)
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next96, %wide.trip.count102
  br i1 %exitcond103.not, label %78, label %84, !llvm.loop !19

90:                                               ; preds = %69
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  %indvars.iv.next99 = add nuw i32 %indvars.iv98, 1
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !20

91:                                               ; preds = %59
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = load i8, ptr %2, align 1, !tbaa !9
  %94 = sext i8 %93 to i32
  %95 = getelementptr inbounds i8, ptr %0, i64 20
  %96 = load i32, ptr %95, align 4, !tbaa !10
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.6, i32 noundef %94, i32 noundef %17, i32 noundef %96) #4
  %98 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  tail call void @_ZNSt9exceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %98) #5
  tail call void @__cxa_throw(ptr nonnull %98, ptr nonnull @_ZTISt9exception, ptr nonnull @_ZNSt9exceptionD1Ev) #6
  unreachable

.loopexit.sink.split:                             ; preds = %23, %15
  %.062.ph = phi ptr [ %2, %15 ], [ %5, %23 ]
  %.061.ph = phi i8 [ %4, %15 ], [ %7, %23 ]
  tail call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %17)
  br label %.loopexit

.loopexit:                                        ; preds = %90, %58, %.loopexit.sink.split, %.preheader74, %.preheader
  %.062 = phi ptr [ %2, %.preheader ], [ %5, %.preheader74 ], [ %.062.ph, %.loopexit.sink.split ], [ %2, %58 ], [ %5, %90 ]
  %.061 = phi i8 [ %4, %.preheader ], [ %7, %.preheader74 ], [ %.061.ph, %.loopexit.sink.split ], [ %4, %58 ], [ %7, %90 ]
  %99 = tail call noundef i32 @_ZN14token_parser_c4getcEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %100 = tail call noundef i32 @_ZN11char_type_c8get_typeEi(ptr noundef nonnull align 4 dereferenceable(1280) @_ZL7g_ctype, i32 noundef %99)
  %101 = and i32 %100, 24
  %.not71 = icmp eq i32 %101, 0
  br i1 %.not71, label %108, label %102

102:                                              ; preds = %.loopexit
  %103 = load ptr, ptr @stderr, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %0, i64 20
  %105 = load i32, ptr %104, align 4, !tbaa !10
  %106 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.5, ptr noundef nonnull %.062, i32 noundef %99, i32 noundef %105) #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 = %.loopexit
  tail call void @_ZN14token_parser_c6ungetcEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %99)
  ret i8 %.061
}

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}


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