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

; 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_pair" = type { ptr, i32, %"union.GTL::GML_pair_val", ptr }
%"union.GTL::GML_pair_val" = type { i64 }
%"struct.GTL::GML_stat" = type { %"struct.GTL::GML_error", ptr }
%"struct.GTL::GML_error" = type { i32, i32, i32 }
%"struct.GTL::GML_list_elem" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__._ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi = external hidden unnamed_addr constant [65 x i8], align 1
@_ZN3GTL8GML_lineE = external global i32, align 4
@_ZN3GTL10GML_columnE = external global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.GTL::GML_token", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.GTL::GML_token", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.GTL::GML_token", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %3
  br label %21

19:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28, ptr noundef @__PRETTY_FUNCTION__._ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi) #9
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = call noalias ptr @malloc(i64 noundef 32) #10
  store ptr %22, ptr %9, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %23, i32 0, i32 3
  store ptr null, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %25, ptr %10, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %308, %21
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8 %13, ptr noundef %27)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  %28 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = icmp eq i32 %29, 6
  br i1 %30, label %31, label %55

31:                                               ; preds = %26
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %54

34:                                               ; preds = %31
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.GTL::GML_error", ptr %36, i32 0, i32 0
  store i32 4, ptr %37, align 8, !tbaa !19
  %38 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %"struct.GTL::GML_error", ptr %40, i32 0, i32 1
  store i32 %38, ptr %41, align 4, !tbaa !23
  %42 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.GTL::GML_error", ptr %44, i32 0, i32 2
  store i32 %42, ptr %45, align 8, !tbaa !24
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %46) #8
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %34
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

50:                                               ; preds = %34
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %51, i32 0, i32 3
  store ptr null, ptr %52, align 8, !tbaa !11
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %53, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

54:                                               ; preds = %31
  br label %316

55:                                               ; preds = %26
  %56 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !17
  %58 = icmp eq i32 %57, 5
  br i1 %58, label %59, label %83

59:                                               ; preds = %55
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %82, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.GTL::GML_error", ptr %64, i32 0, i32 0
  store i32 5, ptr %65, align 8, !tbaa !19
  %66 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.GTL::GML_error", ptr %68, i32 0, i32 1
  store i32 %66, ptr %69, align 4, !tbaa !23
  %70 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %"struct.GTL::GML_error", ptr %72, i32 0, i32 2
  store i32 %70, ptr %73, align 8, !tbaa !24
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %74) #8
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %78

77:                                               ; preds = %62
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

78:                                               ; preds = %62
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %79, i32 0, i32 3
  store ptr null, ptr %80, align 8, !tbaa !11
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %81, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

82:                                               ; preds = %59
  br label %316

83:                                               ; preds = %55
  %84 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !17
  %86 = icmp eq i32 %85, 8
  br i1 %86, label %87, label %114

87:                                               ; preds = %83
  %88 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %89 = getelementptr inbounds %"struct.GTL::GML_error", ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !16
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"struct.GTL::GML_error", ptr %92, i32 0, i32 0
  store i32 %90, ptr %93, align 8, !tbaa !19
  %94 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %95 = getelementptr inbounds %"struct.GTL::GML_error", ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !16
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %"struct.GTL::GML_error", ptr %98, i32 0, i32 1
  store i32 %96, ptr %99, align 4, !tbaa !23
  %100 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.GTL::GML_error", ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 8, !tbaa !16
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %"struct.GTL::GML_error", ptr %104, i32 0, i32 2
  store i32 %102, ptr %105, align 8, !tbaa !24
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %106) #8
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %110

109:                                              ; preds = %87
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

110:                                              ; preds = %87
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %111, i32 0, i32 3
  store ptr null, ptr %112, align 8, !tbaa !11
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %113, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

114:                                              ; preds = %83
  %115 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !17
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %145

118:                                              ; preds = %114
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.GTL::GML_error", ptr %120, i32 0, i32 0
  store i32 1, ptr %121, align 8, !tbaa !19
  %122 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %"struct.GTL::GML_error", ptr %124, i32 0, i32 1
  store i32 %122, ptr %125, align 4, !tbaa !23
  %126 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %"struct.GTL::GML_error", ptr %128, i32 0, i32 2
  store i32 %126, ptr %129, align 8, !tbaa !24
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %130) #8
  %131 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !17
  %133 = icmp eq i32 %132, 3
  br i1 %133, label %134, label %137

134:                                              ; preds = %118
  %135 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !16
  call void @free(ptr noundef %136) #8
  br label %137

137:                                              ; preds = %134, %118
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

141:                                              ; preds = %137
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %142, i32 0, i32 3
  store ptr null, ptr %143, align 8, !tbaa !11
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %144, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

145:                                              ; preds = %114
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  %152 = icmp ne ptr %151, null
  br i1 %152, label %171, label %153

153:                                              ; preds = %148
  %154 = call noalias ptr @malloc(i64 noundef 16) #10
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %155, i32 0, i32 1
  store ptr %154, ptr %156, align 8, !tbaa !25
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %157, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !25
  %160 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %159, i32 0, i32 1
  store ptr null, ptr %160, align 8, !tbaa !26
  %161 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !16
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %163, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !25
  %166 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %165, i32 0, i32 0
  store ptr %162, ptr %166, align 8, !tbaa !28
  %167 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !16
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %169, i32 0, i32 0
  store ptr %168, ptr %170, align 8, !tbaa !29
  br label %220

171:                                              ; preds = %148
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %172, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !25
  store ptr %174, ptr %12, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %194, %171
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %198

178:                                              ; preds = %175
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !28
  %182 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !16
  %184 = call i32 @strcmp(ptr noundef %181, ptr noundef %183) #11
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %194, label %186

186:                                              ; preds = %178
  %187 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !16
  call void @free(ptr noundef %188) #8
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !28
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %192, i32 0, i32 0
  store ptr %191, ptr %193, align 8, !tbaa !29
  br label %198

194:                                              ; preds = %178
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %195, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !26
  store ptr %197, ptr %12, align 8, !tbaa !5
  br label %175, !llvm.loop !30

198:                                              ; preds = %186, %175
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %219, label %201

201:                                              ; preds = %198
  %202 = call noalias ptr @malloc(i64 noundef 16) #10
  store ptr %202, ptr %12, align 8, !tbaa !5
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %203, i32 0, i32 1
  %205 = load ptr, ptr %204, align 8, !tbaa !25
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %206, i32 0, i32 1
  store ptr %205, ptr %207, align 8, !tbaa !26
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %209, i32 0, i32 1
  store ptr %208, ptr %210, align 8, !tbaa !25
  %211 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !16
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.GTL::GML_list_elem", ptr %213, i32 0, i32 0
  store ptr %212, ptr %214, align 8, !tbaa !28
  %215 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !16
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %217, i32 0, i32 0
  store ptr %216, ptr %218, align 8, !tbaa !29
  br label %219

219:                                              ; preds = %201, %198
  br label %220

220:                                              ; preds = %219, %153
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8 %15, ptr noundef %221)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  %222 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 0
  %223 = load i32, ptr %222, align 8, !tbaa !17
  switch i32 %223, label %288 [
    i32 1, label %224
    i32 2, label %231
    i32 3, label %238
    i32 4, label %245
    i32 8, label %261
  ]

224:                                              ; preds = %220
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %225, i32 0, i32 1
  store i32 1, ptr %226, align 8, !tbaa !32
  %227 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %228 = load i64, ptr %227, align 8, !tbaa !16
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %229, i32 0, i32 2
  store i64 %228, ptr %230, align 8, !tbaa !16
  br label %308

231:                                              ; preds = %220
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %232, i32 0, i32 1
  store i32 2, ptr %233, align 8, !tbaa !32
  %234 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %235 = load double, ptr %234, align 8, !tbaa !16
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %236, i32 0, i32 2
  store double %235, ptr %237, align 8, !tbaa !16
  br label %308

238:                                              ; preds = %220
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %239, i32 0, i32 1
  store i32 3, ptr %240, align 8, !tbaa !32
  %241 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %242 = load ptr, ptr %241, align 8, !tbaa !16
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %243, i32 0, i32 2
  store ptr %242, ptr %244, align 8, !tbaa !16
  br label %308

245:                                              ; preds = %220
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %246, i32 0, i32 1
  store i32 7, ptr %247, align 8, !tbaa !32
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = call noundef ptr @_ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi(ptr noundef %248, ptr noundef %249, i32 noundef 1)
  %251 = load ptr, ptr %9, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %251, i32 0, i32 2
  store ptr %250, ptr %252, align 8, !tbaa !16
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %"struct.GTL::GML_error", ptr %254, i32 0, i32 0
  %256 = load i32, ptr %255, align 8, !tbaa !19
  %257 = icmp ne i32 %256, 6
  br i1 %257, label %258, label %260

258:                                              ; preds = %245
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %259, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

260:                                              ; preds = %245
  br label %308

261:                                              ; preds = %220
  %262 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %263 = getelementptr inbounds %"struct.GTL::GML_error", ptr %262, i32 0, i32 0
  %264 = load i32, ptr %263, align 8, !tbaa !16
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds %"struct.GTL::GML_error", ptr %266, i32 0, i32 0
  store i32 %264, ptr %267, align 8, !tbaa !19
  %268 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %269 = getelementptr inbounds %"struct.GTL::GML_error", ptr %268, i32 0, i32 1
  %270 = load i32, ptr %269, align 4, !tbaa !16
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds %"struct.GTL::GML_error", ptr %272, i32 0, i32 1
  store i32 %270, ptr %273, align 4, !tbaa !23
  %274 = getelementptr inbounds %"struct.GTL::GML_token", ptr %8, i32 0, i32 1
  %275 = getelementptr inbounds %"struct.GTL::GML_error", ptr %274, i32 0, i32 2
  %276 = load i32, ptr %275, align 8, !tbaa !16
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds %"struct.GTL::GML_error", ptr %278, i32 0, i32 2
  store i32 %276, ptr %279, align 8, !tbaa !24
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %280) #8
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = icmp eq ptr %281, null
  br i1 %282, label %283, label %284

283:                                              ; preds = %261
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

284:                                              ; preds = %261
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %285, i32 0, i32 3
  store ptr null, ptr %286, align 8, !tbaa !11
  %287 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %287, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

288:                                              ; preds = %220
  %289 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !9
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds %"struct.GTL::GML_error", ptr %291, i32 0, i32 1
  store i32 %289, ptr %292, align 4, !tbaa !23
  %293 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !9
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %294, i32 0, i32 0
  %296 = getelementptr inbounds %"struct.GTL::GML_error", ptr %295, i32 0, i32 2
  store i32 %293, ptr %296, align 8, !tbaa !24
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %297, i32 0, i32 0
  %299 = getelementptr inbounds %"struct.GTL::GML_error", ptr %298, i32 0, i32 0
  store i32 1, ptr %299, align 8, !tbaa !19
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %300) #8
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = icmp eq ptr %301, null
  br i1 %302, label %303, label %304

303:                                              ; preds = %288
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

304:                                              ; preds = %288
  %305 = load ptr, ptr %11, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %305, i32 0, i32 3
  store ptr null, ptr %306, align 8, !tbaa !11
  %307 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %307, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

308:                                              ; preds = %260, %238, %231, %224
  %309 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %309, ptr %11, align 8, !tbaa !5
  %310 = call noalias ptr @malloc(i64 noundef 32) #10
  store ptr %310, ptr %9, align 8, !tbaa !5
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = load ptr, ptr %11, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %312, i32 0, i32 3
  store ptr %311, ptr %313, align 8, !tbaa !11
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %314, i32 0, i32 3
  store ptr null, ptr %315, align 8, !tbaa !11
  br label %26, !llvm.loop !33

316:                                              ; preds = %82, %54
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.GTL::GML_stat", ptr %317, i32 0, i32 0
  %319 = getelementptr inbounds %"struct.GTL::GML_error", ptr %318, i32 0, i32 0
  store i32 6, ptr %319, align 8, !tbaa !19
  %320 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %320) #8
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = icmp eq ptr %321, null
  br i1 %322, label %323, label %324

323:                                              ; preds = %316
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

324:                                              ; preds = %316
  %325 = load ptr, ptr %11, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.GTL::GML_pair", ptr %325, i32 0, i32 3
  store ptr null, ptr %326, align 8, !tbaa !11
  %327 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %327, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %328

328:                                              ; preds = %324, %323, %304, %303, %284, %283, %258, %141, %140, %110, %109, %78, %77, %50, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  %329 = load ptr, ptr %4, align 8
  ret ptr %329
}

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

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

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

declare void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 #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 "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN3GTL8GML_pairE", !6, i64 0, !13, i64 8, !7, i64 16, !6, i64 24}
!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 = !{!18, !13, i64 0}
!18 = !{!"_ZTSN3GTL9GML_tokenE", !13, i64 0, !7, i64 8}
!19 = !{!20, !22, i64 0}
!20 = !{!"_ZTSN3GTL8GML_statE", !21, i64 0, !6, i64 16}
!21 = !{!"_ZTSN3GTL9GML_errorE", !22, i64 0, !10, i64 4, !10, i64 8}
!22 = !{!"_ZTSN3GTL15GML_error_valueE", !7, i64 0}
!23 = !{!20, !10, i64 4}
!24 = !{!20, !10, i64 8}
!25 = !{!20, !6, i64 16}
!26 = !{!27, !6, i64 8}
!27 = !{!"_ZTSN3GTL13GML_list_elemE", !6, i64 0, !6, i64 8}
!28 = !{!27, !6, i64 0}
!29 = !{!12, !6, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!12, !13, i64 8}
!33 = distinct !{!33, !31}


; 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] }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__._ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi = external hidden unnamed_addr constant [65 x i8], align 1
@_ZN3GTL8GML_lineE = external local_unnamed_addr global i32, align 4
@_ZN3GTL10GML_columnE = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %"struct.GTL::GML_token", align 8
  %5 = alloca %"struct.GTL::GML_token", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 28, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi) #7
  unreachable

7:                                                ; preds = %3
  %8 = tail call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #8
  %9 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr null, ptr %9, align 8, !tbaa !5
  %.sroa.1062.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 16
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.1062.0..sroa_idx63 = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.24.0..sroa_idx78 = getelementptr inbounds i8, ptr %5, i64 16
  br label %11

11:                                               ; preds = %83, %7
  %.0185 = phi ptr [ %8, %7 ], [ %84, %83 ]
  %.0183 = phi ptr [ null, %7 ], [ %.0185, %83 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind nonnull writable sret(%"struct.GTL::GML_token") align 8 %4, ptr noundef %0)
  %.sroa.0.0.copyload = load i32, ptr %4, align 8, !tbaa !11
  %.sroa.1062.0.copyload = load i64, ptr %.sroa.1062.0..sroa_idx, align 8
  %.sroa.24.0.copyload = load i32, ptr %.sroa.24.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  switch i32 %.sroa.0.0.copyload, label %30 [
    i32 6, label %12
    i32 5, label %19
    i32 8, label %26
    i32 0, label %40
  ]

12:                                               ; preds = %11
  %.not194 = icmp eq i32 %2, 0
  br i1 %.not194, label %87, label %13

13:                                               ; preds = %12
  store i32 4, ptr %1, align 8, !tbaa !12
  %14 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %14, ptr %15, align 4, !tbaa !18
  %16 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %16, ptr %17, align 8, !tbaa !19
  call void @free(ptr noundef nonnull %.0185) #9
  %18 = icmp eq ptr %.0183, null
  br i1 %18, label %.loopexit, label %.loopexit.sink.split

19:                                               ; preds = %11
  %.not193 = icmp eq i32 %2, 0
  br i1 %.not193, label %20, label %87

20:                                               ; preds = %19
  store i32 5, ptr %1, align 8, !tbaa !12
  %21 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %21, ptr %22, align 4, !tbaa !18
  %23 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %23, ptr %24, align 8, !tbaa !19
  call void @free(ptr noundef nonnull %.0185) #9
  %25 = icmp eq ptr %.0183, null
  br i1 %25, label %.loopexit, label %.loopexit.sink.split

26:                                               ; preds = %11
  %.sroa.1062.sroa.16.0.extract.shift = lshr i64 %.sroa.1062.0.copyload, 32
  %.sroa.1062.sroa.16.0.extract.trunc = trunc nuw i64 %.sroa.1062.sroa.16.0.extract.shift to i32
  %.sroa.1062.sroa.0.0.extract.trunc = trunc i64 %.sroa.1062.0.copyload to i32
  store i32 %.sroa.1062.sroa.0.0.extract.trunc, ptr %1, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %.sroa.1062.sroa.16.0.extract.trunc, ptr %27, align 4, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %.sroa.24.0.copyload, ptr %28, align 8, !tbaa !19
  call void @free(ptr noundef nonnull %.0185) #9
  %29 = icmp eq ptr %.0183, null
  br i1 %29, label %.loopexit, label %.loopexit.sink.split

30:                                               ; preds = %11
  store i32 1, ptr %1, align 8, !tbaa !12
  %31 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %31, ptr %32, align 4, !tbaa !18
  %33 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %33, ptr %34, align 8, !tbaa !19
  call void @free(ptr noundef nonnull %.0185) #9
  %35 = icmp eq i32 %.sroa.0.0.copyload, 3
  br i1 %35, label %36, label %38

36:                                               ; preds = %30
  %37 = inttoptr i64 %.sroa.1062.0.copyload to ptr
  call void @free(ptr noundef %37) #9
  br label %38

38:                                               ; preds = %36, %30
  %39 = icmp eq ptr %.0183, null
  br i1 %39, label %.loopexit, label %.loopexit.sink.split

40:                                               ; preds = %11
  %41 = load ptr, ptr %10, align 8, !tbaa !20
  %.not189 = icmp eq ptr %41, null
  br i1 %.not189, label %43, label %.preheader

.preheader:                                       ; preds = %40
  %42 = inttoptr i64 %.sroa.1062.0.copyload to ptr
  br label %47

43:                                               ; preds = %40
  %44 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #8
  store ptr %44, ptr %10, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr null, ptr %45, align 8, !tbaa !21
  %46 = inttoptr i64 %.sroa.1062.0.copyload to ptr
  store ptr %46, ptr %44, align 8, !tbaa !23
  br label %57

47:                                               ; preds = %.preheader, %52
  %.0232 = phi ptr [ %41, %.preheader ], [ %54, %52 ]
  %48 = load ptr, ptr %.0232, align 8, !tbaa !23
  %49 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %48, ptr noundef nonnull dereferenceable(1) %42) #10
  %.not191 = icmp eq i32 %49, 0
  br i1 %.not191, label %50, label %52

50:                                               ; preds = %47
  call void @free(ptr noundef %42) #9
  %51 = load ptr, ptr %.0232, align 8, !tbaa !23
  br label %57

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %.0232, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %.not190 = icmp eq ptr %54, null
  br i1 %.not190, label %.critedge, label %47, !llvm.loop !24

.critedge:                                        ; preds = %52
  %55 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #8
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  store ptr %41, ptr %56, align 8, !tbaa !21
  store ptr %55, ptr %10, align 8, !tbaa !20
  store ptr %42, ptr %55, align 8, !tbaa !23
  br label %57

57:                                               ; preds = %50, %.critedge, %43
  %.sink = phi ptr [ %51, %50 ], [ %42, %.critedge ], [ %46, %43 ]
  store ptr %.sink, ptr %.0185, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind nonnull writable sret(%"struct.GTL::GML_token") align 8 %5, ptr noundef %0)
  %.sroa.0.0.copyload59 = load i32, ptr %5, align 8, !tbaa !11
  %.sroa.1062.0.copyload64 = load i64, ptr %.sroa.1062.0..sroa_idx63, align 8
  %.sroa.24.0.copyload79 = load i32, ptr %.sroa.24.0..sroa_idx78, align 8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  switch i32 %.sroa.0.0.copyload59, label %77 [
    i32 1, label %58
    i32 2, label %61
    i32 3, label %64
    i32 4, label %68
    i32 8, label %73
  ]

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %.0185, i64 8
  store i32 1, ptr %59, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %.0185, i64 16
  store i64 %.sroa.1062.0.copyload64, ptr %60, align 8, !tbaa !28
  br label %83

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %.0185, i64 8
  store i32 2, ptr %62, align 8, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %.0185, i64 16
  store i64 %.sroa.1062.0.copyload64, ptr %63, align 8, !tbaa !28
  br label %83

64:                                               ; preds = %57
  %65 = getelementptr inbounds i8, ptr %.0185, i64 8
  store i32 3, ptr %65, align 8, !tbaa !27
  %66 = inttoptr i64 %.sroa.1062.0.copyload64 to ptr
  %67 = getelementptr inbounds i8, ptr %.0185, i64 16
  store ptr %66, ptr %67, align 8, !tbaa !28
  br label %83

68:                                               ; preds = %57
  %69 = getelementptr inbounds i8, ptr %.0185, i64 8
  store i32 7, ptr %69, align 8, !tbaa !27
  %70 = call noundef ptr @_ZN3GTL10GML_parserEP8_IO_FILEPNS_8GML_statEi(ptr noundef %0, ptr noundef %1, i32 noundef 1)
  %71 = getelementptr inbounds i8, ptr %.0185, i64 16
  store ptr %70, ptr %71, align 8, !tbaa !28
  %72 = load i32, ptr %1, align 8, !tbaa !12
  %.not192 = icmp eq i32 %72, 6
  br i1 %.not192, label %83, label %.loopexit

73:                                               ; preds = %57
  %.sroa.1062.sroa.0.0.extract.trunc83 = trunc i64 %.sroa.1062.0.copyload64 to i32
  %.sroa.1062.sroa.16.0.extract.shift111 = lshr i64 %.sroa.1062.0.copyload64, 32
  %.sroa.1062.sroa.16.0.extract.trunc112 = trunc nuw i64 %.sroa.1062.sroa.16.0.extract.shift111 to i32
  store i32 %.sroa.1062.sroa.0.0.extract.trunc83, ptr %1, align 8, !tbaa !12
  %74 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %.sroa.1062.sroa.16.0.extract.trunc112, ptr %74, align 4, !tbaa !18
  %75 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %.sroa.24.0.copyload79, ptr %75, align 8, !tbaa !19
  call void @free(ptr noundef nonnull %.0185) #9
  %76 = icmp eq ptr %.0183, null
  br i1 %76, label %.loopexit, label %.loopexit.sink.split

77:                                               ; preds = %57
  %78 = load i32, ptr @_ZN3GTL8GML_lineE, align 4, !tbaa !17
  %79 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %78, ptr %79, align 4, !tbaa !18
  %80 = load i32, ptr @_ZN3GTL10GML_columnE, align 4, !tbaa !17
  %81 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %80, ptr %81, align 8, !tbaa !19
  store i32 1, ptr %1, align 8, !tbaa !12
  call void @free(ptr noundef nonnull %.0185) #9
  %82 = icmp eq ptr %.0183, null
  br i1 %82, label %.loopexit, label %.loopexit.sink.split

83:                                               ; preds = %68, %64, %61, %58
  %84 = call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #8
  %85 = getelementptr inbounds i8, ptr %.0185, i64 24
  store ptr %84, ptr %85, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %84, i64 24
  store ptr null, ptr %86, align 8, !tbaa !5
  br label %11, !llvm.loop !29

87:                                               ; preds = %19, %12
  store i32 6, ptr %1, align 8, !tbaa !12
  call void @free(ptr noundef nonnull %.0185) #9
  %88 = icmp eq ptr %.0183, null
  br i1 %88, label %.loopexit, label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %87, %77, %73, %38, %26, %20, %13
  %89 = getelementptr inbounds i8, ptr %.0183, i64 24
  store ptr null, ptr %89, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %68, %.loopexit.sink.split, %87, %77, %73, %38, %26, %20, %13
  %.0184 = phi ptr [ null, %13 ], [ null, %20 ], [ null, %26 ], [ null, %38 ], [ null, %73 ], [ null, %77 ], [ null, %87 ], [ %8, %.loopexit.sink.split ], [ %8, %68 ]
  ret ptr %.0184
}

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

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

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

declare void @_ZN3GTL11GML_scannerEP8_IO_FILE(ptr dead_on_unwind writable sret(%"struct.GTL::GML_token") align 8, ptr noundef) local_unnamed_addr #4

; 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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #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 = { 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 #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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 24}
!6 = !{!"_ZTSN3GTL8GML_pairE", !7, i64 0, !10, i64 8, !8, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3GTL9GML_valueE", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !15, i64 0}
!13 = !{!"_ZTSN3GTL8GML_statE", !14, i64 0, !7, i64 16}
!14 = !{!"_ZTSN3GTL9GML_errorE", !15, i64 0, !16, i64 4, !16, i64 8}
!15 = !{!"_ZTSN3GTL15GML_error_valueE", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!13, !16, i64 4}
!19 = !{!13, !16, i64 8}
!20 = !{!13, !7, i64 16}
!21 = !{!22, !7, i64 8}
!22 = !{!"_ZTSN3GTL13GML_list_elemE", !7, i64 0, !7, i64 8}
!23 = !{!22, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !7, i64 0}
!27 = !{!6, !10, i64 8}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !25}


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