; LLVM IR from snowballstem/snowball :: compiler (tokeniser)

; 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.tokeniser = type { ptr, ptr, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, i32, i32, i32, i8, i8, i32, i32, ptr, i32, [94 x i8] }
%struct.m_pair = type { ptr, ptr, ptr }
%struct.include = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_input(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @read_token(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.tokeniser, ptr %21, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.tokeniser, ptr %24, i32 0, i32 16
  %26 = load i8, ptr %25, align 8, !tbaa !12
  %27 = zext i8 %26 to i32
  store i32 %27, ptr %5, align 4, !tbaa !13
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.tokeniser, ptr %28, i32 0, i32 16
  store i8 0, ptr %29, align 8, !tbaa !12
  %30 = load i32, ptr %5, align 4, !tbaa !13
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %36

32:                                               ; preds = %1
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.tokeniser, ptr %33, i32 0, i32 14
  %35 = load i32, ptr %34, align 8, !tbaa !14
  store i32 %35, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %378

36:                                               ; preds = %1
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.tokeniser, ptr %37, i32 0, i32 17
  store i8 0, ptr %38, align 1, !tbaa !15
  br label %39

39:                                               ; preds = %376, %36
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call i32 @next_token(ptr noundef %41)
  store i32 %42, ptr %7, align 4, !tbaa !13
  %43 = load i32, ptr %7, align 4, !tbaa !13
  switch i32 %43, label %366 [
    i32 19, label %44
    i32 20, label %71
    i32 72, label %129
    i32 71, label %151
    i32 34, label %243
    i32 -1, label %345
  ]

44:                                               ; preds = %40
  br label %45

45:                                               ; preds = %65, %44
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.tokeniser, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 8, !tbaa !16
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds i32, ptr %49, i64 -1
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %53, label %63

53:                                               ; preds = %45
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.tokeniser, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !16
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %54, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !17
  %61 = zext i8 %60 to i32
  %62 = icmp ne i32 %61, 10
  br label %63

63:                                               ; preds = %53, %45
  %64 = phi i1 [ false, %45 ], [ %62, %53 ]
  br i1 %64, label %65, label %70

65:                                               ; preds = %63
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.tokeniser, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 8, !tbaa !16
  br label %45, !llvm.loop !18

70:                                               ; preds = %63
  store i32 2, ptr %6, align 4
  br label %376

71:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds i32, ptr %72, i64 -1
  %74 = load i32, ptr %73, align 4, !tbaa !13
  %75 = sub nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.tokeniser, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !16
  store i32 %78, ptr %9, align 4, !tbaa !13
  br label %79

79:                                               ; preds = %124, %71
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %9, align 4, !tbaa !13
  %82 = load i32, ptr %8, align 4, !tbaa !13
  %83 = icmp sge i32 %81, %82
  br i1 %83, label %84, label %88

84:                                               ; preds = %80
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %85, ptr noundef @.str.1)
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.tokeniser, ptr %86, i32 0, i32 14
  store i32 -1, ptr %87, align 8, !tbaa !14
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %128

88:                                               ; preds = %80
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !13
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !17
  %94 = zext i8 %93 to i32
  %95 = icmp eq i32 %94, 10
  br i1 %95, label %96, label %101

96:                                               ; preds = %88
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.tokeniser, ptr %97, i32 0, i32 5
  %99 = load i32, ptr %98, align 4, !tbaa !20
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %98, align 4, !tbaa !20
  br label %124

101:                                              ; preds = %88
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !13
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !17
  %107 = zext i8 %106 to i32
  %108 = icmp eq i32 %107, 42
  br i1 %108, label %109, label %123

109:                                              ; preds = %101
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !13
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i8, ptr %110, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !17
  %116 = zext i8 %115 to i32
  %117 = icmp eq i32 %116, 47
  br i1 %117, label %118, label %123

118:                                              ; preds = %109
  %119 = load i32, ptr %9, align 4, !tbaa !13
  %120 = add nsw i32 %119, 2
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.tokeniser, ptr %121, i32 0, i32 2
  store i32 %120, ptr %122, align 8, !tbaa !16
  br label %127

123:                                              ; preds = %109, %101
  br label %124

124:                                              ; preds = %123, %96
  %125 = load i32, ptr %9, align 4, !tbaa !13
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %9, align 4, !tbaa !13
  br label %79

127:                                              ; preds = %118
  store i32 2, ptr %6, align 4
  br label %128

128:                                              ; preds = %127, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %376

129:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = call i32 @next_real_char(ptr noundef %130)
  store i32 %131, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = call i32 @next_real_char(ptr noundef %132)
  store i32 %133, ptr %11, align 4, !tbaa !13
  %134 = load i32, ptr %11, align 4, !tbaa !13
  %135 = icmp slt i32 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %129
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error2(ptr noundef %137, ptr noundef @.str.2)
  store i32 2, ptr %6, align 4
  br label %150

138:                                              ; preds = %129
  %139 = load i32, ptr %10, align 4, !tbaa !13
  %140 = icmp eq i32 %139, 39
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %142, ptr noundef @.str.3)
  store i32 2, ptr %6, align 4
  br label %150

143:                                              ; preds = %138
  %144 = load i32, ptr %10, align 4, !tbaa !13
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.tokeniser, ptr %145, i32 0, i32 9
  store i32 %144, ptr %146, align 4, !tbaa !21
  %147 = load i32, ptr %11, align 4, !tbaa !13
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.tokeniser, ptr %148, i32 0, i32 10
  store i32 %147, ptr %149, align 8, !tbaa !22
  store i32 2, ptr %6, align 4
  br label %150

150:                                              ; preds = %143, %141, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %376

151:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !13
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  call void @read_chars(ptr noundef %152)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = call i32 @read_token(ptr noundef %153)
  store i32 %154, ptr %7, align 4, !tbaa !13
  %155 = load i32, ptr %7, align 4, !tbaa !13
  %156 = icmp eq i32 %155, 38
  br i1 %156, label %157, label %160

157:                                              ; preds = %151
  store i32 16, ptr %12, align 4, !tbaa !13
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = call i32 @read_token(ptr noundef %158)
  store i32 %159, ptr %7, align 4, !tbaa !13
  br label %167

160:                                              ; preds = %151
  %161 = load i32, ptr %7, align 4, !tbaa !13
  %162 = icmp eq i32 %161, 23
  br i1 %162, label %163, label %166

163:                                              ; preds = %160
  store i32 10, ptr %12, align 4, !tbaa !13
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = call i32 @read_token(ptr noundef %164)
  store i32 %165, ptr %7, align 4, !tbaa !13
  br label %166

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

167:                                              ; preds = %166, %157
  %168 = load i32, ptr %7, align 4, !tbaa !13
  %169 = icmp ne i32 %168, 83
  br i1 %169, label %170, label %172

170:                                              ; preds = %167
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %171, ptr noundef @.str.4)
  store i32 2, ptr %6, align 4
  br label %242

172:                                              ; preds = %167
  %173 = load i32, ptr %12, align 4, !tbaa !13
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %175, label %181

175:                                              ; preds = %172
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.tokeniser, ptr %177, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = load i32, ptr %12, align 4, !tbaa !13
  call void @convert_numeric_string(ptr noundef %176, ptr noundef %179, i32 noundef %180)
  br label %181

181:                                              ; preds = %175, %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %182 = call ptr @check_malloc(i64 noundef 24)
  store ptr %182, ptr %13, align 8, !tbaa !5
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.tokeniser, ptr %183, i32 0, i32 11
  %185 = load ptr, ptr %184, align 8, !tbaa !24
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.m_pair, ptr %186, i32 0, i32 0
  store ptr %185, ptr %187, align 8, !tbaa !25
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tokeniser, ptr %188, i32 0, i32 7
  %190 = load ptr, ptr %189, align 8, !tbaa !27
  %191 = call ptr @copy_s(ptr noundef %190)
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.m_pair, ptr %192, i32 0, i32 1
  store ptr %191, ptr %193, align 8, !tbaa !28
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.tokeniser, ptr %194, i32 0, i32 6
  %196 = load ptr, ptr %195, align 8, !tbaa !23
  %197 = call ptr @copy_b(ptr noundef %196)
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.m_pair, ptr %198, i32 0, i32 2
  store ptr %197, ptr %199, align 8, !tbaa !29
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.tokeniser, ptr %201, i32 0, i32 11
  store ptr %200, ptr %202, align 8, !tbaa !24
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.tokeniser, ptr %203, i32 0, i32 21
  %205 = load i32, ptr %204, align 8, !tbaa !30
  %206 = icmp ne i32 %205, 1
  br i1 %206, label %207, label %241

207:                                              ; preds = %181
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.tokeniser, ptr %208, i32 0, i32 7
  %210 = load ptr, ptr %209, align 8, !tbaa !27
  %211 = getelementptr inbounds i32, ptr %210, i64 -1
  %212 = load i32, ptr %211, align 4, !tbaa !13
  %213 = icmp sge i32 %212, 3
  br i1 %213, label %214, label %241

214:                                              ; preds = %207
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.tokeniser, ptr %215, i32 0, i32 7
  %217 = load ptr, ptr %216, align 8, !tbaa !27
  %218 = getelementptr inbounds i8, ptr %217, i64 0
  %219 = load i8, ptr %218, align 1, !tbaa !17
  %220 = zext i8 %219 to i32
  %221 = icmp eq i32 %220, 85
  br i1 %221, label %222, label %241

222:                                              ; preds = %214
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.tokeniser, ptr %223, i32 0, i32 7
  %225 = load ptr, ptr %224, align 8, !tbaa !27
  %226 = getelementptr inbounds i8, ptr %225, i64 1
  %227 = load i8, ptr %226, align 1, !tbaa !17
  %228 = zext i8 %227 to i32
  %229 = icmp eq i32 %228, 43
  br i1 %229, label %230, label %241

230:                                              ; preds = %222
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.tokeniser, ptr %231, i32 0, i32 21
  %233 = load i32, ptr %232, align 8, !tbaa !30
  %234 = icmp eq i32 %233, 2
  br i1 %234, label %235, label %237

235:                                              ; preds = %230
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %236, ptr noundef @.str.5)
  br label %240

237:                                              ; preds = %230
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.tokeniser, ptr %238, i32 0, i32 21
  store i32 1, ptr %239, align 8, !tbaa !30
  br label %240

240:                                              ; preds = %237, %235
  br label %241

241:                                              ; preds = %240, %222, %214, %207, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  store i32 2, ptr %6, align 4
  br label %242

242:                                              ; preds = %241, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %376

243:                                              ; preds = %40
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = call i32 @read_token(ptr noundef %244)
  store i32 %245, ptr %7, align 4, !tbaa !13
  %246 = load i32, ptr %7, align 4, !tbaa !13
  %247 = icmp ne i32 %246, 83
  br i1 %247, label %248, label %250

248:                                              ; preds = %243
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %249, ptr noundef @.str.6)
  store i32 2, ptr %6, align 4
  br label %376

250:                                              ; preds = %243
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.tokeniser, ptr %251, i32 0, i32 12
  %253 = load i32, ptr %252, align 8, !tbaa !31
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %252, align 8, !tbaa !31
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.tokeniser, ptr %255, i32 0, i32 12
  %257 = load i32, ptr %256, align 8, !tbaa !31
  %258 = icmp sgt i32 %257, 10
  br i1 %258, label %259, label %261

259:                                              ; preds = %250
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  call void @error1(ptr noundef %260, ptr noundef @.str.7)
  call void @exit(i32 noundef 1) #8
  unreachable

261:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %262 = call ptr @check_malloc(i64 noundef 40)
  store ptr %262, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.tokeniser, ptr %263, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !23
  %266 = call ptr @b_to_sz(ptr noundef %265)
  store ptr %266, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %267 = load ptr, ptr %15, align 8, !tbaa !5
  %268 = call ptr @get_input(ptr noundef %267)
  store ptr %268, ptr %17, align 8, !tbaa !5
  %269 = load ptr, ptr %17, align 8, !tbaa !5
  %270 = icmp eq ptr %269, null
  br i1 %270, label %271, label %314

271:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.tokeniser, ptr %272, i32 0, i32 20
  %274 = load ptr, ptr %273, align 8, !tbaa !32
  store ptr %274, ptr %18, align 8, !tbaa !5
  br label %275

275:                                              ; preds = %309, %271
  %276 = load ptr, ptr %18, align 8, !tbaa !5
  %277 = icmp ne ptr %276, null
  br i1 %277, label %278, label %313

278:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %279 = load ptr, ptr %18, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.include, ptr %279, i32 0, i32 1
  %281 = load ptr, ptr %280, align 8, !tbaa !33
  %282 = call ptr @copy_s(ptr noundef %281)
  store ptr %282, ptr %19, align 8, !tbaa !5
  %283 = load ptr, ptr %19, align 8, !tbaa !5
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = call ptr @add_sz_to_s(ptr noundef %283, ptr noundef %284)
  store ptr %285, ptr %19, align 8, !tbaa !5
  %286 = load ptr, ptr %19, align 8, !tbaa !5
  %287 = load ptr, ptr %19, align 8, !tbaa !5
  %288 = getelementptr inbounds i32, ptr %287, i64 -1
  %289 = load i32, ptr %288, align 4, !tbaa !13
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds i8, ptr %286, i64 %290
  store i8 0, ptr %291, align 1, !tbaa !17
  %292 = load i32, ptr %16, align 4, !tbaa !13
  %293 = icmp sgt i32 %292, 0
  br i1 %293, label %294, label %296

294:                                              ; preds = %278
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %295) #7
  br label %298

296:                                              ; preds = %278
  %297 = load ptr, ptr %15, align 8, !tbaa !5
  call void @lose_s(ptr noundef %297)
  br label %298

298:                                              ; preds = %296, %294
  %299 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %299, ptr %15, align 8, !tbaa !5
  store i32 -1, ptr %16, align 4, !tbaa !13
  %300 = load ptr, ptr %15, align 8, !tbaa !5
  %301 = call ptr @get_input(ptr noundef %300)
  store ptr %301, ptr %17, align 8, !tbaa !5
  %302 = load ptr, ptr %17, align 8, !tbaa !5
  %303 = icmp ne ptr %302, null
  br i1 %303, label %304, label %305

304:                                              ; preds = %298
  store i32 9, ptr %6, align 4
  br label %306

305:                                              ; preds = %298
  store i32 0, ptr %6, align 4
  br label %306

306:                                              ; preds = %305, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %307 = load i32, ptr %6, align 4
  switch i32 %307, label %380 [
    i32 0, label %308
    i32 9, label %313
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308
  %310 = load ptr, ptr %18, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.include, ptr %310, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !35
  store ptr %312, ptr %18, align 8, !tbaa !5
  br label %275, !llvm.loop !36

313:                                              ; preds = %306, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %314

314:                                              ; preds = %313, %261
  %315 = load ptr, ptr %17, align 8, !tbaa !5
  %316 = icmp eq ptr %315, null
  br i1 %316, label %317, label %323

317:                                              ; preds = %314
  %318 = load ptr, ptr %3, align 8, !tbaa !5
  %319 = load ptr, ptr %15, align 8, !tbaa !5
  %320 = load ptr, ptr %15, align 8, !tbaa !5
  %321 = call i64 @strlen(ptr noundef %320) #9
  %322 = trunc i64 %321 to i32
  call void @error(ptr noundef %318, ptr noundef @.str.8, ptr noundef %319, i32 noundef %322, ptr noundef @.str.9)
  call void @exit(i32 noundef 1) #8
  unreachable

323:                                              ; preds = %314
  %324 = load ptr, ptr %14, align 8, !tbaa !5
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %324, ptr align 8 %325, i64 40, i1 false)
  %326 = load ptr, ptr %14, align 8, !tbaa !5
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.tokeniser, ptr %327, i32 0, i32 0
  store ptr %326, ptr %328, align 8, !tbaa !37
  %329 = load ptr, ptr %17, align 8, !tbaa !5
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.tokeniser, ptr %330, i32 0, i32 1
  store ptr %329, ptr %331, align 8, !tbaa !9
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.tokeniser, ptr %332, i32 0, i32 2
  store i32 0, ptr %333, align 8, !tbaa !16
  %334 = load ptr, ptr %15, align 8, !tbaa !5
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.tokeniser, ptr %335, i32 0, i32 3
  store ptr %334, ptr %336, align 8, !tbaa !38
  %337 = load i32, ptr %16, align 4, !tbaa !13
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.tokeniser, ptr %338, i32 0, i32 4
  store i32 %337, ptr %339, align 8, !tbaa !39
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.tokeniser, ptr %340, i32 0, i32 5
  store i32 1, ptr %341, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.tokeniser, ptr %342, i32 0, i32 1
  %344 = load ptr, ptr %343, align 8, !tbaa !9
  store ptr %344, ptr %4, align 8, !tbaa !5
  store i32 2, ptr %6, align 4
  br label %376

345:                                              ; preds = %40
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.tokeniser, ptr %346, i32 0, i32 0
  %348 = load ptr, ptr %347, align 8, !tbaa !37
  %349 = icmp ne ptr %348, null
  br i1 %349, label %350, label %365

350:                                              ; preds = %345
  %351 = load ptr, ptr %4, align 8, !tbaa !5
  call void @lose_s(ptr noundef %351)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.tokeniser, ptr %352, i32 0, i32 0
  %354 = load ptr, ptr %353, align 8, !tbaa !37
  store ptr %354, ptr %20, align 8, !tbaa !5
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  %356 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %355, ptr align 8 %356, i64 40, i1 false)
  %357 = load ptr, ptr %3, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.tokeniser, ptr %357, i32 0, i32 1
  %359 = load ptr, ptr %358, align 8, !tbaa !9
  store ptr %359, ptr %4, align 8, !tbaa !5
  %360 = load ptr, ptr %20, align 8, !tbaa !5
  call void @check_free(ptr noundef %360)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.tokeniser, ptr %361, i32 0, i32 12
  %363 = load i32, ptr %362, align 8, !tbaa !31
  %364 = add nsw i32 %363, -1
  store i32 %364, ptr %362, align 8, !tbaa !31
  store i32 2, ptr %6, align 4
  br label %376

365:                                              ; preds = %345
  br label %366

366:                                              ; preds = %365, %40
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.tokeniser, ptr %367, i32 0, i32 14
  %369 = load i32, ptr %368, align 8, !tbaa !14
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.tokeniser, ptr %370, i32 0, i32 15
  store i32 %369, ptr %371, align 4, !tbaa !40
  %372 = load i32, ptr %7, align 4, !tbaa !13
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.tokeniser, ptr %373, i32 0, i32 14
  store i32 %372, ptr %374, align 8, !tbaa !14
  %375 = load i32, ptr %7, align 4, !tbaa !13
  store i32 %375, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %376

376:                                              ; preds = %366, %350, %323, %248, %242, %150, %128, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %377 = load i32, ptr %6, align 4
  switch i32 %377, label %378 [
    i32 2, label %39
  ]

378:                                              ; preds = %376, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %379 = load i32, ptr %2, align 4
  ret i32 %379

380:                                              ; preds = %306
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden i32 @next_token(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @error1(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @next_real_char(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @error2(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @read_chars(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @convert_numeric_string(ptr noundef, ptr noundef, i32 noundef) #0

declare ptr @check_malloc(i64 noundef) #2

declare ptr @copy_s(ptr noundef) #2

declare ptr @copy_b(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare ptr @b_to_sz(ptr noundef) #2

declare ptr @add_sz_to_s(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare void @lose_s(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @error(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

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

declare void @check_free(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"tokeniser", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !7, i64 96, !7, i64 97, !11, i64 100, !11, i64 104, !6, i64 112, !11, i64 120, !7, i64 124}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !7, i64 96}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 88}
!15 = !{!10, !7, i64 97}
!16 = !{!10, !11, i64 16}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !11, i64 36}
!21 = !{!10, !11, i64 60}
!22 = !{!10, !11, i64 64}
!23 = !{!10, !6, i64 40}
!24 = !{!10, !6, i64 72}
!25 = !{!26, !6, i64 0}
!26 = !{!"m_pair", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!10, !6, i64 48}
!28 = !{!26, !6, i64 8}
!29 = !{!26, !6, i64 16}
!30 = !{!10, !11, i64 120}
!31 = !{!10, !11, i64 80}
!32 = !{!10, !6, i64 112}
!33 = !{!34, !6, i64 8}
!34 = !{!"include", !6, i64 0, !6, i64 8}
!35 = !{!34, !6, i64 0}
!36 = distinct !{!36, !19}
!37 = !{!10, !6, i64 0}
!38 = !{!10, !6, i64 24}
!39 = !{!10, !11, i64 32}
!40 = !{!10, !11, i64 92}


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

@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_input(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @read_token(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  %5 = load i8, ptr %4, align 8, !tbaa !11
  store i8 0, ptr %4, align 8, !tbaa !11
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %9, label %6

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  %8 = load i32, ptr %7, align 8, !tbaa !12
  br label %.critedge.thread

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 97
  store i8 0, ptr %10, align 1, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = getelementptr inbounds i8, ptr %0, i64 36
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = getelementptr inbounds i8, ptr %0, i64 60
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  br label %.critedge

.critedge:                                        ; preds = %.critedge.backedge, %9
  %.0131 = phi ptr [ %3, %9 ], [ %.0131.be, %.critedge.backedge ]
  %23 = tail call i32 @next_token(ptr noundef %0)
  switch i32 %23, label %142 [
    i32 19, label %.preheader
    i32 20, label %36
    i32 72, label %57
    i32 71, label %66
    i32 34, label %99
    i32 -1, label %135
  ]

.preheader:                                       ; preds = %.critedge
  %24 = getelementptr inbounds i8, ptr %.0131, i64 -4
  %25 = load i32, ptr %14, align 8, !tbaa !14
  %26 = load i32, ptr %24, align 4, !tbaa !15
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %.lr.ph183.preheader, label %.critedge.backedge

.critedge.backedge:                               ; preds = %.lr.ph183, %31, %.preheader, %71, %97, %98, %91, %88, %83, %.thread160, %61, %64, %65, %53, %137, %.loopexit, %101
  %.0131.be = phi ptr [ %139, %137 ], [ %.0131, %101 ], [ %.2124.ph, %.loopexit ], [ %.0131, %53 ], [ %.0131, %65 ], [ %.0131, %64 ], [ %.0131, %61 ], [ %.0131, %.thread160 ], [ %.0131, %83 ], [ %.0131, %88 ], [ %.0131, %91 ], [ %.0131, %98 ], [ %.0131, %97 ], [ %.0131, %71 ], [ %.0131, %.preheader ], [ %.0131, %31 ], [ %.0131, %.lr.ph183 ]
  br label %.critedge

.lr.ph183.preheader:                              ; preds = %.preheader
  %28 = sext i32 %25 to i64
  br label %.lr.ph183

.lr.ph183:                                        ; preds = %.lr.ph183.preheader, %31
  %indvars.iv200 = phi i64 [ %28, %.lr.ph183.preheader ], [ %indvars.iv.next201, %31 ]
  %29 = getelementptr inbounds i8, ptr %.0131, i64 %indvars.iv200
  %30 = load i8, ptr %29, align 1, !tbaa !16
  %.not155 = icmp eq i8 %30, 10
  br i1 %.not155, label %.critedge.backedge, label %31

31:                                               ; preds = %.lr.ph183
  %indvars.iv.next201 = add nsw i64 %indvars.iv200, 1
  %32 = trunc nsw i64 %indvars.iv.next201 to i32
  store i32 %32, ptr %14, align 8, !tbaa !14
  %33 = load i32, ptr %24, align 4, !tbaa !15
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next201, %34
  br i1 %35, label %.lr.ph183, label %.critedge.backedge, !llvm.loop !17

36:                                               ; preds = %.critedge
  %37 = getelementptr inbounds i8, ptr %.0131, i64 -4
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = add nsw i32 %38, -1
  %40 = load i32, ptr %14, align 8, !tbaa !14
  %.not154180 = icmp slt i32 %40, %39
  br i1 %.not154180, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %36
  %41 = sext i32 %40 to i64
  %wide.trip.count = sext i32 %39 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %36, %56
  tail call void @error1(ptr noundef %0, ptr noundef nonnull @.str.1)
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 -1, ptr %42, align 8, !tbaa !12
  br label %.critedge.thread

.lr.ph:                                           ; preds = %.lr.ph.preheader, %56
  %indvars.iv = phi i64 [ %41, %.lr.ph.preheader ], [ %indvars.iv.next, %56 ]
  %43 = getelementptr inbounds i8, ptr %.0131, i64 %indvars.iv
  %44 = load i8, ptr %43, align 1, !tbaa !16
  switch i8 %44, label %56 [
    i8 10, label %45
    i8 42, label %48
  ]

45:                                               ; preds = %.lr.ph
  %46 = load i32, ptr %17, align 4, !tbaa !19
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %17, align 4, !tbaa !19
  br label %56

48:                                               ; preds = %.lr.ph
  %49 = add nsw i64 %indvars.iv, 1
  %50 = getelementptr inbounds i8, ptr %.0131, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !16
  %52 = icmp eq i8 %51, 47
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  %54 = trunc nsw i64 %indvars.iv to i32
  %55 = add nsw i32 %54, 2
  store i32 %55, ptr %14, align 8, !tbaa !14
  br label %.critedge.backedge

56:                                               ; preds = %.lr.ph, %48, %45
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph

57:                                               ; preds = %.critedge
  %58 = tail call i32 @next_real_char(ptr noundef %0)
  %59 = tail call i32 @next_real_char(ptr noundef %0)
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  tail call void @error2(ptr noundef %0, ptr noundef nonnull @.str.2)
  br label %.critedge.backedge

62:                                               ; preds = %57
  %63 = icmp eq i32 %58, 39
  br i1 %63, label %64, label %65

64:                                               ; preds = %62
  tail call void @error1(ptr noundef %0, ptr noundef nonnull @.str.3)
  br label %.critedge.backedge

65:                                               ; preds = %62
  store i32 %58, ptr %21, align 4, !tbaa !20
  store i32 %59, ptr %22, align 8, !tbaa !21
  br label %.critedge.backedge

66:                                               ; preds = %.critedge
  tail call void @read_chars(ptr noundef %0)
  %67 = tail call i32 @read_token(ptr noundef %0)
  switch i32 %67, label %71 [
    i32 38, label %69
    i32 23, label %68
    i32 83, label %.thread160
  ]

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %66, %68
  %.0137 = phi i32 [ 10, %68 ], [ 16, %66 ]
  %70 = tail call i32 @read_token(ptr noundef %0)
  %.not152 = icmp eq i32 %70, 83
  br i1 %.not152, label %72, label %71

71:                                               ; preds = %66, %69
  tail call void @error1(ptr noundef %0, ptr noundef nonnull @.str.4)
  br label %.critedge.backedge

72:                                               ; preds = %69
  %73 = load ptr, ptr %12, align 8, !tbaa !22
  tail call void @convert_numeric_string(ptr noundef %0, ptr noundef %73, i32 noundef %.0137)
  br label %.thread160

.thread160:                                       ; preds = %66, %72
  %74 = tail call ptr @check_malloc(i64 noundef 24) #6
  %75 = load ptr, ptr %18, align 8, !tbaa !23
  store ptr %75, ptr %74, align 8, !tbaa !24
  %76 = load ptr, ptr %19, align 8, !tbaa !26
  %77 = tail call ptr @copy_s(ptr noundef %76) #6
  %78 = getelementptr inbounds i8, ptr %74, i64 8
  store ptr %77, ptr %78, align 8, !tbaa !27
  %79 = load ptr, ptr %12, align 8, !tbaa !22
  %80 = tail call ptr @copy_b(ptr noundef %79) #6
  %81 = getelementptr inbounds i8, ptr %74, i64 16
  store ptr %80, ptr %81, align 8, !tbaa !28
  store ptr %74, ptr %18, align 8, !tbaa !23
  %82 = load i32, ptr %20, align 8, !tbaa !29
  %.not153 = icmp eq i32 %82, 1
  br i1 %.not153, label %.critedge.backedge, label %83

83:                                               ; preds = %.thread160
  %84 = load ptr, ptr %19, align 8, !tbaa !26
  %85 = getelementptr inbounds i8, ptr %84, i64 -4
  %86 = load i32, ptr %85, align 4, !tbaa !15
  %87 = icmp sgt i32 %86, 2
  br i1 %87, label %88, label %.critedge.backedge

88:                                               ; preds = %83
  %89 = load i8, ptr %84, align 1, !tbaa !16
  %90 = icmp eq i8 %89, 85
  br i1 %90, label %91, label %.critedge.backedge

91:                                               ; preds = %88
  %92 = getelementptr inbounds i8, ptr %84, i64 1
  %93 = load i8, ptr %92, align 1, !tbaa !16
  %94 = icmp eq i8 %93, 43
  br i1 %94, label %95, label %.critedge.backedge

95:                                               ; preds = %91
  %96 = icmp eq i32 %82, 2
  br i1 %96, label %97, label %98

97:                                               ; preds = %95
  tail call void @error1(ptr noundef nonnull %0, ptr noundef nonnull @.str.5)
  br label %.critedge.backedge

98:                                               ; preds = %95
  store i32 1, ptr %20, align 8, !tbaa !29
  br label %.critedge.backedge

99:                                               ; preds = %.critedge
  %100 = tail call i32 @read_token(ptr noundef %0)
  %.not149 = icmp eq i32 %100, 83
  br i1 %.not149, label %102, label %101

101:                                              ; preds = %99
  tail call void @error1(ptr noundef %0, ptr noundef nonnull @.str.6)
  br label %.critedge.backedge

102:                                              ; preds = %99
  %103 = load i32, ptr %11, align 8, !tbaa !30
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %11, align 8, !tbaa !30
  %105 = icmp sgt i32 %103, 9
  br i1 %105, label %106, label %107

106:                                              ; preds = %102
  tail call void @error1(ptr noundef nonnull %0, ptr noundef nonnull @.str.7)
  tail call void @exit(i32 noundef 1) #7
  unreachable

107:                                              ; preds = %102
  %108 = tail call ptr @check_malloc(i64 noundef 40) #6
  %109 = load ptr, ptr %12, align 8, !tbaa !22
  %110 = tail call ptr @b_to_sz(ptr noundef %109) #6
  %111 = tail call ptr @get_input(ptr noundef %110)
  %112 = icmp eq ptr %111, null
  br i1 %112, label %.preheader185, label %.loopexit

.preheader185:                                    ; preds = %107
  %.0121.peel = load ptr, ptr %13, align 8, !tbaa !31
  %.not150.peel = icmp eq ptr %.0121.peel, null
  br i1 %.not150.peel, label %.loopexit196, label %113

113:                                              ; preds = %.preheader185
  %114 = getelementptr inbounds i8, ptr %.0121.peel, i64 8
  %115 = load ptr, ptr %114, align 8, !tbaa !32
  %116 = tail call ptr @copy_s(ptr noundef %115) #6
  %117 = tail call ptr @add_sz_to_s(ptr noundef %116, ptr noundef %110) #6
  %118 = getelementptr inbounds i8, ptr %117, i64 -4
  %119 = load i32, ptr %118, align 4, !tbaa !15
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %117, i64 %120
  store i8 0, ptr %121, align 1, !tbaa !16
  tail call void @free(ptr noundef %110) #6
  %122 = tail call ptr @get_input(ptr noundef nonnull %117)
  %.not151.peel = icmp eq ptr %122, null
  br i1 %.not151.peel, label %.peel.next, label %.loopexit

.peel.next:                                       ; preds = %113, %123
  %.0128 = phi ptr [ %127, %123 ], [ %117, %113 ]
  %.0121.in = phi ptr [ %.0121, %123 ], [ %.0121.peel, %113 ]
  %.0121 = load ptr, ptr %.0121.in, align 8, !tbaa !31
  %.not150 = icmp eq ptr %.0121, null
  br i1 %.not150, label %.loopexit196, label %123

123:                                              ; preds = %.peel.next
  %124 = getelementptr inbounds i8, ptr %.0121, i64 8
  %125 = load ptr, ptr %124, align 8, !tbaa !32
  %126 = tail call ptr @copy_s(ptr noundef %125) #6
  %127 = tail call ptr @add_sz_to_s(ptr noundef %126, ptr noundef nonnull %.0128) #6
  %128 = getelementptr inbounds i8, ptr %127, i64 -4
  %129 = load i32, ptr %128, align 4, !tbaa !15
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %127, i64 %130
  store i8 0, ptr %131, align 1, !tbaa !16
  tail call void @lose_s(ptr noundef nonnull %.0128) #6
  %132 = tail call ptr @get_input(ptr noundef nonnull %127)
  %.not151 = icmp eq ptr %132, null
  br i1 %.not151, label %.peel.next, label %.loopexit, !llvm.loop !34

.loopexit196:                                     ; preds = %.preheader185, %.peel.next
  %.0128.lcssa = phi ptr [ %.0128, %.peel.next ], [ %110, %.preheader185 ]
  %133 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0128.lcssa) #8
  %134 = trunc i64 %133 to i32
  tail call void @error(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef %.0128.lcssa, i32 noundef %134, ptr noundef nonnull @.str.9)
  tail call void @exit(i32 noundef 1) #7
  unreachable

.loopexit:                                        ; preds = %123, %113, %107
  %.2130.ph = phi ptr [ %110, %107 ], [ %117, %113 ], [ %127, %123 ]
  %.2127.ph = phi i32 [ 1, %107 ], [ -1, %113 ], [ -1, %123 ]
  %.2124.ph = phi ptr [ %111, %107 ], [ %122, %113 ], [ %132, %123 ]
  tail call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %108, ptr noundef nonnull align 8 dereferenceable(40) %0, i64 40, i1 false)
  store ptr %108, ptr %0, align 8, !tbaa !36
  store ptr %.2124.ph, ptr %2, align 8, !tbaa !5
  store i32 0, ptr %14, align 8, !tbaa !14
  store ptr %.2130.ph, ptr %15, align 8, !tbaa !37
  store i32 %.2127.ph, ptr %16, align 8, !tbaa !38
  store i32 1, ptr %17, align 4, !tbaa !19
  br label %.critedge.backedge

135:                                              ; preds = %.critedge
  %136 = load ptr, ptr %0, align 8, !tbaa !36
  %.not148 = icmp eq ptr %136, null
  br i1 %.not148, label %142, label %137

137:                                              ; preds = %135
  tail call void @lose_s(ptr noundef %.0131) #6
  %138 = load ptr, ptr %0, align 8, !tbaa !36
  tail call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %138, i64 40, i1 false)
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  tail call void @check_free(ptr noundef %138) #6
  %140 = load i32, ptr %11, align 8, !tbaa !30
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %11, align 8, !tbaa !30
  br label %.critedge.backedge

142:                                              ; preds = %135, %.critedge
  %143 = getelementptr inbounds i8, ptr %0, i64 88
  %144 = load i32, ptr %143, align 8, !tbaa !12
  %145 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %144, ptr %145, align 4, !tbaa !39
  store i32 %23, ptr %143, align 8, !tbaa !12
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %._crit_edge, %142, %6
  %.3 = phi i32 [ %8, %6 ], [ -1, %._crit_edge ], [ %23, %142 ]
  ret i32 %.3
}

; Function Attrs: nounwind uwtable
declare hidden i32 @next_token(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @error1(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @next_real_char(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @error2(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @read_chars(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @convert_numeric_string(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @check_malloc(i64 noundef) local_unnamed_addr #1

declare ptr @copy_s(ptr noundef) local_unnamed_addr #1

declare ptr @copy_b(ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

declare ptr @b_to_sz(ptr noundef) local_unnamed_addr #1

declare ptr @add_sz_to_s(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

declare void @lose_s(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @error(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

declare void @check_free(ptr noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { noreturn 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"tokeniser", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 97, !10, i64 100, !10, i64 104, !7, i64 112, !10, i64 120, !8, i64 124}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !8, i64 96}
!12 = !{!6, !10, i64 88}
!13 = !{!6, !8, i64 97}
!14 = !{!6, !10, i64 16}
!15 = !{!10, !10, i64 0}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !10, i64 36}
!20 = !{!6, !10, i64 60}
!21 = !{!6, !10, i64 64}
!22 = !{!6, !7, i64 40}
!23 = !{!6, !7, i64 72}
!24 = !{!25, !7, i64 0}
!25 = !{!"m_pair", !7, i64 0, !7, i64 8, !7, i64 16}
!26 = !{!6, !7, i64 48}
!27 = !{!25, !7, i64 8}
!28 = !{!25, !7, i64 16}
!29 = !{!6, !10, i64 120}
!30 = !{!6, !10, i64 80}
!31 = !{!7, !7, i64 0}
!32 = !{!33, !7, i64 8}
!33 = !{!"include", !7, i64 0, !7, i64 8}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.peeled.count", i32 1}
!36 = !{!6, !7, i64 0}
!37 = !{!6, !7, i64 24}
!38 = !{!6, !10, i64 32}
!39 = !{!6, !10, i64 92}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass