; LLVM IR from musetronstar/tagd :: tagl/src (lemon)

; 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.lemon = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr }
%struct.state = type { ptr, ptr, i32, ptr, i32, i32, i32, i32, i32, ptr, i32 }
%struct.config = type { ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr }
%struct.rule = type { ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.action = type { ptr, i32, %union.anon, ptr, ptr, ptr }
%union.anon = type { ptr }
%struct.symbol = type { ptr, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, ptr, i32, ptr, i32, i32, i32, ptr }

@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @ReportOutput(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca [20 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = call ptr @file_open(ptr noundef %16, ptr noundef @.str.110, ptr noundef @.str.111)
  store ptr %17, ptr %9, align 8, !tbaa !5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %1
  store i32 1, ptr %10, align 4
  br label %343

21:                                               ; preds = %1
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %124, %21
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.lemon, ptr %24, i32 0, i32 4
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = icmp slt i32 %23, %26
  br i1 %27, label %28, label %127

28:                                               ; preds = %22
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.lemon, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %31, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %35, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.state, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !14
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.112, i32 noundef %39) #5
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.lemon, ptr %41, i32 0, i32 41
  %43 = load i32, ptr %42, align 8, !tbaa !16
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %28
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.state, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  store ptr %48, ptr %6, align 8, !tbaa !5
  br label %53

49:                                               ; preds = %28
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.state, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  store ptr %52, ptr %6, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %49, %45
  br label %54

54:                                               ; preds = %98, %53
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %99

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 20, ptr %11) #5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.config, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !19
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.config, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  %64 = getelementptr inbounds %struct.rule, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !22
  %66 = icmp eq i32 %60, %65
  br i1 %66, label %67, label %78

67:                                               ; preds = %57
  %68 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.config, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = getelementptr inbounds %struct.rule, ptr %71, i32 0, i32 13
  %73 = load i32, ptr %72, align 4, !tbaa !24
  %74 = call i32 (ptr, ptr, ...) @lemon_sprintf(ptr noundef %68, ptr noundef @.str.113, i32 noundef %73)
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.114, ptr noundef %76) #5
  br label %81

78:                                               ; preds = %57
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.115) #5
  br label %81

81:                                               ; preds = %78, %67
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  call void @ConfigPrint(ptr noundef %82, ptr noundef %83)
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.15) #5
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.lemon, ptr %86, i32 0, i32 41
  %88 = load i32, ptr %87, align 8, !tbaa !16
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %81
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.config, ptr %91, i32 0, i32 8
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  store ptr %93, ptr %6, align 8, !tbaa !5
  br label %98

94:                                               ; preds = %81
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.config, ptr %95, i32 0, i32 7
  %97 = load ptr, ptr %96, align 8, !tbaa !26
  store ptr %97, ptr %6, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 20, ptr %11) #5
  br label %54, !llvm.loop !27

99:                                               ; preds = %54
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.15) #5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.state, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !29
  store ptr %104, ptr %7, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %117, %99
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %121

108:                                              ; preds = %105
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = call i32 @PrintAction(ptr noundef %109, ptr noundef %110, i32 noundef 30)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %116

113:                                              ; preds = %108
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.15) #5
  br label %116

116:                                              ; preds = %113, %108
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.action, ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !30
  store ptr %120, ptr %7, align 8, !tbaa !5
  br label %105, !llvm.loop !32

121:                                              ; preds = %105
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.15) #5
  br label %124

124:                                              ; preds = %121
  %125 = load i32, ptr %3, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %3, align 4, !tbaa !9
  br label %22, !llvm.loop !33

127:                                              ; preds = %22
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.116) #5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.117) #5
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.118) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %221, %127
  %135 = load i32, ptr %3, align 4, !tbaa !9
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.lemon, ptr %136, i32 0, i32 7
  %138 = load i32, ptr %137, align 8, !tbaa !34
  %139 = icmp slt i32 %135, %138
  br i1 %139, label %140, label %224

140:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.lemon, ptr %141, i32 0, i32 15
  %143 = load ptr, ptr %142, align 8, !tbaa !35
  %144 = load i32, ptr %3, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  store ptr %147, ptr %13, align 8, !tbaa !5
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load i32, ptr %3, align 4, !tbaa !9
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.symbol, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !36
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.119, i32 noundef %149, ptr noundef %152) #5
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.symbol, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !38
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %207

158:                                              ; preds = %140
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.120) #5
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.symbol, ptr %161, i32 0, i32 8
  %163 = load i32, ptr %162, align 8, !tbaa !39
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %168

165:                                              ; preds = %158
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.121) #5
  br label %168

168:                                              ; preds = %165, %158
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %203, %168
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.lemon, ptr %171, i32 0, i32 8
  %173 = load i32, ptr %172, align 4, !tbaa !40
  %174 = icmp slt i32 %170, %173
  br i1 %174, label %175, label %206

175:                                              ; preds = %169
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.symbol, ptr %176, i32 0, i32 7
  %178 = load ptr, ptr %177, align 8, !tbaa !41
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %202

180:                                              ; preds = %175
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.symbol, ptr %181, i32 0, i32 7
  %183 = load ptr, ptr %182, align 8, !tbaa !41
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i8, ptr %183, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !42
  %188 = sext i8 %187 to i32
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %202

190:                                              ; preds = %180
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.lemon, ptr %192, i32 0, i32 15
  %194 = load ptr, ptr %193, align 8, !tbaa !35
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.symbol, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !36
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.90, ptr noundef %200) #5
  br label %202

202:                                              ; preds = %190, %180, %175
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %12, align 4, !tbaa !9
  br label %169, !llvm.loop !43

206:                                              ; preds = %169
  br label %207

207:                                              ; preds = %206, %140
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.symbol, ptr %208, i32 0, i32 5
  %210 = load i32, ptr %209, align 8, !tbaa !44
  %211 = icmp sge i32 %210, 0
  br i1 %211, label %212, label %218

212:                                              ; preds = %207
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.symbol, ptr %214, i32 0, i32 5
  %216 = load i32, ptr %215, align 8, !tbaa !44
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.122, i32 noundef %216) #5
  br label %218

218:                                              ; preds = %212, %207
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %221

221:                                              ; preds = %218
  %222 = load i32, ptr %3, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %3, align 4, !tbaa !9
  br label %134, !llvm.loop !45

224:                                              ; preds = %134
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.116) #5
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.123) #5
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.124) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %286, %224
  %232 = load i32, ptr %3, align 4, !tbaa !9
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.lemon, ptr %233, i32 0, i32 7
  %235 = load i32, ptr %234, align 8, !tbaa !34
  %236 = icmp slt i32 %232, %235
  br i1 %236, label %237, label %289

237:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.lemon, ptr %238, i32 0, i32 15
  %240 = load ptr, ptr %239, align 8, !tbaa !35
  %241 = load i32, ptr %3, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds ptr, ptr %240, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %244, ptr %15, align 8, !tbaa !5
  %245 = load ptr, ptr %15, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.symbol, ptr %245, i32 0, i32 14
  %247 = load i32, ptr %246, align 4, !tbaa !46
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %250

249:                                              ; preds = %237
  store i32 18, ptr %10, align 4
  br label %283

250:                                              ; preds = %237
  %251 = load ptr, ptr %15, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.symbol, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !36
  %254 = call i64 @strlen(ptr noundef %253) #6
  %255 = trunc i64 %254 to i32
  store i32 %255, ptr %14, align 4, !tbaa !9
  %256 = load i32, ptr %4, align 4, !tbaa !9
  %257 = icmp sgt i32 %256, 0
  br i1 %257, label %258, label %266

258:                                              ; preds = %250
  %259 = load i32, ptr %4, align 4, !tbaa !9
  %260 = load i32, ptr %14, align 4, !tbaa !9
  %261 = add nsw i32 %259, %260
  %262 = icmp sgt i32 %261, 75
  br i1 %262, label %263, label %266

263:                                              ; preds = %258
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.15) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %263, %258, %250
  %267 = load i32, ptr %4, align 4, !tbaa !9
  %268 = icmp sgt i32 %267, 0
  br i1 %268, label %269, label %274

269:                                              ; preds = %266
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.125) #5
  %272 = load i32, ptr %4, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %4, align 4, !tbaa !9
  br label %274

274:                                              ; preds = %269, %266
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  %276 = load ptr, ptr %15, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.symbol, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !36
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef @.str.88, ptr noundef %278) #5
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %4, align 4, !tbaa !9
  %282 = add nsw i32 %281, %280
  store i32 %282, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %283

283:                                              ; preds = %274, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %284 = load i32, ptr %10, align 4
  switch i32 %284, label %344 [
    i32 0, label %285
    i32 18, label %286
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %283
  %287 = load i32, ptr %3, align 4, !tbaa !9
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %3, align 4, !tbaa !9
  br label %231, !llvm.loop !47

289:                                              ; preds = %231
  %290 = load i32, ptr %4, align 4, !tbaa !9
  %291 = icmp sgt i32 %290, 0
  br i1 %291, label %292, label %295

292:                                              ; preds = %289
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.15) #5
  br label %295

295:                                              ; preds = %292, %289
  %296 = load ptr, ptr %9, align 8, !tbaa !5
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef @.str.116) #5
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.126) #5
  %300 = load ptr, ptr %2, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.lemon, ptr %300, i32 0, i32 1
  %302 = load ptr, ptr %301, align 8, !tbaa !48
  store ptr %302, ptr %8, align 8, !tbaa !5
  br label %303

303:                                              ; preds = %336, %295
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %340

306:                                              ; preds = %303
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.rule, ptr %308, i32 0, i32 13
  %310 = load i32, ptr %309, align 4, !tbaa !24
  %311 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.127, i32 noundef %310) #5
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  call void @rule_print(ptr noundef %312, ptr noundef %313)
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %314, ptr noundef @.str.96) #5
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.rule, ptr %316, i32 0, i32 11
  %318 = load ptr, ptr %317, align 8, !tbaa !49
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %333

320:                                              ; preds = %306
  %321 = load ptr, ptr %9, align 8, !tbaa !5
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.rule, ptr %322, i32 0, i32 11
  %324 = load ptr, ptr %323, align 8, !tbaa !49
  %325 = getelementptr inbounds %struct.symbol, ptr %324, i32 0, i32 0
  %326 = load ptr, ptr %325, align 8, !tbaa !36
  %327 = load ptr, ptr %8, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.rule, ptr %327, i32 0, i32 11
  %329 = load ptr, ptr %328, align 8, !tbaa !49
  %330 = getelementptr inbounds %struct.symbol, ptr %329, i32 0, i32 5
  %331 = load i32, ptr %330, align 8, !tbaa !44
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.128, ptr noundef %326, i32 noundef %331) #5
  br label %333

333:                                              ; preds = %320, %306
  %334 = load ptr, ptr %9, align 8, !tbaa !5
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.15) #5
  br label %336

336:                                              ; preds = %333
  %337 = load ptr, ptr %8, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.rule, ptr %337, i32 0, i32 20
  %339 = load ptr, ptr %338, align 8, !tbaa !50
  store ptr %339, ptr %8, align 8, !tbaa !5
  br label %303, !llvm.loop !51

340:                                              ; preds = %303
  %341 = load ptr, ptr %9, align 8, !tbaa !5
  %342 = call i32 @fclose(ptr noundef %341)
  store i32 1, ptr %10, align 4
  br label %343

343:                                              ; preds = %340, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

344:                                              ; preds = %283
  unreachable
}

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

declare i32 @fclose(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_open(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @rule_print(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @ConfigPrint(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @PrintAction(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @lemon_sprintf(ptr noundef, ptr noundef, ...) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"lemon", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !6, i64 280}
!13 = !{!12, !6, i64 0}
!14 = !{!15, !10, i64 16}
!15 = !{!"state", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !6, i64 56, !10, i64 64}
!16 = !{!12, !10, i64 264}
!17 = !{!15, !6, i64 0}
!18 = !{!15, !6, i64 8}
!19 = !{!20, !10, i64 8}
!20 = !{!"config", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64}
!21 = !{!20, !6, i64 0}
!22 = !{!23, !10, i64 24}
!23 = !{!"rule", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !6, i64 120, !6, i64 128}
!24 = !{!23, !10, i64 92}
!25 = !{!20, !6, i64 64}
!26 = !{!20, !6, i64 56}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!15, !6, i64 24}
!30 = !{!31, !6, i64 32}
!31 = !{!"action", !6, i64 0, !10, i64 8, !7, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = !{!12, !10, i64 40}
!35 = !{!12, !6, i64 72}
!36 = !{!37, !6, i64 0}
!37 = !{!"symbol", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !10, i64 48, !10, i64 52, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96}
!38 = !{!37, !10, i64 12}
!39 = !{!37, !10, i64 48}
!40 = !{!12, !10, i64 44}
!41 = !{!37, !6, i64 40}
!42 = !{!7, !7, i64 0}
!43 = distinct !{!43, !28}
!44 = !{!37, !10, i64 32}
!45 = distinct !{!45, !28}
!46 = !{!37, !10, i64 84}
!47 = distinct !{!47, !28}
!48 = !{!12, !6, i64 8}
!49 = !{!23, !6, i64 80}
!50 = !{!23, !6, i64 128}
!51 = distinct !{!51, !28}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @ReportOutput(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca [20 x i8], align 16
  %3 = tail call ptr @file_open(ptr noundef %0, ptr noundef nonnull @.str.110, ptr noundef nonnull @.str.111)
  %4 = icmp eq ptr %3, null
  br i1 %4, label %153, label %.preheader

.preheader:                                       ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 28
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %.preheader
  %8 = getelementptr inbounds i8, ptr %0, i64 264
  br label %9

9:                                                ; preds = %.lr.ph132, %._crit_edge130
  %indvars.iv = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next, %._crit_edge130 ]
  %10 = load ptr, ptr %0, align 8, !tbaa !11
  %11 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load i32, ptr %13, align 8, !tbaa !13
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.112, i32 noundef %14) #4
  %16 = load i32, ptr %8, align 8, !tbaa !15
  %.not116 = icmp eq i32 %16, 0
  %.0101.in.idx = select i1 %.not116, i64 8, i64 0
  %.0101.in = getelementptr inbounds i8, ptr %12, i64 %.0101.in.idx
  %.0101 = load ptr, ptr %.0101.in, align 8, !tbaa !12
  %.not117123 = icmp eq ptr %.0101, null
  br i1 %.not117123, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %30
  %.1102124 = phi ptr [ %.2103, %30 ], [ %.0101, %9 ]
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #4
  %17 = getelementptr inbounds i8, ptr %.1102124, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !16
  %19 = load ptr, ptr %.1102124, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load i32, ptr %20, align 8, !tbaa !19
  %22 = icmp eq i32 %18, %21
  br i1 %22, label %23, label %28

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %19, i64 92
  %25 = load i32, ptr %24, align 4, !tbaa !21
  %26 = call i32 (ptr, ptr, ...) @lemon_sprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.113, i32 noundef %25)
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.114, ptr noundef nonnull %2) #4
  br label %30

28:                                               ; preds = %.lr.ph
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.115) #4
  br label %30

30:                                               ; preds = %28, %23
  call void @ConfigPrint(ptr noundef %3, ptr noundef nonnull %.1102124)
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  %32 = load i32, ptr %8, align 8, !tbaa !15
  %.not120 = icmp eq i32 %32, 0
  %.2103.in.v = select i1 %.not120, i64 56, i64 64
  %.2103.in = getelementptr inbounds i8, ptr %.1102124, i64 %.2103.in.v
  %.2103 = load ptr, ptr %.2103.in, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #4
  %.not117 = icmp eq ptr %.2103, null
  br i1 %.not117, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %30, %9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  %34 = getelementptr inbounds i8, ptr %12, i64 24
  %.0105125 = load ptr, ptr %34, align 8, !tbaa !12
  %.not118126 = icmp eq ptr %.0105125, null
  br i1 %.not118126, label %._crit_edge130, label %.lr.ph129

.lr.ph129:                                        ; preds = %._crit_edge, %38
  %.0105127 = phi ptr [ %.0105, %38 ], [ %.0105125, %._crit_edge ]
  %35 = call i32 @PrintAction(ptr noundef nonnull %.0105127, ptr noundef %3, i32 noundef 30)
  %.not119 = icmp eq i32 %35, 0
  br i1 %.not119, label %38, label %36

36:                                               ; preds = %.lr.ph129
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  br label %38

38:                                               ; preds = %.lr.ph129, %36
  %39 = getelementptr inbounds i8, ptr %.0105127, i64 32
  %.0105 = load ptr, ptr %39, align 8, !tbaa !12
  %.not118 = icmp eq ptr %.0105, null
  br i1 %.not118, label %._crit_edge130, label %.lr.ph129, !llvm.loop !24

._crit_edge130:                                   ; preds = %38, %._crit_edge
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %9, label %._crit_edge133, !llvm.loop !25

._crit_edge133:                                   ; preds = %._crit_edge130, %.preheader
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.116) #4
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.117) #4
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.118) #4
  %47 = getelementptr inbounds i8, ptr %0, i64 40
  %48 = load i32, ptr %47, align 8, !tbaa !26
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %._crit_edge133
  %50 = getelementptr inbounds i8, ptr %0, i64 72
  %51 = getelementptr inbounds i8, ptr %0, i64 44
  br label %52

52:                                               ; preds = %.lr.ph139, %94
  %indvars.iv157 = phi i64 [ 0, %.lr.ph139 ], [ %indvars.iv.next158, %94 ]
  %53 = load ptr, ptr %50, align 8, !tbaa !27
  %54 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv157
  %55 = load ptr, ptr %54, align 8, !tbaa !12
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = trunc nuw nsw i64 %indvars.iv157 to i32
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.119, i32 noundef %57, ptr noundef %56) #4
  %59 = getelementptr inbounds i8, ptr %55, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !30
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %.loopexit

62:                                               ; preds = %52
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.120) #4
  %64 = getelementptr inbounds i8, ptr %55, i64 48
  %65 = load i32, ptr %64, align 8, !tbaa !31
  %.not113 = icmp eq i32 %65, 0
  br i1 %.not113, label %68, label %66

66:                                               ; preds = %62
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.121) #4
  br label %68

68:                                               ; preds = %66, %62
  %69 = load i32, ptr %51, align 4, !tbaa !32
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.lr.ph136, label %.loopexit

.lr.ph136:                                        ; preds = %68
  %71 = getelementptr inbounds i8, ptr %55, i64 40
  %72 = load ptr, ptr %71, align 8, !tbaa !33
  %73 = icmp eq ptr %72, null
  br i1 %73, label %.loopexit, label %.lr.ph136.split

.lr.ph136.splitthread-pre-split:                  ; preds = %85
  %.pr = load ptr, ptr %71, align 8, !tbaa !33
  br label %.lr.ph136.split

.lr.ph136.split:                                  ; preds = %.lr.ph136, %.lr.ph136.splitthread-pre-split
  %74 = phi ptr [ %.pr, %.lr.ph136.splitthread-pre-split ], [ %72, %.lr.ph136 ]
  %75 = phi i32 [ %86, %.lr.ph136.splitthread-pre-split ], [ %69, %.lr.ph136 ]
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %.lr.ph136.splitthread-pre-split ], [ 0, %.lr.ph136 ]
  %.not114 = icmp eq ptr %74, null
  br i1 %.not114, label %85, label %76

76:                                               ; preds = %.lr.ph136.split
  %77 = getelementptr inbounds i8, ptr %74, i64 %indvars.iv154
  %78 = load i8, ptr %77, align 1, !tbaa !34
  %.not115 = icmp eq i8 %78, 0
  br i1 %.not115, label %85, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %50, align 8, !tbaa !27
  %81 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv154
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = load ptr, ptr %82, align 8, !tbaa !28
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.90, ptr noundef %83) #4
  %.pre = load i32, ptr %51, align 4, !tbaa !32
  br label %85

85:                                               ; preds = %.lr.ph136.split, %76, %79
  %86 = phi i32 [ %75, %.lr.ph136.split ], [ %75, %76 ], [ %.pre, %79 ]
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %indvars.iv.next155, %87
  br i1 %88, label %.lr.ph136.splitthread-pre-split, label %.loopexit, !llvm.loop !35

.loopexit:                                        ; preds = %85, %.lr.ph136, %68, %52
  %89 = getelementptr inbounds i8, ptr %55, i64 32
  %90 = load i32, ptr %89, align 8, !tbaa !37
  %91 = icmp sgt i32 %90, -1
  br i1 %91, label %92, label %94

92:                                               ; preds = %.loopexit
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.122, i32 noundef %90) #4
  br label %94

94:                                               ; preds = %92, %.loopexit
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %96 = load i32, ptr %47, align 8, !tbaa !26
  %97 = sext i32 %96 to i64
  %98 = icmp slt i64 %indvars.iv.next158, %97
  br i1 %98, label %52, label %._crit_edge140, !llvm.loop !38

._crit_edge140:                                   ; preds = %94, %._crit_edge133
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.116) #4
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.123) #4
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.124) #4
  %102 = load i32, ptr %47, align 8, !tbaa !26
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.lr.ph144, label %._crit_edge145.thread

.lr.ph144:                                        ; preds = %._crit_edge140
  %104 = getelementptr inbounds i8, ptr %0, i64 72
  br label %105

105:                                              ; preds = %.lr.ph144, %128
  %106 = phi i32 [ %102, %.lr.ph144 ], [ %129, %128 ]
  %indvars.iv160 = phi i64 [ 0, %.lr.ph144 ], [ %indvars.iv.next161, %128 ]
  %.098141 = phi i32 [ 0, %.lr.ph144 ], [ %.3, %128 ]
  %107 = load ptr, ptr %104, align 8, !tbaa !27
  %108 = getelementptr inbounds ptr, ptr %107, i64 %indvars.iv160
  %109 = load ptr, ptr %108, align 8, !tbaa !12
  %110 = getelementptr inbounds i8, ptr %109, i64 84
  %111 = load i32, ptr %110, align 4, !tbaa !39
  %.not112 = icmp eq i32 %111, 0
  br i1 %.not112, label %112, label %128

112:                                              ; preds = %105
  %113 = load ptr, ptr %109, align 8, !tbaa !28
  %114 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %113) #5
  %115 = trunc i64 %114 to i32
  %116 = icmp sgt i32 %.098141, 0
  %117 = add nsw i32 %.098141, %115
  %118 = icmp sgt i32 %117, 75
  %or.cond = select i1 %116, i1 %118, i1 false
  br i1 %or.cond, label %.thread, label %120

.thread:                                          ; preds = %112
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  br label %124

120:                                              ; preds = %112
  br i1 %116, label %121, label %124

121:                                              ; preds = %120
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.125) #4
  %123 = add nuw nsw i32 %.098141, 1
  br label %124

124:                                              ; preds = %.thread, %121, %120
  %.2100 = phi i32 [ %123, %121 ], [ %.098141, %120 ], [ 0, %.thread ]
  %125 = load ptr, ptr %109, align 8, !tbaa !28
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.88, ptr noundef %125) #4
  %127 = add nsw i32 %.2100, %115
  %.pre163 = load i32, ptr %47, align 8, !tbaa !26
  br label %128

128:                                              ; preds = %105, %124
  %129 = phi i32 [ %.pre163, %124 ], [ %106, %105 ]
  %.3 = phi i32 [ %127, %124 ], [ %.098141, %105 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next161, %130
  br i1 %131, label %105, label %._crit_edge145, !llvm.loop !40

._crit_edge145:                                   ; preds = %128
  %132 = icmp sgt i32 %.3, 0
  br i1 %132, label %133, label %._crit_edge145.thread

133:                                              ; preds = %._crit_edge145
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  br label %._crit_edge145.thread

._crit_edge145.thread:                            ; preds = %._crit_edge140, %133, %._crit_edge145
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.116) #4
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.126) #4
  %137 = getelementptr inbounds i8, ptr %0, i64 8
  %.0106146 = load ptr, ptr %137, align 8, !tbaa !12
  %.not147 = icmp eq ptr %.0106146, null
  br i1 %.not147, label %._crit_edge151, label %.lr.ph150

.lr.ph150:                                        ; preds = %._crit_edge145.thread, %149
  %.0106148 = phi ptr [ %.0106, %149 ], [ %.0106146, %._crit_edge145.thread ]
  %138 = getelementptr inbounds i8, ptr %.0106148, i64 92
  %139 = load i32, ptr %138, align 4, !tbaa !21
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.127, i32 noundef %139) #4
  call void @rule_print(ptr noundef %3, ptr noundef nonnull %.0106148)
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.96) #4
  %142 = getelementptr inbounds i8, ptr %.0106148, i64 80
  %143 = load ptr, ptr %142, align 8, !tbaa !41
  %.not111 = icmp eq ptr %143, null
  br i1 %.not111, label %149, label %144

144:                                              ; preds = %.lr.ph150
  %145 = load ptr, ptr %143, align 8, !tbaa !28
  %146 = getelementptr inbounds i8, ptr %143, i64 32
  %147 = load i32, ptr %146, align 8, !tbaa !37
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.128, ptr noundef %145, i32 noundef %147) #4
  br label %149

149:                                              ; preds = %144, %.lr.ph150
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.15) #4
  %151 = getelementptr inbounds i8, ptr %.0106148, i64 128
  %.0106 = load ptr, ptr %151, align 8, !tbaa !12
  %.not = icmp eq ptr %.0106, null
  br i1 %.not, label %._crit_edge151, label %.lr.ph150, !llvm.loop !42

._crit_edge151:                                   ; preds = %149, %._crit_edge145.thread
  %152 = call i32 @fclose(ptr noundef %3)
  br label %153

153:                                              ; preds = %1, %._crit_edge151
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_open(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @rule_print(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @ConfigPrint(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @PrintAction(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @lemon_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !10, i64 28}
!6 = !{!"lemon", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !7, i64 280}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"state", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !10, i64 64}
!15 = !{!6, !10, i64 264}
!16 = !{!17, !10, i64 8}
!17 = !{!"config", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !7, i64 64}
!18 = !{!17, !7, i64 0}
!19 = !{!20, !10, i64 24}
!20 = !{!"rule", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !7, i64 120, !7, i64 128}
!21 = !{!20, !10, i64 92}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = !{!6, !10, i64 40}
!27 = !{!6, !7, i64 72}
!28 = !{!29, !7, i64 0}
!29 = !{!"symbol", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !7, i64 96}
!30 = !{!29, !10, i64 12}
!31 = !{!29, !10, i64 48}
!32 = !{!6, !10, i64 44}
!33 = !{!29, !7, i64 40}
!34 = !{!8, !8, i64 0}
!35 = distinct !{!35, !23, !36}
!36 = !{!"llvm.loop.unswitch.partial.disable"}
!37 = !{!29, !10, i64 32}
!38 = distinct !{!38, !23}
!39 = !{!29, !10, i64 84}
!40 = distinct !{!40, !23}
!41 = !{!20, !7, i64 80}
!42 = distinct !{!42, !23}


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