; LLVM IR from masyagin1998/GCI :: src/lexer (lexer)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.POS = type { ptr, i64, i64, i64, i64 }
%struct.LEXER = type { ptr, i64, [256 x i8], %struct.POS }
%struct.TOKEN = type { i32, i32, %struct.FRAG, %union.anon }
%struct.FRAG = type { %struct.POS, %struct.POS }
%union.anon = type { i64, [24 x i8] }

@function_keyword = external dso_local constant [9 x i8], align 1
@let_keyword = external dso_local constant [4 x i8], align 1
@if_keyword = external dso_local constant [3 x i8], align 1
@else_keyword = external dso_local constant [5 x i8], align 1
@while_keyword = external dso_local constant [6 x i8], align 1
@break_keyword = external dso_local constant [6 x i8], align 1
@continue_keyword = external dso_local constant [9 x i8], align 1
@append_keyword = external dso_local constant [7 x i8], align 1
@delete_keyword = external dso_local constant [7 x i8], align 1
@has_property_keyword = external dso_local constant [13 x i8], align 1
@len_keyword = external dso_local constant [4 x i8], align 1
@return_keyword = external dso_local constant [7 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [43 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @lexer_next_token(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.POS, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.POS, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.POS, align 8
  %11 = alloca %struct.POS, align 8
  %12 = alloca %struct.POS, align 8
  %13 = alloca %struct.POS, align 8
  %14 = alloca %struct.POS, align 8
  %15 = alloca %struct.POS, align 8
  %16 = alloca %struct.POS, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.LEXER, ptr %18, i32 0, i32 3
  store ptr %19, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %20, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %322, %2
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i32 @pos_is_eof(ptr noundef %22)
  %24 = icmp ne i32 %23, 0
  %25 = xor i1 %24, true
  br i1 %25, label %26, label %323

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %44, %26
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @pos_is_whitespace(ptr noundef %28)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %35, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call i32 @pos_is_newline(ptr noundef %32)
  %34 = icmp ne i32 %33, 0
  br label %35

35:                                               ; preds = %31, %27
  %36 = phi i1 [ true, %27 ], [ %34, %31 ]
  br i1 %36, label %37, label %45

37:                                               ; preds = %35
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %8, ptr noundef %39)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %8, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 @pos_is_eof(ptr noundef %40)
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %45

44:                                               ; preds = %37
  br label %27, !llvm.loop !14

45:                                               ; preds = %43, %35
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store i32 3, ptr %9, align 4
  br label %320

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %10, ptr noundef %50)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %10, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call i32 @pos_get_code(ptr noundef %51)
  switch i32 %52, label %256 [
    i32 102, label %53
    i32 108, label %62
    i32 105, label %79
    i32 101, label %88
    i32 119, label %97
    i32 98, label %106
    i32 99, label %115
    i32 97, label %124
    i32 100, label %133
    i32 104, label %142
    i32 114, label %151
    i32 124, label %160
    i32 38, label %167
    i32 61, label %174
    i32 33, label %184
    i32 60, label %191
    i32 62, label %201
    i32 43, label %211
    i32 45, label %214
    i32 42, label %217
    i32 47, label %220
    i32 37, label %223
    i32 40, label %226
    i32 41, label %229
    i32 91, label %232
    i32 93, label %235
    i32 123, label %238
    i32 125, label %241
    i32 44, label %244
    i32 59, label %247
    i32 46, label %250
    i32 58, label %253
  ]

53:                                               ; preds = %49
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = call i32 @pos_check_keyword(ptr noundef %54, ptr noundef @function_keyword, i64 noundef 8)
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %53
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %58, ptr noundef %59, i32 noundef 0, ptr noundef @function_keyword, i64 noundef 8)
  br label %61

60:                                               ; preds = %53
  br label %279

61:                                               ; preds = %57
  br label %287

62:                                               ; preds = %49
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 @pos_check_keyword(ptr noundef %63, ptr noundef @let_keyword, i64 noundef 3)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %62
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %67, ptr noundef %68, i32 noundef 1, ptr noundef @let_keyword, i64 noundef 3)
  br label %78

69:                                               ; preds = %62
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call i32 @pos_check_keyword(ptr noundef %70, ptr noundef @len_keyword, i64 noundef 3)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %74, ptr noundef %75, i32 noundef 10, ptr noundef @len_keyword, i64 noundef 3)
  br label %77

76:                                               ; preds = %69
  br label %279

77:                                               ; preds = %73
  br label %78

78:                                               ; preds = %77, %66
  br label %287

79:                                               ; preds = %49
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call i32 @pos_check_keyword(ptr noundef %80, ptr noundef @if_keyword, i64 noundef 2)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %79
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %84, ptr noundef %85, i32 noundef 2, ptr noundef @if_keyword, i64 noundef 2)
  br label %87

86:                                               ; preds = %79
  br label %279

87:                                               ; preds = %83
  br label %287

88:                                               ; preds = %49
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = call i32 @pos_check_keyword(ptr noundef %89, ptr noundef @else_keyword, i64 noundef 4)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %95

92:                                               ; preds = %88
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %93, ptr noundef %94, i32 noundef 3, ptr noundef @else_keyword, i64 noundef 4)
  br label %96

95:                                               ; preds = %88
  br label %279

96:                                               ; preds = %92
  br label %287

97:                                               ; preds = %49
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = call i32 @pos_check_keyword(ptr noundef %98, ptr noundef @while_keyword, i64 noundef 5)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %97
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %102, ptr noundef %103, i32 noundef 4, ptr noundef @while_keyword, i64 noundef 5)
  br label %105

104:                                              ; preds = %97
  br label %279

105:                                              ; preds = %101
  br label %287

106:                                              ; preds = %49
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 @pos_check_keyword(ptr noundef %107, ptr noundef @break_keyword, i64 noundef 5)
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %106
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %111, ptr noundef %112, i32 noundef 5, ptr noundef @break_keyword, i64 noundef 5)
  br label %114

113:                                              ; preds = %106
  br label %279

114:                                              ; preds = %110
  br label %287

115:                                              ; preds = %49
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call i32 @pos_check_keyword(ptr noundef %116, ptr noundef @continue_keyword, i64 noundef 8)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %115
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %120, ptr noundef %121, i32 noundef 6, ptr noundef @continue_keyword, i64 noundef 8)
  br label %123

122:                                              ; preds = %115
  br label %279

123:                                              ; preds = %119
  br label %287

124:                                              ; preds = %49
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call i32 @pos_check_keyword(ptr noundef %125, ptr noundef @append_keyword, i64 noundef 6)
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %124
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %129, ptr noundef %130, i32 noundef 7, ptr noundef @append_keyword, i64 noundef 6)
  br label %132

131:                                              ; preds = %124
  br label %279

132:                                              ; preds = %128
  br label %287

133:                                              ; preds = %49
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = call i32 @pos_check_keyword(ptr noundef %134, ptr noundef @delete_keyword, i64 noundef 6)
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %140

137:                                              ; preds = %133
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %138, ptr noundef %139, i32 noundef 8, ptr noundef @delete_keyword, i64 noundef 6)
  br label %141

140:                                              ; preds = %133
  br label %279

141:                                              ; preds = %137
  br label %287

142:                                              ; preds = %49
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call i32 @pos_check_keyword(ptr noundef %143, ptr noundef @has_property_keyword, i64 noundef 12)
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %142
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %147, ptr noundef %148, i32 noundef 9, ptr noundef @has_property_keyword, i64 noundef 12)
  br label %150

149:                                              ; preds = %142
  br label %279

150:                                              ; preds = %146
  br label %287

151:                                              ; preds = %49
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = call i32 @pos_check_keyword(ptr noundef %152, ptr noundef @return_keyword, i64 noundef 6)
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %158

155:                                              ; preds = %151
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_keyword(ptr noundef %156, ptr noundef %157, i32 noundef 11, ptr noundef @return_keyword, i64 noundef 6)
  br label %159

158:                                              ; preds = %151
  br label %279

159:                                              ; preds = %155
  br label %287

160:                                              ; preds = %49
  %161 = call i32 @pos_get_code(ptr noundef %6)
  %162 = icmp eq i32 %161, 124
  br i1 %162, label %163, label %166

163:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %11, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %11, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %164, i32 noundef 13, ptr noundef %165, ptr noundef %6)
  br label %166

166:                                              ; preds = %163, %160
  br label %287

167:                                              ; preds = %49
  %168 = call i32 @pos_get_code(ptr noundef %6)
  %169 = icmp eq i32 %168, 38
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %12, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %12, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %171, i32 noundef 14, ptr noundef %172, ptr noundef %6)
  br label %173

173:                                              ; preds = %170, %167
  br label %287

174:                                              ; preds = %49
  %175 = call i32 @pos_get_code(ptr noundef %6)
  %176 = icmp eq i32 %175, 61
  br i1 %176, label %177, label %180

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %13, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %13, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %178, i32 noundef 15, ptr noundef %179, ptr noundef %6)
  br label %183

180:                                              ; preds = %174
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %181, i32 noundef 21, ptr noundef %182, ptr noundef %6)
  br label %183

183:                                              ; preds = %180, %177
  br label %287

184:                                              ; preds = %49
  %185 = call i32 @pos_get_code(ptr noundef %6)
  %186 = icmp eq i32 %185, 61
  br i1 %186, label %187, label %190

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %14, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %14, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %188, i32 noundef 16, ptr noundef %189, ptr noundef %6)
  br label %190

190:                                              ; preds = %187, %184
  br label %287

191:                                              ; preds = %49
  %192 = call i32 @pos_get_code(ptr noundef %6)
  %193 = icmp eq i32 %192, 61
  br i1 %193, label %194, label %197

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %15, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %15, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %195, i32 noundef 19, ptr noundef %196, ptr noundef %6)
  br label %200

197:                                              ; preds = %191
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %198, i32 noundef 17, ptr noundef %199, ptr noundef %6)
  br label %200

200:                                              ; preds = %197, %194
  br label %287

201:                                              ; preds = %49
  %202 = call i32 @pos_get_code(ptr noundef %6)
  %203 = icmp eq i32 %202, 61
  br i1 %203, label %204, label %207

204:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #5
  call void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8 %16, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %16, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #5
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %205, i32 noundef 20, ptr noundef %206, ptr noundef %6)
  br label %210

207:                                              ; preds = %201
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %208, i32 noundef 18, ptr noundef %209, ptr noundef %6)
  br label %210

210:                                              ; preds = %207, %204
  br label %287

211:                                              ; preds = %49
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %212, i32 noundef 22, ptr noundef %213, ptr noundef %6)
  br label %287

214:                                              ; preds = %49
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %215, i32 noundef 23, ptr noundef %216, ptr noundef %6)
  br label %287

217:                                              ; preds = %49
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %218, i32 noundef 24, ptr noundef %219, ptr noundef %6)
  br label %287

220:                                              ; preds = %49
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %221, i32 noundef 25, ptr noundef %222, ptr noundef %6)
  br label %287

223:                                              ; preds = %49
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %224, i32 noundef 26, ptr noundef %225, ptr noundef %6)
  br label %287

226:                                              ; preds = %49
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %227, i32 noundef 27, ptr noundef %228, ptr noundef %6)
  br label %287

229:                                              ; preds = %49
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %230, i32 noundef 28, ptr noundef %231, ptr noundef %6)
  br label %287

232:                                              ; preds = %49
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %233, i32 noundef 30, ptr noundef %234, ptr noundef %6)
  br label %287

235:                                              ; preds = %49
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %236, i32 noundef 31, ptr noundef %237, ptr noundef %6)
  br label %287

238:                                              ; preds = %49
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %239, i32 noundef 32, ptr noundef %240, ptr noundef %6)
  br label %287

241:                                              ; preds = %49
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %242, i32 noundef 33, ptr noundef %243, ptr noundef %6)
  br label %287

244:                                              ; preds = %49
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %245, i32 noundef 34, ptr noundef %246, ptr noundef %6)
  br label %287

247:                                              ; preds = %49
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %248, i32 noundef 35, ptr noundef %249, ptr noundef %6)
  br label %287

250:                                              ; preds = %49
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %251, i32 noundef 36, ptr noundef %252, ptr noundef %6)
  br label %287

253:                                              ; preds = %49
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_op(ptr noundef %254, i32 noundef 37, ptr noundef %255, ptr noundef %6)
  br label %287

256:                                              ; preds = %49
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = call i32 @pos_is_digit(ptr noundef %257)
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %274

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = call i32 @token_read_number(ptr noundef %261, ptr noundef %262)
  store i32 %263, ptr %17, align 4, !tbaa !9
  %264 = load i32, ptr %17, align 4, !tbaa !9
  %265 = icmp eq i32 %264, -1
  br i1 %265, label %266, label %273

266:                                              ; preds = %260
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = load ptr, ptr %267, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.TOKEN, ptr %268, i32 0, i32 0
  store i32 39, ptr %269, align 8, !tbaa !16
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.TOKEN, ptr %271, i32 0, i32 1
  store i32 4, ptr %272, align 4, !tbaa !20
  br label %273

273:                                              ; preds = %266, %260
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %286

274:                                              ; preds = %256
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = call i32 @pos_is_letter(ptr noundef %275)
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %282

278:                                              ; preds = %274
  br label %279

279:                                              ; preds = %278, %158, %149, %140, %131, %122, %113, %104, %95, %86, %76, %60
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_ident(ptr noundef %280, ptr noundef %281)
  br label %285

282:                                              ; preds = %274
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  call void @token_read_unknown(ptr noundef %283, ptr noundef %284)
  br label %285

285:                                              ; preds = %282, %279
  br label %286

286:                                              ; preds = %285, %273
  br label %287

287:                                              ; preds = %286, %253, %250, %247, %244, %241, %238, %235, %232, %229, %226, %223, %220, %217, %214, %211, %210, %200, %190, %183, %173, %166, %159, %150, %141, %132, %123, %114, %105, %96, %87, %78, %61
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.TOKEN, ptr %290, i32 0, i32 2
  %292 = getelementptr inbounds %struct.FRAG, ptr %291, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %288, ptr align 8 %292, i64 40, i1 false), !tbaa.struct !11
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.TOKEN, ptr %294, i32 0, i32 0
  %296 = load i32, ptr %295, align 8, !tbaa !16
  %297 = icmp eq i32 %296, 39
  br i1 %297, label %298, label %318

298:                                              ; preds = %287
  %299 = load ptr, ptr @stderr, align 8, !tbaa !5
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.LEXER, ptr %300, i32 0, i32 2
  %302 = getelementptr inbounds [256 x i8], ptr %301, i64 0, i64 0
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = load ptr, ptr %303, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.TOKEN, ptr %304, i32 0, i32 2
  %306 = getelementptr inbounds %struct.FRAG, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds %struct.POS, ptr %306, i32 0, i32 2
  %308 = load i64, ptr %307, align 8, !tbaa !21
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = load ptr, ptr %309, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.TOKEN, ptr %310, i32 0, i32 2
  %312 = getelementptr inbounds %struct.FRAG, ptr %311, i32 0, i32 0
  %313 = getelementptr inbounds %struct.POS, ptr %312, i32 0, i32 3
  %314 = load i64, ptr %313, align 8, !tbaa !22
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.6, ptr noundef %302, i64 noundef %308, i64 noundef %314) #5
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  call void @token_free(ptr noundef %317)
  br label %319

318:                                              ; preds = %287
  store i32 1, ptr %9, align 4
  br label %320

319:                                              ; preds = %298
  store i32 0, ptr %9, align 4
  br label %320

320:                                              ; preds = %319, %318, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %321 = load i32, ptr %9, align 4
  switch i32 %321, label %342 [
    i32 0, label %322
    i32 3, label %323
  ]

322:                                              ; preds = %320
  br label %21, !llvm.loop !23

323:                                              ; preds = %320, %21
  %324 = call ptr (...) @create_token()
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %324, ptr %325, align 8, !tbaa !5
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.TOKEN, ptr %327, i32 0, i32 0
  store i32 38, ptr %328, align 8, !tbaa !16
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = load ptr, ptr %329, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.TOKEN, ptr %330, i32 0, i32 1
  store i32 4, ptr %331, align 4, !tbaa !20
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = load ptr, ptr %332, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.TOKEN, ptr %333, i32 0, i32 2
  %335 = getelementptr inbounds %struct.FRAG, ptr %334, i32 0, i32 0
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %335, ptr align 8 %336, i64 40, i1 false), !tbaa.struct !11
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = load ptr, ptr %337, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.TOKEN, ptr %338, i32 0, i32 2
  %340 = getelementptr inbounds %struct.FRAG, ptr %339, i32 0, i32 1
  %341 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %340, ptr align 8 %341, i64 40, i1 false), !tbaa.struct !11
  store i32 0, ptr %9, align 4
  br label %342

342:                                              ; preds = %323, %320
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %343 = load i32, ptr %9, align 4
  switch i32 %343, label %345 [
    i32 0, label %344
    i32 1, label %344
  ]

344:                                              ; preds = %342, %342
  ret void

345:                                              ; preds = %342
  unreachable
}

declare i32 @pos_is_eof(ptr noundef) #3

declare i32 @pos_is_whitespace(ptr noundef) #3

declare i32 @pos_is_newline(ptr noundef) #3

declare void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @pos_get_code(ptr noundef) #3

declare i32 @pos_check_keyword(ptr noundef, ptr noundef, i64 noundef) #3

declare void @token_read_keyword(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef) #3

declare void @token_read_op(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @pos_is_digit(ptr noundef) #3

declare i32 @token_read_number(ptr noundef, ptr noundef) #3

declare i32 @pos_is_letter(ptr noundef) #3

declare void @token_read_ident(ptr noundef, ptr noundef) #3

declare void @token_read_unknown(ptr noundef, ptr noundef) #3

declare void @token_free(ptr noundef) #3

declare ptr @create_token(...) #3

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"TOKEN", !10, i64 0, !10, i64 4, !18, i64 8, !7, i64 88}
!18 = !{!"FRAG", !19, i64 0, !19, i64 40}
!19 = !{!"POS", !6, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!20 = !{!17, !10, i64 4}
!21 = !{!17, !13, i64 24}
!22 = !{!17, !13, i64 32}
!23 = distinct !{!23, !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"

%struct.POS = type { ptr, i64, i64, i64, i64 }

@function_keyword = external dso_local constant [9 x i8], align 1
@let_keyword = external dso_local constant [4 x i8], align 1
@if_keyword = external dso_local constant [3 x i8], align 1
@else_keyword = external dso_local constant [5 x i8], align 1
@while_keyword = external dso_local constant [6 x i8], align 1
@break_keyword = external dso_local constant [6 x i8], align 1
@continue_keyword = external dso_local constant [9 x i8], align 1
@append_keyword = external dso_local constant [7 x i8], align 1
@delete_keyword = external dso_local constant [7 x i8], align 1
@has_property_keyword = external dso_local constant [13 x i8], align 1
@len_keyword = external dso_local constant [4 x i8], align 1
@return_keyword = external dso_local constant [7 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @lexer_next_token(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.POS, align 8
  %4 = alloca %struct.POS, align 8
  %5 = alloca %struct.POS, align 8
  %6 = alloca %struct.POS, align 8
  %7 = alloca %struct.POS, align 8
  %8 = alloca %struct.POS, align 8
  %9 = alloca %struct.POS, align 8
  %10 = alloca %struct.POS, align 8
  %11 = alloca %struct.POS, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 272
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  store ptr null, ptr %1, align 8, !tbaa !5
  %13 = tail call i32 @pos_is_eof(ptr noundef nonnull %12) #5
  %.not145 = icmp eq i32 %13, 0
  br i1 %.not145, label %.preheader.lr.ph, label %.thread142

.preheader.lr.ph:                                 ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.backedge, %.preheader.lr.ph
  %15 = call i32 @pos_is_whitespace(ptr noundef nonnull %12) #5
  %.not121 = icmp eq i32 %15, 0
  br i1 %.not121, label %16, label %.critedge

16:                                               ; preds = %.preheader
  %17 = call i32 @pos_is_newline(ptr noundef nonnull %12) #5
  %.not122 = icmp eq i32 %17, 0
  br i1 %.not122, label %.critedge140, label %.critedge

.critedge:                                        ; preds = %.preheader, %16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %4, ptr noundef nonnull %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  %18 = call i32 @pos_is_eof(ptr noundef nonnull %12) #5
  %.not123 = icmp eq i32 %18, 0
  br i1 %.not123, label %.preheader.backedge, label %.thread142

.preheader.backedge:                              ; preds = %.critedge, %116
  br label %.preheader, !llvm.loop !12

.critedge140:                                     ; preds = %16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %5, ptr noundef nonnull %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %5, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  %19 = call i32 @pos_get_code(ptr noundef nonnull %12) #5
  switch i32 %19, label %98 [
    i32 102, label %20
    i32 108, label %23
    i32 105, label %29
    i32 101, label %32
    i32 119, label %35
    i32 98, label %38
    i32 99, label %41
    i32 97, label %44
    i32 100, label %47
    i32 104, label %50
    i32 114, label %53
    i32 124, label %56
    i32 38, label %60
    i32 61, label %64
    i32 33, label %69
    i32 60, label %73
    i32 62, label %78
    i32 43, label %83
    i32 45, label %84
    i32 42, label %85
    i32 47, label %86
    i32 37, label %87
    i32 40, label %88
    i32 41, label %89
    i32 91, label %90
    i32 93, label %91
    i32 123, label %92
    i32 125, label %93
    i32 44, label %94
    i32 59, label %95
    i32 46, label %96
    i32 58, label %97
  ]

20:                                               ; preds = %.critedge140
  %21 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @function_keyword, i64 noundef 8) #5
  %.not136 = icmp eq i32 %21, 0
  br i1 %.not136, label %108, label %22

22:                                               ; preds = %20
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 0, ptr noundef nonnull @function_keyword, i64 noundef 8) #5
  br label %110

23:                                               ; preds = %.critedge140
  %24 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @let_keyword, i64 noundef 3) #5
  %.not134 = icmp eq i32 %24, 0
  br i1 %.not134, label %26, label %25

25:                                               ; preds = %23
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 1, ptr noundef nonnull @let_keyword, i64 noundef 3) #5
  br label %110

26:                                               ; preds = %23
  %27 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @len_keyword, i64 noundef 3) #5
  %.not135 = icmp eq i32 %27, 0
  br i1 %.not135, label %108, label %28

28:                                               ; preds = %26
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 10, ptr noundef nonnull @len_keyword, i64 noundef 3) #5
  br label %110

29:                                               ; preds = %.critedge140
  %30 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @if_keyword, i64 noundef 2) #5
  %.not133 = icmp eq i32 %30, 0
  br i1 %.not133, label %108, label %31

31:                                               ; preds = %29
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 2, ptr noundef nonnull @if_keyword, i64 noundef 2) #5
  br label %110

32:                                               ; preds = %.critedge140
  %33 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @else_keyword, i64 noundef 4) #5
  %.not132 = icmp eq i32 %33, 0
  br i1 %.not132, label %108, label %34

34:                                               ; preds = %32
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 3, ptr noundef nonnull @else_keyword, i64 noundef 4) #5
  br label %110

35:                                               ; preds = %.critedge140
  %36 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @while_keyword, i64 noundef 5) #5
  %.not131 = icmp eq i32 %36, 0
  br i1 %.not131, label %108, label %37

37:                                               ; preds = %35
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 4, ptr noundef nonnull @while_keyword, i64 noundef 5) #5
  br label %110

38:                                               ; preds = %.critedge140
  %39 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @break_keyword, i64 noundef 5) #5
  %.not130 = icmp eq i32 %39, 0
  br i1 %.not130, label %108, label %40

40:                                               ; preds = %38
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 5, ptr noundef nonnull @break_keyword, i64 noundef 5) #5
  br label %110

41:                                               ; preds = %.critedge140
  %42 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @continue_keyword, i64 noundef 8) #5
  %.not129 = icmp eq i32 %42, 0
  br i1 %.not129, label %108, label %43

43:                                               ; preds = %41
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 6, ptr noundef nonnull @continue_keyword, i64 noundef 8) #5
  br label %110

44:                                               ; preds = %.critedge140
  %45 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @append_keyword, i64 noundef 6) #5
  %.not128 = icmp eq i32 %45, 0
  br i1 %.not128, label %108, label %46

46:                                               ; preds = %44
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 7, ptr noundef nonnull @append_keyword, i64 noundef 6) #5
  br label %110

47:                                               ; preds = %.critedge140
  %48 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @delete_keyword, i64 noundef 6) #5
  %.not127 = icmp eq i32 %48, 0
  br i1 %.not127, label %108, label %49

49:                                               ; preds = %47
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 8, ptr noundef nonnull @delete_keyword, i64 noundef 6) #5
  br label %110

50:                                               ; preds = %.critedge140
  %51 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @has_property_keyword, i64 noundef 12) #5
  %.not126 = icmp eq i32 %51, 0
  br i1 %.not126, label %108, label %52

52:                                               ; preds = %50
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 9, ptr noundef nonnull @has_property_keyword, i64 noundef 12) #5
  br label %110

53:                                               ; preds = %.critedge140
  %54 = call i32 @pos_check_keyword(ptr noundef nonnull %12, ptr noundef nonnull @return_keyword, i64 noundef 6) #5
  %.not125 = icmp eq i32 %54, 0
  br i1 %.not125, label %108, label %55

55:                                               ; preds = %53
  call void @token_read_keyword(ptr noundef nonnull %1, ptr noundef nonnull %12, i32 noundef 11, ptr noundef nonnull @return_keyword, i64 noundef 6) #5
  br label %110

56:                                               ; preds = %.critedge140
  %57 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %58 = icmp eq i32 %57, 124
  br i1 %58, label %59, label %110

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %6, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %6, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 13, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

60:                                               ; preds = %.critedge140
  %61 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %62 = icmp eq i32 %61, 38
  br i1 %62, label %63, label %110

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %7, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %7, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 14, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

64:                                               ; preds = %.critedge140
  %65 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %66 = icmp eq i32 %65, 61
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %8, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %8, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 15, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

68:                                               ; preds = %64
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 21, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

69:                                               ; preds = %.critedge140
  %70 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %71 = icmp eq i32 %70, 61
  br i1 %71, label %72, label %110

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %9, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %9, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 16, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

73:                                               ; preds = %.critedge140
  %74 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %75 = icmp eq i32 %74, 61
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %10, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %10, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 19, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

77:                                               ; preds = %73
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 17, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

78:                                               ; preds = %.critedge140
  %79 = call i32 @pos_get_code(ptr noundef nonnull %3) #5
  %80 = icmp eq i32 %79, 61
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @pos_next(ptr dead_on_unwind nonnull writable sret(%struct.POS) align 8 %11, ptr noundef nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %11, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 20, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

82:                                               ; preds = %78
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 18, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

83:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 22, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

84:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 23, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

85:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 24, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

86:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 25, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

87:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 26, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

88:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 27, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

89:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 28, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

90:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 30, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

91:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 31, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

92:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 32, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

93:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 33, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

94:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 34, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

95:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 35, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

96:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 36, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

97:                                               ; preds = %.critedge140
  call void @token_read_op(ptr noundef nonnull %1, i32 noundef 37, ptr noundef nonnull %12, ptr noundef nonnull %3) #5
  br label %110

98:                                               ; preds = %.critedge140
  %99 = call i32 @pos_is_digit(ptr noundef nonnull %12) #5
  %.not137 = icmp eq i32 %99, 0
  br i1 %.not137, label %106, label %100

100:                                              ; preds = %98
  %101 = call i32 @token_read_number(ptr noundef nonnull %1, ptr noundef nonnull %12) #5
  %102 = icmp eq i32 %101, -1
  br i1 %102, label %103, label %110

103:                                              ; preds = %100
  %104 = load ptr, ptr %1, align 8, !tbaa !5
  store i32 39, ptr %104, align 8, !tbaa !14
  %105 = getelementptr inbounds i8, ptr %104, i64 4
  store i32 4, ptr %105, align 4, !tbaa !19
  br label %110

106:                                              ; preds = %98
  %107 = call i32 @pos_is_letter(ptr noundef nonnull %12) #5
  %.not138 = icmp eq i32 %107, 0
  br i1 %.not138, label %109, label %108

108:                                              ; preds = %106, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %20
  call void @token_read_ident(ptr noundef nonnull %1, ptr noundef nonnull %12) #5
  br label %110

109:                                              ; preds = %106
  call void @token_read_unknown(ptr noundef nonnull %1, ptr noundef nonnull %12) #5
  br label %110

110:                                              ; preds = %100, %103, %109, %108, %81, %82, %76, %77, %69, %72, %67, %68, %60, %63, %56, %59, %25, %28, %97, %96, %95, %94, %93, %92, %91, %90, %89, %88, %87, %86, %85, %84, %83, %55, %52, %49, %46, %43, %40, %37, %34, %31, %22
  %111 = load ptr, ptr %1, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %112, i64 40, i1 false), !tbaa.struct !9
  %113 = load ptr, ptr %1, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 8, !tbaa !14
  %115 = icmp eq i32 %114, 39
  br i1 %115, label %116, label %.thread

116:                                              ; preds = %110
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %113, i64 24
  %119 = load i64, ptr %118, align 8, !tbaa !20
  %120 = getelementptr inbounds i8, ptr %113, i64 32
  %121 = load i64, ptr %120, align 8, !tbaa !21
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.6, ptr noundef nonnull %14, i64 noundef %119, i64 noundef %121) #6
  %123 = load ptr, ptr %1, align 8, !tbaa !5
  call void @token_free(ptr noundef %123) #5
  %124 = call i32 @pos_is_eof(ptr noundef nonnull %12) #5
  %.not = icmp eq i32 %124, 0
  br i1 %.not, label %.preheader.backedge, label %.thread142

.thread142:                                       ; preds = %116, %.critedge, %2
  %125 = call ptr (...) @create_token() #5
  store ptr %125, ptr %1, align 8, !tbaa !5
  store i32 38, ptr %125, align 8, !tbaa !14
  %126 = getelementptr inbounds i8, ptr %125, i64 4
  store i32 4, ptr %126, align 4, !tbaa !19
  %127 = getelementptr inbounds i8, ptr %125, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %127, ptr noundef nonnull align 8 dereferenceable(40) %12, i64 40, i1 false), !tbaa.struct !9
  %128 = load ptr, ptr %1, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %129, ptr noundef nonnull align 8 dereferenceable(40) %12, i64 40, i1 false), !tbaa.struct !9
  br label %.thread

.thread:                                          ; preds = %110, %.thread142
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  ret void
}

declare i32 @pos_is_eof(ptr noundef) local_unnamed_addr #3

declare i32 @pos_is_whitespace(ptr noundef) local_unnamed_addr #3

declare i32 @pos_is_newline(ptr noundef) local_unnamed_addr #3

declare void @pos_next(ptr dead_on_unwind writable sret(%struct.POS) align 8, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @pos_get_code(ptr noundef) local_unnamed_addr #3

declare i32 @pos_check_keyword(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @token_read_keyword(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @token_read_op(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @pos_is_digit(ptr noundef) local_unnamed_addr #3

declare i32 @token_read_number(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @pos_is_letter(ptr noundef) local_unnamed_addr #3

declare void @token_read_ident(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @token_read_unknown(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @token_free(ptr noundef) local_unnamed_addr #3

declare ptr @create_token(...) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 8, !5, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 8, !10, i64 32, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !16, i64 0}
!15 = !{!"TOKEN", !16, i64 0, !16, i64 4, !17, i64 8, !7, i64 88}
!16 = !{!"int", !7, i64 0}
!17 = !{!"FRAG", !18, i64 0, !18, i64 40}
!18 = !{!"POS", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!19 = !{!15, !16, i64 4}
!20 = !{!15, !11, i64 24}
!21 = !{!15, !11, i64 32}


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