; LLVM IR from askforalfred/alfred :: gen/ff_planner (output)

; 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._PlNode = type { i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct._TokenList = type { ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [42 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

declare i32 @printf(ptr noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @print_indent(i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @print_PlNode(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %11, label %9

9:                                                ; preds = %2
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 1, ptr %6, align 4
  br label %229

11:                                               ; preds = %2
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._PlNode, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !11
  switch i32 %14, label %222 [
    i32 2008, label %15
    i32 2009, label %38
    i32 2006, label %61
    i32 2007, label %95
    i32 2010, label %123
    i32 2005, label %141
    i32 2002, label %166
    i32 2000, label %172
    i32 2001, label %174
    i32 2003, label %176
    i32 2004, label %200
  ]

15:                                               ; preds = %11
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._PlNode, ptr %16, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds %struct._TokenList, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._PlNode, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr inbounds %struct._TokenList, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds %struct._TokenList, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %20, ptr noundef %27)
  %29 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %29)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._PlNode, ptr %31, i32 0, i32 7
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = load i32, ptr %4, align 4, !tbaa !9
  %35 = add nsw i32 %34, 4
  call void @print_PlNode(ptr noundef %33, i32 noundef %35)
  %36 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %36)
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

38:                                               ; preds = %11
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._PlNode, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = getelementptr inbounds %struct._TokenList, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._PlNode, ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct._TokenList, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct._TokenList, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %43, ptr noundef %50)
  %52 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %52)
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._PlNode, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = load i32, ptr %4, align 4, !tbaa !9
  %58 = add nsw i32 %57, 4
  call void @print_PlNode(ptr noundef %56, i32 noundef %58)
  %59 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %59)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

61:                                               ; preds = %11
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._PlNode, ptr %63, i32 0, i32 7
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = add nsw i32 %66, 4
  call void @print_PlNode(ptr noundef %65, i32 noundef %67)
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._PlNode, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %92

72:                                               ; preds = %61
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._PlNode, ptr %73, i32 0, i32 7
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds %struct._PlNode, ptr %75, i32 0, i32 8
  %77 = load ptr, ptr %76, align 8, !tbaa !18
  store ptr %77, ptr %5, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %87, %72
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %91

81:                                               ; preds = %78
  %82 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %82)
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = add nsw i32 %85, 4
  call void @print_PlNode(ptr noundef %84, i32 noundef %86)
  br label %87

87:                                               ; preds = %81
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._PlNode, ptr %88, i32 0, i32 8
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  store ptr %90, ptr %5, align 8, !tbaa !5
  br label %78, !llvm.loop !19

91:                                               ; preds = %78
  br label %92

92:                                               ; preds = %91, %61
  %93 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %93)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

95:                                               ; preds = %11
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._PlNode, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = add nsw i32 %100, 4
  call void @print_PlNode(ptr noundef %99, i32 noundef %101)
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._PlNode, ptr %102, i32 0, i32 7
  %104 = load ptr, ptr %103, align 8, !tbaa !17
  %105 = getelementptr inbounds %struct._PlNode, ptr %104, i32 0, i32 8
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  store ptr %106, ptr %5, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %116, %95
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %120

110:                                              ; preds = %107
  %111 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %111)
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = add nsw i32 %114, 4
  call void @print_PlNode(ptr noundef %113, i32 noundef %115)
  br label %116

116:                                              ; preds = %110
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct._PlNode, ptr %117, i32 0, i32 8
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  store ptr %119, ptr %5, align 8, !tbaa !5
  br label %107, !llvm.loop !21

120:                                              ; preds = %107
  %121 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %121)
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

123:                                              ; preds = %11
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct._PlNode, ptr %125, i32 0, i32 7
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = add nsw i32 %128, 5
  call void @print_PlNode(ptr noundef %127, i32 noundef %129)
  %130 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %130)
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._PlNode, ptr %132, i32 0, i32 7
  %134 = load ptr, ptr %133, align 8, !tbaa !17
  %135 = getelementptr inbounds %struct._PlNode, ptr %134, i32 0, i32 8
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = load i32, ptr %4, align 4, !tbaa !9
  %138 = add nsw i32 %137, 5
  call void @print_PlNode(ptr noundef %136, i32 noundef %138)
  %139 = load i32, ptr %4, align 4, !tbaa !9
  call void @print_indent(i32 noundef %139)
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %228

141:                                              ; preds = %11
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._PlNode, ptr %142, i32 0, i32 7
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds %struct._PlNode, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !11
  %147 = icmp eq i32 2002, %146
  br i1 %147, label %148, label %155

148:                                              ; preds = %141
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._PlNode, ptr %150, i32 0, i32 7
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = load i32, ptr %4, align 4, !tbaa !9
  %154 = add nsw i32 %153, 4
  call void @print_PlNode(ptr noundef %152, i32 noundef %154)
  br label %165

155:                                              ; preds = %141
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._PlNode, ptr %157, i32 0, i32 7
  %159 = load ptr, ptr %158, align 8, !tbaa !17
  %160 = load i32, ptr %4, align 4, !tbaa !9
  %161 = add nsw i32 %160, 4
  call void @print_PlNode(ptr noundef %159, i32 noundef %161)
  %162 = load i32, ptr %4, align 4, !tbaa !9
  %163 = add nsw i32 %162, 3
  call void @print_indent(i32 noundef %163)
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %165

165:                                              ; preds = %155, %148
  br label %228

166:                                              ; preds = %11
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct._PlNode, ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  call void @print_hidden_TokenList(ptr noundef %170, ptr noundef @.str.3)
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

172:                                              ; preds = %11
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  br label %228

174:                                              ; preds = %11
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  br label %228

176:                                              ; preds = %11
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._PlNode, ptr %177, i32 0, i32 3
  %179 = load i32, ptr %178, align 8, !tbaa !22
  switch i32 %179, label %190 [
    i32 3001, label %180
    i32 3002, label %182
    i32 3003, label %184
    i32 3004, label %186
    i32 3005, label %188
  ]

180:                                              ; preds = %176
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %192

182:                                              ; preds = %176
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %192

184:                                              ; preds = %176
  %185 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %192

186:                                              ; preds = %176
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %192

188:                                              ; preds = %176
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %192

190:                                              ; preds = %176
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  call void @exit(i32 noundef 1) #5
  unreachable

192:                                              ; preds = %188, %186, %184, %182, %180
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._PlNode, ptr %193, i32 0, i32 5
  %195 = load ptr, ptr %194, align 8, !tbaa !23
  call void @print_ParseExpNode(ptr noundef %195)
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._PlNode, ptr %196, i32 0, i32 6
  %198 = load ptr, ptr %197, align 8, !tbaa !24
  call void @print_ParseExpNode(ptr noundef %198)
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

200:                                              ; preds = %11
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._PlNode, ptr %201, i32 0, i32 4
  %203 = load i32, ptr %202, align 4, !tbaa !25
  switch i32 %203, label %214 [
    i32 4000, label %204
    i32 4001, label %206
    i32 4002, label %208
    i32 4003, label %210
    i32 4004, label %212
  ]

204:                                              ; preds = %200
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  br label %214

206:                                              ; preds = %200
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  br label %214

208:                                              ; preds = %200
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  br label %214

210:                                              ; preds = %200
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  br label %214

212:                                              ; preds = %200
  %213 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  br label %214

214:                                              ; preds = %212, %210, %208, %206, %204, %200
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct._PlNode, ptr %215, i32 0, i32 5
  %217 = load ptr, ptr %216, align 8, !tbaa !23
  call void @print_ParseExpNode(ptr noundef %217)
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct._PlNode, ptr %218, i32 0, i32 6
  %220 = load ptr, ptr %219, align 8, !tbaa !24
  call void @print_ParseExpNode(ptr noundef %220)
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %228

222:                                              ; preds = %11
  %223 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct._PlNode, ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 8, !tbaa !11
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, i32 noundef %226)
  call void @exit(i32 noundef 1) #5
  unreachable

228:                                              ; preds = %214, %192, %174, %172, %166, %165, %123, %120, %92, %38, %15
  store i32 0, ptr %6, align 4
  br label %229

229:                                              ; preds = %228, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %230 = load i32, ptr %6, align 4
  switch i32 %230, label %232 [
    i32 0, label %231
    i32 1, label %231
  ]

231:                                              ; preds = %229, %229
  ret void

232:                                              ; preds = %229
  unreachable
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_PlNode", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!12, !6, i64 16}
!14 = !{!15, !6, i64 0}
!15 = !{!"_TokenList", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = !{!12, !6, i64 48}
!18 = !{!12, !6, i64 56}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !10, i64 24}
!23 = !{!12, !6, i64 32}
!24 = !{!12, !6, i64 40}
!25 = !{!12, !10, i64 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.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [42 x i8], align 1
@switch.table.print_PlNode = private unnamed_addr constant [5 x ptr] [ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31], align 8
@switch.table.print_PlNode.1 = private unnamed_addr constant [5 x ptr] [ptr @.str.33, ptr @.str.34, ptr @.str.35, ptr @.str.36, ptr @.str.37], align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @print_indent(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @print_ParseExpNode(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @print_PlNode(ptr noundef readonly %0, i32 noundef %1) local_unnamed_addr #1 {
  %.not83 = icmp eq ptr %0, null
  br i1 %.not83, label %common.ret, label %.lr.ph

.lr.ph:                                           ; preds = %2, %tailrecurse
  %.tr5885 = phi i32 [ %57, %tailrecurse ], [ %1, %2 ]
  %.tr84 = phi ptr [ %59, %tailrecurse ], [ %0, %2 ]
  %3 = load i32, ptr %.tr84, align 8, !tbaa !5
  switch i32 %3, label %92 [
    i32 2008, label %5
    i32 2009, label %17
    i32 2006, label %29
    i32 2007, label %36
    i32 2010, label %43
    i32 2005, label %52
    i32 2002, label %64
    i32 2000, label %common.ret
    i32 2001, label %68
    i32 2003, label %69
    i32 2004, label %81
  ]

common.ret:                                       ; preds = %tailrecurse, %.lr.ph, %2, %87, %switch.lookup, %68, %64, %._crit_edge, %.loopexit, %60, %43, %17, %5
  %.str.11.sink = phi ptr [ @.str.14, %87 ], [ @.str.14, %switch.lookup ], [ @.str.26, %68 ], [ @.str.14, %64 ], [ @.str.14, %._crit_edge ], [ @.str.14, %.loopexit ], [ @.str.14, %60 ], [ @.str.22, %43 ], [ @.str.14, %17 ], [ @.str.14, %5 ], [ @.str.11, %2 ], [ @.str.25, %.lr.ph ], [ @.str.11, %tailrecurse ]
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11.sink)
  ret void

5:                                                ; preds = %.lr.ph
  %6 = getelementptr inbounds i8, ptr %.tr84, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !11
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %7, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %8, ptr noundef %11)
  tail call void @print_indent(i32 noundef %.tr5885)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %14 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = add nsw i32 %.tr5885, 4
  tail call void @print_PlNode(ptr noundef %15, i32 noundef %16)
  tail call void @print_indent(i32 noundef %.tr5885)
  br label %common.ret

17:                                               ; preds = %.lr.ph
  %18 = getelementptr inbounds i8, ptr %.tr84, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %20, ptr noundef %23)
  tail call void @print_indent(i32 noundef %.tr5885)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %26 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = add nsw i32 %.tr5885, 4
  tail call void @print_PlNode(ptr noundef %27, i32 noundef %28)
  tail call void @print_indent(i32 noundef %.tr5885)
  br label %common.ret

29:                                               ; preds = %.lr.ph
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %31 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = add nsw i32 %.tr5885, 4
  tail call void @print_PlNode(ptr noundef %32, i32 noundef %33)
  %34 = load ptr, ptr %31, align 8, !tbaa !15
  %.not55 = icmp eq ptr %34, null
  br i1 %.not55, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %29
  %.0.in91 = getelementptr inbounds i8, ptr %34, i64 56
  %.092 = load ptr, ptr %.0.in91, align 8, !tbaa !16
  %.not5693 = icmp eq ptr %.092, null
  br i1 %.not5693, label %.loopexit, label %.lr.ph95

.lr.ph95:                                         ; preds = %.preheader, %.lr.ph95
  %.094 = phi ptr [ %.0, %.lr.ph95 ], [ %.092, %.preheader ]
  tail call void @print_indent(i32 noundef %.tr5885)
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  tail call void @print_PlNode(ptr noundef nonnull %.094, i32 noundef %33)
  %.0.in = getelementptr inbounds i8, ptr %.094, i64 56
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !16
  %.not56 = icmp eq ptr %.0, null
  br i1 %.not56, label %.loopexit, label %.lr.ph95, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph95, %.preheader, %29
  tail call void @print_indent(i32 noundef %.tr5885)
  br label %common.ret

36:                                               ; preds = %.lr.ph
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %38 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = add nsw i32 %.tr5885, 4
  tail call void @print_PlNode(ptr noundef %39, i32 noundef %40)
  %41 = load ptr, ptr %38, align 8, !tbaa !15
  %.1.in86 = getelementptr inbounds i8, ptr %41, i64 56
  %.187 = load ptr, ptr %.1.in86, align 8, !tbaa !16
  %.not5488 = icmp eq ptr %.187, null
  br i1 %.not5488, label %._crit_edge, label %.lr.ph90

.lr.ph90:                                         ; preds = %36, %.lr.ph90
  %.189 = phi ptr [ %.1, %.lr.ph90 ], [ %.187, %36 ]
  tail call void @print_indent(i32 noundef %.tr5885)
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  tail call void @print_PlNode(ptr noundef nonnull %.189, i32 noundef %40)
  %.1.in = getelementptr inbounds i8, ptr %.189, i64 56
  %.1 = load ptr, ptr %.1.in, align 8, !tbaa !16
  %.not54 = icmp eq ptr %.1, null
  br i1 %.not54, label %._crit_edge, label %.lr.ph90, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph90, %36
  tail call void @print_indent(i32 noundef %.tr5885)
  br label %common.ret

43:                                               ; preds = %.lr.ph
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  %45 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = add nsw i32 %.tr5885, 5
  tail call void @print_PlNode(ptr noundef %46, i32 noundef %47)
  tail call void @print_indent(i32 noundef %.tr5885)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  %49 = load ptr, ptr %45, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %49, i64 56
  %51 = load ptr, ptr %50, align 8, !tbaa !16
  tail call void @print_PlNode(ptr noundef %51, i32 noundef %47)
  tail call void @print_indent(i32 noundef %.tr5885)
  br label %common.ret

52:                                               ; preds = %.lr.ph
  %53 = getelementptr inbounds i8, ptr %.tr84, i64 48
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = icmp eq i32 %55, 2002
  %57 = add nsw i32 %.tr5885, 4
  br i1 %56, label %tailrecurse, label %60

tailrecurse:                                      ; preds = %52
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %59 = load ptr, ptr %53, align 8, !tbaa !15
  %.not = icmp eq ptr %59, null
  br i1 %.not, label %common.ret, label %.lr.ph

60:                                               ; preds = %52
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %62 = load ptr, ptr %53, align 8, !tbaa !15
  tail call void @print_PlNode(ptr noundef %62, i32 noundef %57)
  %63 = add nsw i32 %.tr5885, 3
  tail call void @print_indent(i32 noundef %63)
  br label %common.ret

64:                                               ; preds = %.lr.ph
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %66 = getelementptr inbounds i8, ptr %.tr84, i64 16
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  tail call void @print_hidden_TokenList(ptr noundef %67, ptr noundef nonnull @.str.3)
  br label %common.ret

68:                                               ; preds = %.lr.ph
  br label %common.ret

69:                                               ; preds = %.lr.ph
  %70 = getelementptr inbounds i8, ptr %.tr84, i64 24
  %71 = load i32, ptr %70, align 8, !tbaa !20
  %switch.tableidx = add i32 %71, -3001
  %72 = icmp ult i32 %switch.tableidx, 5
  br i1 %72, label %switch.lookup, label %73

73:                                               ; preds = %69
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  tail call void @exit(i32 noundef 1) #3
  unreachable

switch.lookup:                                    ; preds = %69
  %75 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [5 x ptr], ptr @switch.table.print_PlNode, i64 0, i64 %75
  %switch.load = load ptr, ptr %switch.gep, align 8
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  %77 = getelementptr inbounds i8, ptr %.tr84, i64 32
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  tail call void @print_ParseExpNode(ptr noundef %78)
  %79 = getelementptr inbounds i8, ptr %.tr84, i64 40
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  tail call void @print_ParseExpNode(ptr noundef %80)
  br label %common.ret

81:                                               ; preds = %.lr.ph
  %82 = getelementptr inbounds i8, ptr %.tr84, i64 28
  %83 = load i32, ptr %82, align 4, !tbaa !23
  %switch.tableidx169 = add i32 %83, -4000
  %84 = icmp ult i32 %switch.tableidx169, 5
  br i1 %84, label %switch.lookup168, label %87

switch.lookup168:                                 ; preds = %81
  %85 = zext nneg i32 %switch.tableidx169 to i64
  %switch.gep170 = getelementptr inbounds [5 x ptr], ptr @switch.table.print_PlNode.1, i64 0, i64 %85
  %switch.load171 = load ptr, ptr %switch.gep170, align 8
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load171)
  br label %87

87:                                               ; preds = %81, %switch.lookup168
  %88 = getelementptr inbounds i8, ptr %.tr84, i64 32
  %89 = load ptr, ptr %88, align 8, !tbaa !21
  tail call void @print_ParseExpNode(ptr noundef %89)
  %90 = getelementptr inbounds i8, ptr %.tr84, i64 40
  %91 = load ptr, ptr %90, align 8, !tbaa !22
  tail call void @print_ParseExpNode(ptr noundef %91)
  br label %common.ret

92:                                               ; preds = %.lr.ph
  %93 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38)
  %94 = load i32, ptr %.tr84, align 8, !tbaa !5
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, i32 noundef %94)
  tail call void @exit(i32 noundef 1) #3
  unreachable
}

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

attributes #0 = { 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 #1 = { 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 #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 = { noreturn nounwind }

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

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


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