; LLVM IR from Smorodov/Multitarget-tracker :: src/Tracker/graph/GTL/src/gml_scanner.ll (ZN3GTL11GML_scannerEP8_IO_FILE)

; 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.GTL::GML_token" = type { i32, %"union.GTL::GML_tok_val" }
%"union.GTL::GML_tok_val" = type { i64, [8 x i8] }
%"struct.GTL::GML_error" = type { i32, i32, i32 }

@_ZN3GTL8GML_lineE = external dso_local global i32, align 4
@_ZN3GTL10GML_columnE = external dso_local global i32, align 4
@_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer = external hidden global [1024 x i8], align 16
@.str.100 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3GTL11GML_scannerEP8_IO_FILE = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3GTL14GML_search_ISOEPci(ptr noundef, i32 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: mustprogress uwtable
define dso_local void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind noalias writable sret(%"struct.GTL::GML_token") align 8 %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.GTL::GML_token", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [8 x i8], align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  store i32 1024, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  store ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %14, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.100, ptr noundef @.str.101, i32 noundef 177, ptr noundef @__PRETTY_FUNCTION__._ZN3GTL11GML_scannerEP8_IO_FILE) #11
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  br label %21

21:                                               ; preds = %38, %20
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i32 @fgetc(ptr noundef %22)
  store i32 %23, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %25 = add i32 %24, 1
  store i32 %25, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 10
  br i1 %27, label %28, label %31

28:                                               ; preds = %21
  %29 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %30 = add i32 %29, 1
  store i32 %30, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %37

31:                                               ; preds = %21
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 6, ptr %35, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

36:                                               ; preds = %31
  br label %37

37:                                               ; preds = %36, %28
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = call i32 @isspace(i32 noundef %39) #12
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %21, label %42, !llvm.loop !17

42:                                               ; preds = %38
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = call i32 @isdigit(i32 noundef %43) #12
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %55, label %46

46:                                               ; preds = %42
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 46
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 43
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 45
  br i1 %54, label %55, label %131

55:                                               ; preds = %52, %49, %46, %42
  br label %56

56:                                               ; preds = %95, %55
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 1023
  br i1 %58, label %59, label %71

59:                                               ; preds = %56
  %60 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.GTL::GML_error", ptr %60, i32 0, i32 0
  store i32 3, ptr %61, align 8, !tbaa !16
  %62 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %63 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %64 = getelementptr inbounds %"struct.GTL::GML_error", ptr %63, i32 0, i32 1
  store i32 %62, ptr %64, align 4, !tbaa !16
  %65 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = add i32 %65, %66
  %68 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %69 = getelementptr inbounds %"struct.GTL::GML_error", ptr %68, i32 0, i32 2
  store i32 %67, ptr %69, align 8, !tbaa !16
  %70 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 8, ptr %70, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

71:                                               ; preds = %56
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 46
  br i1 %73, label %77, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 69
  br i1 %76, label %77, label %78

77:                                               ; preds = %74, %71
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %77, %74
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = trunc i32 %79 to i8
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1024 x i8], ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, i64 0, i64 %82
  store i8 %80, ptr %83, align 1, !tbaa !16
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call i32 @fgetc(ptr noundef %86)
  store i32 %87, ptr %10, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %78
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = call i32 @isspace(i32 noundef %89) #12
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %95, label %92

92:                                               ; preds = %88
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 93
  br label %95

95:                                               ; preds = %92, %88
  %96 = phi i1 [ false, %88 ], [ %94, %92 ]
  br i1 %96, label %56, label %97, !llvm.loop !19

97:                                               ; preds = %95
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = icmp eq i32 %98, 93
  br i1 %99, label %100, label %104

100:                                              ; preds = %97
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = call i32 @ungetc(i32 noundef %101, ptr noundef %102)
  br label %104

104:                                              ; preds = %100, %97
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [1024 x i8], ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, i64 0, i64 %106
  store i8 0, ptr %107, align 1, !tbaa !16
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = icmp eq i32 %108, 10
  br i1 %109, label %110, label %113

110:                                              ; preds = %104
  %111 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %112 = add i32 %111, 1
  store i32 %112, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %117

113:                                              ; preds = %104
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %116 = add i32 %115, %114
  store i32 %116, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %113, %110
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %125

120:                                              ; preds = %117
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = call double @atof(ptr noundef %121) #12
  %123 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  store double %122, ptr %123, align 8, !tbaa !16
  %124 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 2, ptr %124, align 8, !tbaa !11
  br label %130

125:                                              ; preds = %117
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = call i64 @atol(ptr noundef %126) #12
  %128 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  store i64 %127, ptr %128, align 8, !tbaa !16
  %129 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 1, ptr %129, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %125, %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

131:                                              ; preds = %52
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = call i32 @isalpha(i32 noundef %132) #12
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %138, label %135

135:                                              ; preds = %131
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 95
  br i1 %137, label %138, label %236

138:                                              ; preds = %135, %131
  br label %139

139:                                              ; preds = %206, %138
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = load i32, ptr %4, align 4, !tbaa !9
  %142 = sub nsw i32 %141, 1
  %143 = icmp eq i32 %140, %142
  br i1 %143, label %144, label %166

144:                                              ; preds = %139
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %145, align 1, !tbaa !16
  %146 = load i32, ptr %4, align 4, !tbaa !9
  %147 = mul nsw i32 2, %146
  %148 = sext i32 %147 to i64
  %149 = mul i64 %148, 1
  %150 = call noalias ptr @malloc(i64 noundef %149) #13
  store ptr %150, ptr %5, align 8, !tbaa !5
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = call ptr @strcpy(ptr noundef %151, ptr noundef %152) #10
  %154 = load i32, ptr %4, align 4, !tbaa !9
  %155 = icmp sgt i32 %154, 1024
  br i1 %155, label %156, label %158

156:                                              ; preds = %144
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %157) #10
  br label %158

158:                                              ; preds = %156, %144
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %159, ptr %6, align 8, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = sext i32 %160 to i64
  %163 = getelementptr inbounds i8, ptr %161, i64 %162
  store ptr %163, ptr %5, align 8, !tbaa !5
  %164 = load i32, ptr %4, align 4, !tbaa !9
  %165 = mul nsw i32 %164, 2
  store i32 %165, ptr %4, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %158, %139
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = call i32 @isalnum(i32 noundef %167) #12
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %190, label %170

170:                                              ; preds = %166
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 95
  br i1 %172, label %173, label %190

173:                                              ; preds = %170
  %174 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %175 = getelementptr inbounds %"struct.GTL::GML_error", ptr %174, i32 0, i32 0
  store i32 0, ptr %175, align 8, !tbaa !16
  %176 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %177 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %178 = getelementptr inbounds %"struct.GTL::GML_error", ptr %177, i32 0, i32 1
  store i32 %176, ptr %178, align 4, !tbaa !16
  %179 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = add i32 %179, %180
  %182 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %183 = getelementptr inbounds %"struct.GTL::GML_error", ptr %182, i32 0, i32 2
  store i32 %181, ptr %183, align 8, !tbaa !16
  %184 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 8, ptr %184, align 8, !tbaa !11
  %185 = load i32, ptr %4, align 4, !tbaa !9
  %186 = icmp sgt i32 %185, 1024
  br i1 %186, label %187, label %189

187:                                              ; preds = %173
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %188) #10
  br label %189

189:                                              ; preds = %187, %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

190:                                              ; preds = %170, %166
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = trunc i32 %191 to i8
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds i8, ptr %193, i32 1
  store ptr %194, ptr %5, align 8, !tbaa !5
  store i8 %192, ptr %193, align 1, !tbaa !16
  %195 = load i32, ptr %9, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %9, align 4, !tbaa !9
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = call i32 @fgetc(ptr noundef %197)
  store i32 %198, ptr %10, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %190
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = call i32 @isspace(i32 noundef %200) #12
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %206, label %203

203:                                              ; preds = %199
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = icmp ne i32 %204, -1
  br label %206

206:                                              ; preds = %203, %199
  %207 = phi i1 [ false, %199 ], [ %205, %203 ]
  br i1 %207, label %139, label %208, !llvm.loop !20

208:                                              ; preds = %206
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = icmp eq i32 %209, 10
  br i1 %210, label %211, label %214

211:                                              ; preds = %208
  %212 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %213 = add i32 %212, 1
  store i32 %213, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %218

214:                                              ; preds = %208
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %214, %211
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %219, align 1, !tbaa !16
  %220 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 0, ptr %220, align 8, !tbaa !11
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = mul i64 %223, 1
  %225 = call noalias ptr @malloc(i64 noundef %224) #13
  %226 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  store ptr %225, ptr %226, align 8, !tbaa !16
  %227 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %228 = load ptr, ptr %227, align 8, !tbaa !16
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = call ptr @strcpy(ptr noundef %228, ptr noundef %229) #10
  %231 = load i32, ptr %4, align 4, !tbaa !9
  %232 = icmp sgt i32 %231, 1024
  br i1 %232, label %233, label %235

233:                                              ; preds = %218
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %234) #10
  br label %235

235:                                              ; preds = %233, %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

236:                                              ; preds = %135
  %237 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %237, label %397 [
    i32 35, label %238
    i32 91, label %254
    i32 93, label %256
    i32 34, label %258
  ]

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %248, %238
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = call i32 @fgetc(ptr noundef %240)
  store i32 %241, ptr %10, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %239
  %243 = load i32, ptr %10, align 4, !tbaa !9
  %244 = icmp ne i32 %243, 10
  br i1 %244, label %245, label %248

245:                                              ; preds = %242
  %246 = load i32, ptr %10, align 4, !tbaa !9
  %247 = icmp ne i32 %246, -1
  br label %248

248:                                              ; preds = %245, %242
  %249 = phi i1 [ false, %242 ], [ %247, %245 ]
  br i1 %249, label %239, label %250, !llvm.loop !21

250:                                              ; preds = %248
  %251 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %252 = add i32 %251, 1
  store i32 %252, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8 %0, ptr noundef %253)
  store i32 1, ptr %13, align 4
  br label %407

254:                                              ; preds = %236
  %255 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 4, ptr %255, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

256:                                              ; preds = %236
  %257 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 5, ptr %257, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

258:                                              ; preds = %236
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = call i32 @fgetc(ptr noundef %259)
  store i32 %260, ptr %10, align 4, !tbaa !9
  %261 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %262 = add i32 %261, 1
  store i32 %262, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %378, %258
  %264 = load i32, ptr %10, align 4, !tbaa !9
  %265 = icmp ne i32 %264, 34
  br i1 %265, label %266, label %379

266:                                              ; preds = %263
  %267 = load i32, ptr %9, align 4, !tbaa !9
  %268 = load i32, ptr %4, align 4, !tbaa !9
  %269 = sub nsw i32 %268, 8
  %270 = icmp sge i32 %267, %269
  br i1 %270, label %271, label %293

271:                                              ; preds = %266
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %272, align 1, !tbaa !16
  %273 = load i32, ptr %4, align 4, !tbaa !9
  %274 = mul nsw i32 2, %273
  %275 = sext i32 %274 to i64
  %276 = mul i64 %275, 1
  %277 = call noalias ptr @malloc(i64 noundef %276) #13
  store ptr %277, ptr %5, align 8, !tbaa !5
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = call ptr @strcpy(ptr noundef %278, ptr noundef %279) #10
  %281 = load i32, ptr %4, align 4, !tbaa !9
  %282 = icmp sgt i32 %281, 1024
  br i1 %282, label %283, label %285

283:                                              ; preds = %271
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %284) #10
  br label %285

285:                                              ; preds = %283, %271
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %286, ptr %6, align 8, !tbaa !5
  %287 = load i32, ptr %9, align 4, !tbaa !9
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = sext i32 %287 to i64
  %290 = getelementptr inbounds i8, ptr %288, i64 %289
  store ptr %290, ptr %5, align 8, !tbaa !5
  %291 = load i32, ptr %4, align 4, !tbaa !9
  %292 = mul nsw i32 %291, 2
  store i32 %292, ptr %4, align 4, !tbaa !9
  br label %293

293:                                              ; preds = %285, %266
  %294 = load i32, ptr %10, align 4, !tbaa !9
  %295 = icmp eq i32 %294, 38
  br i1 %295, label %296, label %342

296:                                              ; preds = %293
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %297

297:                                              ; preds = %321, %296
  %298 = load i32, ptr %10, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 59
  br i1 %299, label %300, label %324

300:                                              ; preds = %297
  %301 = load i32, ptr %10, align 4, !tbaa !9
  %302 = icmp eq i32 %301, 34
  br i1 %302, label %306, label %303

303:                                              ; preds = %300
  %304 = load i32, ptr %10, align 4, !tbaa !9
  %305 = icmp eq i32 %304, -1
  br i1 %305, label %306, label %310

306:                                              ; preds = %303, %300
  %307 = load i32, ptr %10, align 4, !tbaa !9
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = call i32 @ungetc(i32 noundef %307, ptr noundef %308)
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %324

310:                                              ; preds = %303
  %311 = load i32, ptr %12, align 4, !tbaa !9
  %312 = icmp slt i32 %311, 8
  br i1 %312, label %313, label %321

313:                                              ; preds = %310
  %314 = load i32, ptr %10, align 4, !tbaa !9
  %315 = trunc i32 %314 to i8
  %316 = load i32, ptr %12, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %317
  store i8 %315, ptr %318, align 1, !tbaa !16
  %319 = load i32, ptr %12, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %12, align 4, !tbaa !9
  br label %321

321:                                              ; preds = %313, %310
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = call i32 @fgetc(ptr noundef %322)
  store i32 %323, ptr %10, align 4, !tbaa !9
  br label %297, !llvm.loop !22

324:                                              ; preds = %306, %297
  %325 = load i32, ptr %12, align 4, !tbaa !9
  %326 = icmp eq i32 %325, 8
  br i1 %326, label %327, label %328

327:                                              ; preds = %324
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %327, %324
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %340

331:                                              ; preds = %328
  %332 = load i32, ptr %12, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %333
  store i8 59, ptr %334, align 1, !tbaa !16
  %335 = load i32, ptr %12, align 4, !tbaa !9
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %12, align 4, !tbaa !9
  %337 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
  %338 = load i32, ptr %12, align 4, !tbaa !9
  %339 = call noundef i32 @_ZN3GTL14GML_search_ISOEPci(ptr noundef %337, i32 noundef %338)
  store i32 %339, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %341

340:                                              ; preds = %328
  store i32 38, ptr %10, align 4, !tbaa !9
  br label %341

341:                                              ; preds = %340, %331
  br label %342

342:                                              ; preds = %341, %293
  %343 = load i32, ptr %10, align 4, !tbaa !9
  %344 = trunc i32 %343 to i8
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds i8, ptr %345, i32 1
  store ptr %346, ptr %5, align 8, !tbaa !5
  store i8 %344, ptr %345, align 1, !tbaa !16
  %347 = load i32, ptr %9, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %9, align 4, !tbaa !9
  %349 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %350 = add i32 %349, 1
  store i32 %350, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %351 = load ptr, ptr %3, align 8, !tbaa !5
  %352 = call i32 @fgetc(ptr noundef %351)
  store i32 %352, ptr %10, align 4, !tbaa !9
  %353 = load i32, ptr %10, align 4, !tbaa !9
  %354 = icmp eq i32 %353, -1
  br i1 %354, label %355, label %372

355:                                              ; preds = %342
  %356 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %357 = getelementptr inbounds %"struct.GTL::GML_error", ptr %356, i32 0, i32 0
  store i32 2, ptr %357, align 8, !tbaa !16
  %358 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %359 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %360 = getelementptr inbounds %"struct.GTL::GML_error", ptr %359, i32 0, i32 1
  store i32 %358, ptr %360, align 4, !tbaa !16
  %361 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %362 = load i32, ptr %9, align 4, !tbaa !9
  %363 = add i32 %361, %362
  %364 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %365 = getelementptr inbounds %"struct.GTL::GML_error", ptr %364, i32 0, i32 2
  store i32 %363, ptr %365, align 8, !tbaa !16
  %366 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 8, ptr %366, align 8, !tbaa !11
  %367 = load i32, ptr %4, align 4, !tbaa !9
  %368 = icmp sgt i32 %367, 1024
  br i1 %368, label %369, label %371

369:                                              ; preds = %355
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %370) #10
  br label %371

371:                                              ; preds = %369, %355
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

372:                                              ; preds = %342
  %373 = load i32, ptr %10, align 4, !tbaa !9
  %374 = icmp eq i32 %373, 10
  br i1 %374, label %375, label %378

375:                                              ; preds = %372
  %376 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %377 = add i32 %376, 1
  store i32 %377, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  br label %378

378:                                              ; preds = %375, %372
  br label %263, !llvm.loop !23

379:                                              ; preds = %263
  %380 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %380, align 1, !tbaa !16
  %381 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 3, ptr %381, align 8, !tbaa !11
  %382 = load i32, ptr %9, align 4, !tbaa !9
  %383 = add nsw i32 %382, 1
  %384 = sext i32 %383 to i64
  %385 = mul i64 %384, 1
  %386 = call noalias ptr @malloc(i64 noundef %385) #13
  %387 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  store ptr %386, ptr %387, align 8, !tbaa !16
  %388 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %389 = load ptr, ptr %388, align 8, !tbaa !16
  %390 = load ptr, ptr %6, align 8, !tbaa !5
  %391 = call ptr @strcpy(ptr noundef %389, ptr noundef %390) #10
  %392 = load i32, ptr %4, align 4, !tbaa !9
  %393 = icmp sgt i32 %392, 1024
  br i1 %393, label %394, label %396

394:                                              ; preds = %379
  %395 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %395) #10
  br label %396

396:                                              ; preds = %394, %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

397:                                              ; preds = %236
  %398 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %399 = getelementptr inbounds %"struct.GTL::GML_error", ptr %398, i32 0, i32 0
  store i32 0, ptr %399, align 8, !tbaa !16
  %400 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %401 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %402 = getelementptr inbounds %"struct.GTL::GML_error", ptr %401, i32 0, i32 1
  store i32 %400, ptr %402, align 4, !tbaa !16
  %403 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %404 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 1
  %405 = getelementptr inbounds %"struct.GTL::GML_error", ptr %404, i32 0, i32 2
  store i32 %403, ptr %405, align 8, !tbaa !16
  %406 = getelementptr inbounds %"struct.GTL::GML_token", ptr %7, i32 0, i32 0
  store i32 8, ptr %406, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %7, i64 24, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %407

407:                                              ; preds = %397, %396, %371, %256, %254, %250, %235, %189, %130, %59, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @fgetc(ptr noundef) #4

; 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) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #6

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isdigit(i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #7

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr noundef nonnull) #7

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(i32 noundef) #6

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #8

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #9

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

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

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

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

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


; 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.GTL::GML_token" = type { i32, %"union.GTL::GML_tok_val" }
%"union.GTL::GML_tok_val" = type { i64, [8 x i8] }

@_ZN3GTL8GML_lineE = external dso_local local_unnamed_addr global i32, align 4
@_ZN3GTL10GML_columnE = external dso_local local_unnamed_addr global i32, align 4
@_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer = external hidden global [1024 x i8], align 16
@.str.100 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3GTL11GML_scannerEP8_IO_FILE = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3GTL14GML_search_ISOEPci(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"struct.GTL::GML_token") align 8 %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [8 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %.preheader334

4:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.100, ptr noundef nonnull @.str.101, i32 noundef 177, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3GTL11GML_scannerEP8_IO_FILE) #10
  unreachable

.preheader334:                                    ; preds = %2, %12
  %5 = tail call i32 @fgetc(ptr noundef nonnull %1)
  %6 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %7 = add i32 %6, 1
  store i32 %7, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  switch i32 %5, label %12 [
    i32 10, label %8
    i32 -1, label %11
  ]

8:                                                ; preds = %.preheader334
  %9 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %10 = add i32 %9, 1
  store i32 %10, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  br label %12

11:                                               ; preds = %.preheader334
  store i32 6, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %.sroa.23102.0..sroa_idx, align 8
  br label %174

12:                                               ; preds = %.preheader334, %8
  %13 = phi i32 [ %7, %.preheader334 ], [ 1, %8 ]
  %14 = tail call i32 @isspace(i32 noundef %5) #11
  %.not318 = icmp eq i32 %14, 0
  br i1 %.not318, label %15, label %.preheader334, !llvm.loop !11

15:                                               ; preds = %12
  %isdigittmp = add i32 %5, -48
  %isdigit = icmp ult i32 %isdigittmp, 10
  br i1 %isdigit, label %.preheader.preheader, label %switch.early.test

switch.early.test:                                ; preds = %15
  switch i32 %5, label %53 [
    i32 46, label %.preheader.preheader
    i32 45, label %.preheader.preheader
    i32 43, label %.preheader.preheader
  ]

.preheader.preheader:                             ; preds = %15, %switch.early.test, %switch.early.test, %switch.early.test
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %23
  %indvars.iv381 = phi i64 [ %indvars.iv.next382, %23 ], [ 0, %.preheader.preheader ]
  %.0300 = phi i32 [ %.1301, %23 ], [ 0, %.preheader.preheader ]
  %.0294 = phi i32 [ %26, %23 ], [ %5, %.preheader.preheader ]
  %16 = icmp eq i64 %indvars.iv381, 1023
  br i1 %16, label %17, label %21

17:                                               ; preds = %.preheader
  %18 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %19 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %20 = add i32 %19, 1023
  store i32 8, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx103 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.23102.sroa.22.0.insert.ext197 = zext i32 %18 to i64
  %.sroa.23102.sroa.22.0.insert.shift198 = shl nuw i64 %.sroa.23102.sroa.22.0.insert.ext197, 32
  %.sroa.23102.sroa.0.0.insert.insert163 = or disjoint i64 %.sroa.23102.sroa.22.0.insert.shift198, 3
  store i64 %.sroa.23102.sroa.0.0.insert.insert163, ptr %.sroa.23102.0..sroa_idx103, align 8
  %.sroa.37.0..sroa_idx125 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %20, ptr %.sroa.37.0..sroa_idx125, align 8
  br label %174

21:                                               ; preds = %.preheader
  switch i32 %.0294, label %23 [
    i32 69, label %22
    i32 46, label %22
  ]

22:                                               ; preds = %21, %21
  br label %23

23:                                               ; preds = %21, %22
  %.1301 = phi i32 [ 1, %22 ], [ %.0300, %21 ]
  %24 = trunc i32 %.0294 to i8
  %25 = getelementptr inbounds [1024 x i8], ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, i64 0, i64 %indvars.iv381
  store i8 %24, ptr %25, align 1, !tbaa !13
  %indvars.iv.next382 = add nuw nsw i64 %indvars.iv381, 1
  %26 = tail call i32 @fgetc(ptr noundef nonnull %1)
  %27 = tail call i32 @isspace(i32 noundef %26) #11
  %.not325 = icmp eq i32 %27, 0
  %28 = icmp ne i32 %26, 93
  %29 = and i1 %28, %.not325
  br i1 %29, label %.preheader, label %30, !llvm.loop !14

30:                                               ; preds = %23
  %31 = trunc nuw nsw i64 %indvars.iv.next382 to i32
  %32 = icmp eq i32 %26, 93
  br i1 %32, label %.thread, label %36

.thread:                                          ; preds = %30
  %33 = tail call i32 @ungetc(i32 noundef 93, ptr noundef nonnull %1)
  %34 = and i64 %indvars.iv.next382, 4294967295
  %35 = getelementptr inbounds [1024 x i8], ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, i64 0, i64 %34
  store i8 0, ptr %35, align 1, !tbaa !13
  br label %43

36:                                               ; preds = %30
  %37 = and i64 %indvars.iv.next382, 4294967295
  %38 = getelementptr inbounds [1024 x i8], ptr @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, i64 0, i64 %37
  store i8 0, ptr %38, align 1, !tbaa !13
  %39 = icmp eq i32 %26, 10
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %42 = add i32 %41, 1
  store i32 %42, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  br label %46

43:                                               ; preds = %.thread, %36
  %44 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %45 = add i32 %44, %31
  br label %46

46:                                               ; preds = %43, %40
  %storemerge326 = phi i32 [ %45, %43 ], [ 1, %40 ]
  store i32 %storemerge326, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %.not327 = icmp eq i32 %.1301, 0
  br i1 %.not327, label %50, label %47

47:                                               ; preds = %46
  %48 = tail call double @atof(ptr noundef @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer) #11
  %49 = bitcast double %48 to i64
  br label %52

50:                                               ; preds = %46
  %51 = tail call i64 @atol(ptr nocapture noundef @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer) #11
  br label %52

52:                                               ; preds = %50, %47
  %.sroa.23102.sroa.22.0.in.in = phi i64 [ %49, %47 ], [ %51, %50 ]
  %.sroa.0.0 = phi i32 [ 2, %47 ], [ 1, %50 ]
  store i32 %.sroa.0.0, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx105 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %.sroa.23102.sroa.22.0.in.in, ptr %.sroa.23102.0..sroa_idx105, align 8
  br label %174

53:                                               ; preds = %switch.early.test
  %54 = tail call i32 @isalpha(i32 noundef %5) #11
  %55 = icmp ne i32 %54, 0
  %56 = icmp eq i32 %5, 95
  %or.cond9 = or i1 %56, %55
  br i1 %or.cond9, label %.preheader331, label %106

.preheader331:                                    ; preds = %53, %81
  %indvars.iv378 = phi i64 [ %indvars.iv.next379, %81 ], [ 0, %53 ]
  %.0310 = phi i32 [ %.1311, %81 ], [ 1024, %53 ]
  %.0306 = phi ptr [ %83, %81 ], [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %53 ]
  %.0302 = phi ptr [ %.1303, %81 ], [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %53 ]
  %.1295 = phi i32 [ %84, %81 ], [ %5, %53 ]
  %57 = add nsw i32 %.0310, -1
  %58 = zext i32 %57 to i64
  %59 = icmp eq i64 %indvars.iv378, %58
  br i1 %59, label %60, label %69

60:                                               ; preds = %.preheader331
  store i8 0, ptr %.0306, align 1, !tbaa !13
  %61 = shl nsw i32 %.0310, 1
  %62 = sext i32 %61 to i64
  %63 = tail call noalias ptr @malloc(i64 noundef %62) #12
  %64 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) %.0302) #9
  %65 = icmp sgt i32 %.0310, 1024
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  tail call void @free(ptr noundef %.0302) #9
  br label %67

67:                                               ; preds = %66, %60
  %68 = getelementptr inbounds i8, ptr %63, i64 %indvars.iv378
  br label %69

69:                                               ; preds = %67, %.preheader331
  %.1311 = phi i32 [ %61, %67 ], [ %.0310, %.preheader331 ]
  %.1307 = phi ptr [ %68, %67 ], [ %.0306, %.preheader331 ]
  %.1303 = phi ptr [ %63, %67 ], [ %.0302, %.preheader331 ]
  %70 = tail call i32 @isalnum(i32 noundef %.1295) #11
  %71 = icmp eq i32 %70, 0
  %72 = icmp ne i32 %.1295, 95
  %or.cond11 = and i1 %72, %71
  br i1 %or.cond11, label %73, label %81

73:                                               ; preds = %69
  %74 = trunc nuw nsw i64 %indvars.iv378 to i32
  %75 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %76 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %77 = add i32 %76, %74
  %78 = icmp sgt i32 %.1311, 1024
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  tail call void @free(ptr noundef %.1303) #9
  br label %80

80:                                               ; preds = %79, %73
  store i32 8, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx107 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.23102.sroa.22.0.insert.ext205 = zext i32 %75 to i64
  %.sroa.23102.sroa.22.0.insert.shift206 = shl nuw i64 %.sroa.23102.sroa.22.0.insert.ext205, 32
  store i64 %.sroa.23102.sroa.22.0.insert.shift206, ptr %.sroa.23102.0..sroa_idx107, align 8
  %.sroa.37.0..sroa_idx129 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %77, ptr %.sroa.37.0..sroa_idx129, align 8
  br label %174

81:                                               ; preds = %69
  %82 = trunc i32 %.1295 to i8
  %83 = getelementptr inbounds i8, ptr %.1307, i64 1
  store i8 %82, ptr %.1307, align 1, !tbaa !13
  %indvars.iv.next379 = add nuw nsw i64 %indvars.iv378, 1
  %84 = tail call i32 @fgetc(ptr noundef nonnull %1)
  %85 = tail call i32 @isspace(i32 noundef %84) #11
  %.not324 = icmp eq i32 %85, 0
  %86 = icmp ne i32 %84, -1
  %87 = and i1 %86, %.not324
  br i1 %87, label %.preheader331, label %88, !llvm.loop !15

88:                                               ; preds = %81
  %89 = icmp eq i32 %84, 10
  br i1 %89, label %90, label %93

90:                                               ; preds = %88
  %91 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %92 = add i32 %91, 1
  store i32 %92, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  br label %97

93:                                               ; preds = %88
  %94 = trunc nuw i64 %indvars.iv.next379 to i32
  %95 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %96 = add i32 %95, %94
  br label %97

97:                                               ; preds = %93, %90
  %storemerge = phi i32 [ %96, %93 ], [ 1, %90 ]
  store i32 %storemerge, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  store i8 0, ptr %83, align 1, !tbaa !13
  %98 = add nuw i64 %indvars.iv378, 2
  %99 = and i64 %98, 4294967295
  %100 = tail call noalias ptr @malloc(i64 noundef %99) #12
  %101 = ptrtoint ptr %100 to i64
  %102 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %100, ptr noundef nonnull dereferenceable(1) %.1303) #9
  %103 = icmp sgt i32 %.1311, 1024
  br i1 %103, label %104, label %105

104:                                              ; preds = %97
  tail call void @free(ptr noundef %.1303) #9
  br label %105

105:                                              ; preds = %104, %97
  store i32 0, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx109 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %101, ptr %.sroa.23102.0..sroa_idx109, align 8
  br label %174

106:                                              ; preds = %53
  switch i32 %5, label %172 [
    i32 35, label %.preheader332
    i32 91, label %111
    i32 93, label %112
    i32 34, label %113
  ]

.preheader332:                                    ; preds = %106, %.preheader332
  %107 = tail call i32 @fgetc(ptr noundef nonnull %1)
  switch i32 %107, label %.preheader332 [
    i32 -1, label %108
    i32 10, label %108
  ]

108:                                              ; preds = %.preheader332, %.preheader332
  %109 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %110 = add i32 %109, 1
  store i32 %110, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  tail call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8 %0, ptr noundef nonnull %1)
  br label %174

111:                                              ; preds = %106
  store i32 4, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx111 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %.sroa.23102.0..sroa_idx111, align 8
  br label %174

112:                                              ; preds = %106
  store i32 5, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx113 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %.sroa.23102.0..sroa_idx113, align 8
  br label %174

113:                                              ; preds = %106
  %114 = tail call i32 @fgetc(ptr noundef nonnull %1)
  %115 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %116 = add i32 %115, 1
  store i32 %116, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %.not319351 = icmp eq i32 %114, 34
  br i1 %.not319351, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %113, %.lr.ph.backedge
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.backedge ], [ 0, %113 ]
  %.2296356 = phi i32 [ %152, %.lr.ph.backedge ], [ %114, %113 ]
  %.2304354 = phi ptr [ %.3305, %.lr.ph.backedge ], [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %113 ]
  %.2308353 = phi ptr [ %149, %.lr.ph.backedge ], [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %113 ]
  %.2312352 = phi i32 [ %.3313, %.lr.ph.backedge ], [ 1024, %113 ]
  %117 = add nsw i32 %.2312352, -8
  %118 = sext i32 %117 to i64
  %.not320 = icmp slt i64 %indvars.iv, %118
  br i1 %.not320, label %128, label %119

119:                                              ; preds = %.lr.ph
  store i8 0, ptr %.2308353, align 1, !tbaa !13
  %120 = shl nsw i32 %.2312352, 1
  %121 = sext i32 %120 to i64
  %122 = call noalias ptr @malloc(i64 noundef %121) #12
  %123 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %122, ptr noundef nonnull dereferenceable(1) %.2304354) #9
  %124 = icmp sgt i32 %.2312352, 1024
  br i1 %124, label %125, label %126

125:                                              ; preds = %119
  call void @free(ptr noundef %.2304354) #9
  br label %126

126:                                              ; preds = %125, %119
  %127 = getelementptr inbounds i8, ptr %122, i64 %indvars.iv
  br label %128

128:                                              ; preds = %126, %.lr.ph
  %.3313 = phi i32 [ %120, %126 ], [ %.2312352, %.lr.ph ]
  %.3309 = phi ptr [ %127, %126 ], [ %.2308353, %.lr.ph ]
  %.3305 = phi ptr [ %122, %126 ], [ %.2304354, %.lr.ph ]
  %129 = icmp eq i32 %.2296356, 38
  br i1 %129, label %.preheader333, label %147

.preheader333:                                    ; preds = %128, %138
  %.3 = phi i32 [ %139, %138 ], [ 38, %128 ]
  %.0 = phi i32 [ %.1, %138 ], [ 0, %128 ]
  switch i32 %.3, label %131 [
    i32 59, label %140
    i32 -1, label %.thread328
    i32 34, label %.thread328
  ]

.thread328:                                       ; preds = %.preheader333, %.preheader333
  %130 = call i32 @ungetc(i32 noundef %.3, ptr noundef nonnull %1)
  br label %147

131:                                              ; preds = %.preheader333
  %132 = icmp slt i32 %.0, 8
  br i1 %132, label %133, label %138

133:                                              ; preds = %131
  %134 = trunc i32 %.3 to i8
  %135 = sext i32 %.0 to i64
  %136 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 %135
  store i8 %134, ptr %136, align 1, !tbaa !13
  %137 = add nsw i32 %.0, 1
  br label %138

138:                                              ; preds = %133, %131
  %.1 = phi i32 [ %137, %133 ], [ %.0, %131 ]
  %139 = call i32 @fgetc(ptr noundef nonnull %1)
  br label %.preheader333, !llvm.loop !16

140:                                              ; preds = %.preheader333
  %141 = and i32 %.0, -9
  %.not322 = icmp eq i32 %141, 0
  br i1 %.not322, label %147, label %142

142:                                              ; preds = %140
  %143 = sext i32 %.0 to i64
  %144 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 %143
  store i8 59, ptr %144, align 1, !tbaa !13
  %145 = add nsw i32 %.0, 1
  %146 = call noundef i32 @_ZN3GTL14GML_search_ISOEPci(ptr noundef nonnull %3, i32 noundef %145)
  br label %147

147:                                              ; preds = %.thread328, %140, %142, %128
  %.4 = phi i32 [ %146, %142 ], [ %.2296356, %128 ], [ 38, %140 ], [ 38, %.thread328 ]
  %148 = trunc i32 %.4 to i8
  %149 = getelementptr inbounds i8, ptr %.3309, i64 1
  store i8 %148, ptr %.3309, align 1, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %150 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %151 = add i32 %150, 1
  store i32 %151, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %152 = call i32 @fgetc(ptr noundef nonnull %1)
  switch i32 %152, label %.lr.ph.backedge [
    i32 -1, label %153
    i32 10, label %161
    i32 34, label %._crit_edge.loopexit
  ]

.lr.ph.backedge:                                  ; preds = %147, %161
  br label %.lr.ph

153:                                              ; preds = %147
  %154 = trunc nuw i64 %indvars.iv.next to i32
  %155 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %156 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  %157 = add i32 %156, %154
  %158 = icmp sgt i32 %.3313, 1024
  br i1 %158, label %159, label %160

159:                                              ; preds = %153
  call void @free(ptr noundef %.3305) #9
  br label %160

160:                                              ; preds = %159, %153
  store i32 8, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx115 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.23102.sroa.22.0.insert.ext221 = zext i32 %155 to i64
  %.sroa.23102.sroa.22.0.insert.shift222 = shl nuw i64 %.sroa.23102.sroa.22.0.insert.ext221, 32
  %.sroa.23102.sroa.0.0.insert.insert181 = or disjoint i64 %.sroa.23102.sroa.22.0.insert.shift222, 2
  store i64 %.sroa.23102.sroa.0.0.insert.insert181, ptr %.sroa.23102.0..sroa_idx115, align 8
  %.sroa.37.0..sroa_idx137 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %157, ptr %.sroa.37.0..sroa_idx137, align 8
  br label %174

161:                                              ; preds = %147
  %162 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  %163 = add i32 %162, 1
  store i32 %163, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  store i32 1, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !5
  br label %.lr.ph.backedge

._crit_edge.loopexit:                             ; preds = %147
  %164 = add nuw i64 %indvars.iv, 2
  %165 = and i64 %164, 4294967295
  %166 = icmp sgt i32 %.3313, 1024
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %113
  %.2312.lcssa = phi i1 [ false, %113 ], [ %166, %._crit_edge.loopexit ]
  %.2308.lcssa = phi ptr [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %113 ], [ %149, %._crit_edge.loopexit ]
  %.2304.lcssa = phi ptr [ @_ZZN3GTL11GML_scannerEP8_IO_FILEE6buffer, %113 ], [ %.3305, %._crit_edge.loopexit ]
  %.2299.lcssa = phi i64 [ 1, %113 ], [ %165, %._crit_edge.loopexit ]
  store i8 0, ptr %.2308.lcssa, align 1, !tbaa !13
  %167 = call noalias ptr @malloc(i64 noundef %.2299.lcssa) #12
  %168 = ptrtoint ptr %167 to i64
  %169 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %167, ptr noundef nonnull dereferenceable(1) %.2304.lcssa) #9
  br i1 %.2312.lcssa, label %170, label %171

170:                                              ; preds = %._crit_edge
  call void @free(ptr noundef %.2304.lcssa) #9
  br label %171

171:                                              ; preds = %170, %._crit_edge
  store i32 3, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx117 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %168, ptr %.sroa.23102.0..sroa_idx117, align 8
  br label %174

172:                                              ; preds = %106
  %173 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !5
  store i32 8, ptr %0, align 8, !tbaa !9
  %.sroa.23102.0..sroa_idx119 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.23102.sroa.22.0.insert.ext229 = zext i32 %173 to i64
  %.sroa.23102.sroa.22.0.insert.shift230 = shl nuw i64 %.sroa.23102.sroa.22.0.insert.ext229, 32
  store i64 %.sroa.23102.sroa.22.0.insert.shift230, ptr %.sroa.23102.0..sroa_idx119, align 8
  %.sroa.37.0..sroa_idx141 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %13, ptr %.sroa.37.0..sroa_idx141, align 8
  br label %174

174:                                              ; preds = %172, %171, %160, %112, %111, %108, %105, %80, %52, %17, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret void
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @fgetc(ptr nocapture noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr nocapture noundef nonnull) local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

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

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN3GTL9GML_valueE", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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