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

; 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 }
%struct._Effect = type { i32, [15 x i32], [15 x ptr], ptr, ptr, ptr, ptr, ptr }
%struct._NumericEffect = type { %struct._Fluent, i32, ptr, ptr, ptr }
%struct._Fluent = type { i32, [5 x i32] }
%struct._ParseExpNode = type { i32, ptr, ptr, ptr }
%struct._Literal = type { i8, %struct._Fact, ptr, ptr }
%struct._Fact = type { i32, [5 x i32] }

@lvar_types = external dso_local global [15 x i32], align 16
@lvar_names = external dso_local global [15 x ptr], align 16
@.str.59 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [43 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

declare ptr @new_Token(i32 noundef) #1

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

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

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

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

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

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

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

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

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

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

14:                                               ; preds = %151, %2
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %22

17:                                               ; preds = %14
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._PlNode, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp eq i32 %20, 2008
  br label %22

22:                                               ; preds = %17, %14
  %23 = phi i1 [ false, %14 ], [ %21, %17 ]
  br i1 %23, label %24, label %155

24:                                               ; preds = %22
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._PlNode, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds %struct._TokenList, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = getelementptr inbounds %struct._TokenList, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = call i32 @position_in_types_table(ptr noundef %31)
  store i32 %32, ptr %9, align 4, !tbaa !9
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %48

34:                                               ; preds = %24
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._PlNode, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = getelementptr inbounds %struct._TokenList, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._PlNode, ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = getelementptr inbounds %struct._TokenList, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = getelementptr inbounds %struct._TokenList, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.59, ptr noundef %39, ptr noundef %46)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %495

48:                                               ; preds = %24
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %88, %48
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._Effect, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = add nsw i32 %51, %54
  %56 = icmp slt i32 %50, %55
  br i1 %56, label %57, label %91

57:                                               ; preds = %49
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._PlNode, ptr %62, i32 0, i32 2
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = getelementptr inbounds %struct._TokenList, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = icmp eq ptr %61, %66
  br i1 %67, label %80, label %68

68:                                               ; preds = %57
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._PlNode, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = getelementptr inbounds %struct._TokenList, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = call i32 @strcmp(ptr noundef %72, ptr noundef %77) #7
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %87

80:                                               ; preds = %68, %57
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._PlNode, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds %struct._TokenList, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.60, ptr noundef %85)
  br label %87

87:                                               ; preds = %80, %68
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %10, align 4, !tbaa !9
  br label %49, !llvm.loop !19

91:                                               ; preds = %49
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %5, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._Effect, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !17
  %97 = add nsw i32 %93, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %98
  store i32 %92, ptr %99, align 4, !tbaa !9
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._PlNode, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !13
  %103 = getelementptr inbounds %struct._TokenList, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._Effect, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !17
  %109 = add nsw i32 %105, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %110
  store ptr %104, ptr %111, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._PlNode, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  %115 = getelementptr inbounds %struct._TokenList, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  %117 = call i64 @strlen(ptr noundef %116) #7
  %118 = add i64 %117, 1
  %119 = trunc i64 %118 to i32
  %120 = call ptr @new_Token(i32 noundef %119)
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct._Effect, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._Effect, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !17
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [15 x ptr], ptr %122, i64 0, i64 %126
  store ptr %120, ptr %127, align 8, !tbaa !5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._Effect, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._Effect, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !17
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [15 x ptr], ptr %129, i64 0, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct._PlNode, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !13
  %139 = getelementptr inbounds %struct._TokenList, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !16
  %141 = call ptr @strcpy(ptr noundef %135, ptr noundef %140) #6
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._Effect, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._Effect, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !17
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %146, align 8, !tbaa !17
  %149 = sext i32 %147 to i64
  %150 = getelementptr inbounds [15 x i32], ptr %144, i64 0, i64 %149
  store i32 %142, ptr %150, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %91
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._PlNode, ptr %152, i32 0, i32 7
  %154 = load ptr, ptr %153, align 8, !tbaa !21
  store ptr %154, ptr %7, align 8, !tbaa !5
  br label %14, !llvm.loop !22

155:                                              ; preds = %22
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %163

158:                                              ; preds = %155
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._PlNode, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 8, !tbaa !11
  %162 = icmp ne i32 %161, 2010
  br i1 %162, label %163, label %168

163:                                              ; preds = %158, %155
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct._PlNode, ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 8, !tbaa !11
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.61, i32 noundef %166)
  call void @exit(i32 noundef 1) #8
  unreachable

168:                                              ; preds = %158
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct._PlNode, ptr %169, i32 0, i32 7
  %171 = load ptr, ptr %170, align 8, !tbaa !21
  %172 = load i32, ptr %5, align 4, !tbaa !9
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct._Effect, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !17
  %176 = add nsw i32 %172, %175
  %177 = call ptr @make_Wff(ptr noundef %171, i32 noundef %176)
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._Effect, ptr %178, i32 0, i32 3
  store ptr %177, ptr %179, align 8, !tbaa !23
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._PlNode, ptr %180, i32 0, i32 7
  %182 = load ptr, ptr %181, align 8, !tbaa !21
  %183 = getelementptr inbounds %struct._PlNode, ptr %182, i32 0, i32 8
  %184 = load ptr, ptr %183, align 8, !tbaa !24
  %185 = getelementptr inbounds %struct._PlNode, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !11
  %187 = icmp ne i32 %186, 2006
  br i1 %187, label %188, label %197

188:                                              ; preds = %168
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct._PlNode, ptr %189, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !21
  %192 = getelementptr inbounds %struct._PlNode, ptr %191, i32 0, i32 8
  %193 = load ptr, ptr %192, align 8, !tbaa !24
  %194 = getelementptr inbounds %struct._PlNode, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 8, !tbaa !11
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.62, i32 noundef %195)
  call void @exit(i32 noundef 1) #8
  unreachable

197:                                              ; preds = %168
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct._PlNode, ptr %198, i32 0, i32 7
  %200 = load ptr, ptr %199, align 8, !tbaa !21
  %201 = getelementptr inbounds %struct._PlNode, ptr %200, i32 0, i32 8
  %202 = load ptr, ptr %201, align 8, !tbaa !24
  %203 = getelementptr inbounds %struct._PlNode, ptr %202, i32 0, i32 7
  %204 = load ptr, ptr %203, align 8, !tbaa !21
  %205 = icmp ne ptr %204, null
  br i1 %205, label %208, label %206

206:                                              ; preds = %197
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %207, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %495

208:                                              ; preds = %197
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._PlNode, ptr %209, i32 0, i32 7
  %211 = load ptr, ptr %210, align 8, !tbaa !21
  %212 = getelementptr inbounds %struct._PlNode, ptr %211, i32 0, i32 8
  %213 = load ptr, ptr %212, align 8, !tbaa !24
  %214 = getelementptr inbounds %struct._PlNode, ptr %213, i32 0, i32 7
  %215 = load ptr, ptr %214, align 8, !tbaa !21
  store ptr %215, ptr %8, align 8, !tbaa !5
  br label %216

216:                                              ; preds = %489, %208
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = icmp ne ptr %217, null
  br i1 %218, label %219, label %493

219:                                              ; preds = %216
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct._PlNode, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 8, !tbaa !11
  %223 = icmp eq i32 %222, 2004
  br i1 %223, label %224, label %330

224:                                              ; preds = %219
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._Effect, ptr %225, i32 0, i32 5
  %227 = load ptr, ptr %226, align 8, !tbaa !25
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %291

229:                                              ; preds = %224
  %230 = call ptr @new_NumericEffect()
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._Effect, ptr %231, i32 0, i32 5
  %233 = load ptr, ptr %232, align 8, !tbaa !25
  %234 = getelementptr inbounds %struct._NumericEffect, ptr %233, i32 0, i32 4
  store ptr %230, ptr %234, align 8, !tbaa !26
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct._Effect, ptr %235, i32 0, i32 5
  %237 = load ptr, ptr %236, align 8, !tbaa !25
  %238 = getelementptr inbounds %struct._NumericEffect, ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !26
  %240 = getelementptr inbounds %struct._NumericEffect, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._PlNode, ptr %241, i32 0, i32 5
  %243 = load ptr, ptr %242, align 8, !tbaa !29
  %244 = getelementptr inbounds %struct._ParseExpNode, ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %244, align 8, !tbaa !30
  %246 = load i32, ptr %5, align 4, !tbaa !9
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct._Effect, ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !17
  %250 = add nsw i32 %246, %249
  call void @make_Fluent(ptr noundef %240, ptr noundef %245, i32 noundef %250)
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct._PlNode, ptr %251, i32 0, i32 4
  %253 = load i32, ptr %252, align 4, !tbaa !32
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct._Effect, ptr %254, i32 0, i32 5
  %256 = load ptr, ptr %255, align 8, !tbaa !25
  %257 = getelementptr inbounds %struct._NumericEffect, ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !26
  %259 = getelementptr inbounds %struct._NumericEffect, ptr %258, i32 0, i32 1
  store i32 %253, ptr %259, align 8, !tbaa !33
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct._PlNode, ptr %260, i32 0, i32 6
  %262 = load ptr, ptr %261, align 8, !tbaa !34
  %263 = load i32, ptr %5, align 4, !tbaa !9
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct._Effect, ptr %264, i32 0, i32 0
  %266 = load i32, ptr %265, align 8, !tbaa !17
  %267 = add nsw i32 %263, %266
  %268 = call ptr @make_ExpNode(ptr noundef %262, i32 noundef %267)
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct._Effect, ptr %269, i32 0, i32 5
  %271 = load ptr, ptr %270, align 8, !tbaa !25
  %272 = getelementptr inbounds %struct._NumericEffect, ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !26
  %274 = getelementptr inbounds %struct._NumericEffect, ptr %273, i32 0, i32 2
  store ptr %268, ptr %274, align 8, !tbaa !35
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct._Effect, ptr %275, i32 0, i32 5
  %277 = load ptr, ptr %276, align 8, !tbaa !25
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct._Effect, ptr %278, i32 0, i32 5
  %280 = load ptr, ptr %279, align 8, !tbaa !25
  %281 = getelementptr inbounds %struct._NumericEffect, ptr %280, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !26
  %283 = getelementptr inbounds %struct._NumericEffect, ptr %282, i32 0, i32 3
  store ptr %277, ptr %283, align 8, !tbaa !36
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct._Effect, ptr %284, i32 0, i32 5
  %286 = load ptr, ptr %285, align 8, !tbaa !25
  %287 = getelementptr inbounds %struct._NumericEffect, ptr %286, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !26
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct._Effect, ptr %289, i32 0, i32 5
  store ptr %288, ptr %290, align 8, !tbaa !25
  br label %329

291:                                              ; preds = %224
  %292 = call ptr @new_NumericEffect()
  %293 = load ptr, ptr %6, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct._Effect, ptr %293, i32 0, i32 5
  store ptr %292, ptr %294, align 8, !tbaa !25
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct._Effect, ptr %295, i32 0, i32 5
  %297 = load ptr, ptr %296, align 8, !tbaa !25
  %298 = getelementptr inbounds %struct._NumericEffect, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct._PlNode, ptr %299, i32 0, i32 5
  %301 = load ptr, ptr %300, align 8, !tbaa !29
  %302 = getelementptr inbounds %struct._ParseExpNode, ptr %301, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !30
  %304 = load i32, ptr %5, align 4, !tbaa !9
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct._Effect, ptr %305, i32 0, i32 0
  %307 = load i32, ptr %306, align 8, !tbaa !17
  %308 = add nsw i32 %304, %307
  call void @make_Fluent(ptr noundef %298, ptr noundef %303, i32 noundef %308)
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct._PlNode, ptr %309, i32 0, i32 4
  %311 = load i32, ptr %310, align 4, !tbaa !32
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct._Effect, ptr %312, i32 0, i32 5
  %314 = load ptr, ptr %313, align 8, !tbaa !25
  %315 = getelementptr inbounds %struct._NumericEffect, ptr %314, i32 0, i32 1
  store i32 %311, ptr %315, align 8, !tbaa !33
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct._PlNode, ptr %316, i32 0, i32 6
  %318 = load ptr, ptr %317, align 8, !tbaa !34
  %319 = load i32, ptr %5, align 4, !tbaa !9
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct._Effect, ptr %320, i32 0, i32 0
  %322 = load i32, ptr %321, align 8, !tbaa !17
  %323 = add nsw i32 %319, %322
  %324 = call ptr @make_ExpNode(ptr noundef %318, i32 noundef %323)
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct._Effect, ptr %325, i32 0, i32 5
  %327 = load ptr, ptr %326, align 8, !tbaa !25
  %328 = getelementptr inbounds %struct._NumericEffect, ptr %327, i32 0, i32 2
  store ptr %324, ptr %328, align 8, !tbaa !35
  br label %329

329:                                              ; preds = %291, %229
  br label %488

330:                                              ; preds = %219
  %331 = load ptr, ptr %6, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct._Effect, ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !37
  %334 = icmp ne ptr %333, null
  br i1 %334, label %335, label %426

335:                                              ; preds = %330
  %336 = call ptr @new_Literal()
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct._Effect, ptr %337, i32 0, i32 4
  %339 = load ptr, ptr %338, align 8, !tbaa !37
  %340 = getelementptr inbounds %struct._Literal, ptr %339, i32 0, i32 3
  store ptr %336, ptr %340, align 8, !tbaa !38
  %341 = load ptr, ptr %8, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct._PlNode, ptr %341, i32 0, i32 0
  %343 = load i32, ptr %342, align 8, !tbaa !11
  %344 = icmp eq i32 %343, 2005
  br i1 %344, label %345, label %378

345:                                              ; preds = %335
  %346 = load ptr, ptr %6, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct._Effect, ptr %346, i32 0, i32 4
  %348 = load ptr, ptr %347, align 8, !tbaa !37
  %349 = getelementptr inbounds %struct._Literal, ptr %348, i32 0, i32 3
  %350 = load ptr, ptr %349, align 8, !tbaa !38
  %351 = getelementptr inbounds %struct._Literal, ptr %350, i32 0, i32 0
  store i8 1, ptr %351, align 8, !tbaa !41
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct._Effect, ptr %352, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !37
  %355 = getelementptr inbounds %struct._Literal, ptr %354, i32 0, i32 3
  %356 = load ptr, ptr %355, align 8, !tbaa !38
  %357 = getelementptr inbounds %struct._Literal, ptr %356, i32 0, i32 1
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct._PlNode, ptr %358, i32 0, i32 7
  %360 = load ptr, ptr %359, align 8, !tbaa !21
  %361 = load i32, ptr %5, align 4, !tbaa !9
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct._Effect, ptr %362, i32 0, i32 0
  %364 = load i32, ptr %363, align 8, !tbaa !17
  %365 = add nsw i32 %361, %364
  call void @make_Fact(ptr noundef %357, ptr noundef %360, i32 noundef %365)
  %366 = load ptr, ptr %6, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct._Effect, ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !37
  %369 = getelementptr inbounds %struct._Literal, ptr %368, i32 0, i32 3
  %370 = load ptr, ptr %369, align 8, !tbaa !38
  %371 = getelementptr inbounds %struct._Literal, ptr %370, i32 0, i32 1
  %372 = getelementptr inbounds %struct._Fact, ptr %371, i32 0, i32 0
  %373 = load i32, ptr %372, align 4, !tbaa !42
  %374 = icmp eq i32 %373, 0
  br i1 %374, label %375, label %377

375:                                              ; preds = %345
  %376 = call i32 (ptr, ...) @printf(ptr noundef @.str.63)
  call void @exit(i32 noundef 1) #8
  unreachable

377:                                              ; preds = %345
  br label %409

378:                                              ; preds = %335
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct._Effect, ptr %379, i32 0, i32 4
  %381 = load ptr, ptr %380, align 8, !tbaa !37
  %382 = getelementptr inbounds %struct._Literal, ptr %381, i32 0, i32 3
  %383 = load ptr, ptr %382, align 8, !tbaa !38
  %384 = getelementptr inbounds %struct._Literal, ptr %383, i32 0, i32 0
  store i8 0, ptr %384, align 8, !tbaa !41
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct._Effect, ptr %385, i32 0, i32 4
  %387 = load ptr, ptr %386, align 8, !tbaa !37
  %388 = getelementptr inbounds %struct._Literal, ptr %387, i32 0, i32 3
  %389 = load ptr, ptr %388, align 8, !tbaa !38
  %390 = getelementptr inbounds %struct._Literal, ptr %389, i32 0, i32 1
  %391 = load ptr, ptr %8, align 8, !tbaa !5
  %392 = load i32, ptr %5, align 4, !tbaa !9
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct._Effect, ptr %393, i32 0, i32 0
  %395 = load i32, ptr %394, align 8, !tbaa !17
  %396 = add nsw i32 %392, %395
  call void @make_Fact(ptr noundef %390, ptr noundef %391, i32 noundef %396)
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct._Effect, ptr %397, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !37
  %400 = getelementptr inbounds %struct._Literal, ptr %399, i32 0, i32 3
  %401 = load ptr, ptr %400, align 8, !tbaa !38
  %402 = getelementptr inbounds %struct._Literal, ptr %401, i32 0, i32 1
  %403 = getelementptr inbounds %struct._Fact, ptr %402, i32 0, i32 0
  %404 = load i32, ptr %403, align 4, !tbaa !42
  %405 = icmp eq i32 %404, 0
  br i1 %405, label %406, label %408

406:                                              ; preds = %378
  %407 = call i32 (ptr, ...) @printf(ptr noundef @.str.63)
  call void @exit(i32 noundef 1) #8
  unreachable

408:                                              ; preds = %378
  br label %409

409:                                              ; preds = %408, %377
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct._Effect, ptr %410, i32 0, i32 4
  %412 = load ptr, ptr %411, align 8, !tbaa !37
  %413 = load ptr, ptr %6, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct._Effect, ptr %413, i32 0, i32 4
  %415 = load ptr, ptr %414, align 8, !tbaa !37
  %416 = getelementptr inbounds %struct._Literal, ptr %415, i32 0, i32 3
  %417 = load ptr, ptr %416, align 8, !tbaa !38
  %418 = getelementptr inbounds %struct._Literal, ptr %417, i32 0, i32 2
  store ptr %412, ptr %418, align 8, !tbaa !43
  %419 = load ptr, ptr %6, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct._Effect, ptr %419, i32 0, i32 4
  %421 = load ptr, ptr %420, align 8, !tbaa !37
  %422 = getelementptr inbounds %struct._Literal, ptr %421, i32 0, i32 3
  %423 = load ptr, ptr %422, align 8, !tbaa !38
  %424 = load ptr, ptr %6, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct._Effect, ptr %424, i32 0, i32 4
  store ptr %423, ptr %425, align 8, !tbaa !37
  br label %487

426:                                              ; preds = %330
  %427 = call ptr @new_Literal()
  %428 = load ptr, ptr %6, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct._Effect, ptr %428, i32 0, i32 4
  store ptr %427, ptr %429, align 8, !tbaa !37
  %430 = load ptr, ptr %8, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct._PlNode, ptr %430, i32 0, i32 0
  %432 = load i32, ptr %431, align 8, !tbaa !11
  %433 = icmp eq i32 %432, 2005
  br i1 %433, label %434, label %461

434:                                              ; preds = %426
  %435 = load ptr, ptr %6, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct._Effect, ptr %435, i32 0, i32 4
  %437 = load ptr, ptr %436, align 8, !tbaa !37
  %438 = getelementptr inbounds %struct._Literal, ptr %437, i32 0, i32 0
  store i8 1, ptr %438, align 8, !tbaa !41
  %439 = load ptr, ptr %6, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct._Effect, ptr %439, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !37
  %442 = getelementptr inbounds %struct._Literal, ptr %441, i32 0, i32 1
  %443 = load ptr, ptr %8, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct._PlNode, ptr %443, i32 0, i32 7
  %445 = load ptr, ptr %444, align 8, !tbaa !21
  %446 = load i32, ptr %5, align 4, !tbaa !9
  %447 = load ptr, ptr %6, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct._Effect, ptr %447, i32 0, i32 0
  %449 = load i32, ptr %448, align 8, !tbaa !17
  %450 = add nsw i32 %446, %449
  call void @make_Fact(ptr noundef %442, ptr noundef %445, i32 noundef %450)
  %451 = load ptr, ptr %6, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct._Effect, ptr %451, i32 0, i32 4
  %453 = load ptr, ptr %452, align 8, !tbaa !37
  %454 = getelementptr inbounds %struct._Literal, ptr %453, i32 0, i32 1
  %455 = getelementptr inbounds %struct._Fact, ptr %454, i32 0, i32 0
  %456 = load i32, ptr %455, align 4, !tbaa !42
  %457 = icmp eq i32 %456, 0
  br i1 %457, label %458, label %460

458:                                              ; preds = %434
  %459 = call i32 (ptr, ...) @printf(ptr noundef @.str.63)
  call void @exit(i32 noundef 1) #8
  unreachable

460:                                              ; preds = %434
  br label %486

461:                                              ; preds = %426
  %462 = load ptr, ptr %6, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct._Effect, ptr %462, i32 0, i32 4
  %464 = load ptr, ptr %463, align 8, !tbaa !37
  %465 = getelementptr inbounds %struct._Literal, ptr %464, i32 0, i32 0
  store i8 0, ptr %465, align 8, !tbaa !41
  %466 = load ptr, ptr %6, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct._Effect, ptr %466, i32 0, i32 4
  %468 = load ptr, ptr %467, align 8, !tbaa !37
  %469 = getelementptr inbounds %struct._Literal, ptr %468, i32 0, i32 1
  %470 = load ptr, ptr %8, align 8, !tbaa !5
  %471 = load i32, ptr %5, align 4, !tbaa !9
  %472 = load ptr, ptr %6, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct._Effect, ptr %472, i32 0, i32 0
  %474 = load i32, ptr %473, align 8, !tbaa !17
  %475 = add nsw i32 %471, %474
  call void @make_Fact(ptr noundef %469, ptr noundef %470, i32 noundef %475)
  %476 = load ptr, ptr %6, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct._Effect, ptr %476, i32 0, i32 4
  %478 = load ptr, ptr %477, align 8, !tbaa !37
  %479 = getelementptr inbounds %struct._Literal, ptr %478, i32 0, i32 1
  %480 = getelementptr inbounds %struct._Fact, ptr %479, i32 0, i32 0
  %481 = load i32, ptr %480, align 4, !tbaa !42
  %482 = icmp eq i32 %481, 0
  br i1 %482, label %483, label %485

483:                                              ; preds = %461
  %484 = call i32 (ptr, ...) @printf(ptr noundef @.str.63)
  call void @exit(i32 noundef 1) #8
  unreachable

485:                                              ; preds = %461
  br label %486

486:                                              ; preds = %485, %460
  br label %487

487:                                              ; preds = %486, %409
  br label %488

488:                                              ; preds = %487, %329
  br label %489

489:                                              ; preds = %488
  %490 = load ptr, ptr %8, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct._PlNode, ptr %490, i32 0, i32 8
  %492 = load ptr, ptr %491, align 8, !tbaa !24
  store ptr %492, ptr %8, align 8, !tbaa !5
  br label %216, !llvm.loop !44

493:                                              ; preds = %216
  %494 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %494, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %495

495:                                              ; preds = %493, %206, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %496 = load ptr, ptr %3, align 8
  ret ptr %496
}

declare ptr @new_Effect() #1

declare ptr @new_NumericEffect() #1

declare ptr @new_Literal() #1

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 willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 8}
!15 = !{!"_TokenList", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_Effect", !10, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !6, i64 48}
!22 = distinct !{!22, !20}
!23 = !{!18, !6, i64 184}
!24 = !{!12, !6, i64 56}
!25 = !{!18, !6, i64 200}
!26 = !{!27, !6, i64 48}
!27 = !{!"_NumericEffect", !28, i64 0, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!28 = !{!"_Fluent", !10, i64 0, !7, i64 4}
!29 = !{!12, !6, i64 32}
!30 = !{!31, !6, i64 8}
!31 = !{!"_ParseExpNode", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!12, !10, i64 28}
!33 = !{!27, !10, i64 24}
!34 = !{!12, !6, i64 40}
!35 = !{!27, !6, i64 32}
!36 = !{!27, !6, i64 40}
!37 = !{!18, !6, i64 192}
!38 = !{!39, !6, i64 40}
!39 = !{!"_Literal", !7, i64 0, !40, i64 4, !6, i64 32, !6, i64 40}
!40 = !{!"_Fact", !10, i64 0, !7, i64 4}
!41 = !{!39, !7, i64 0}
!42 = !{!39, !10, i64 4}
!43 = !{!39, !6, i64 32}
!44 = distinct !{!44, !20}


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

@lvar_types = external dso_local local_unnamed_addr global [15 x i32], align 16
@lvar_names = external dso_local local_unnamed_addr global [15 x ptr], align 16
@.str.59 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare ptr @new_Token(i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @make_effect(ptr noundef readonly %0, i32 noundef %1) local_unnamed_addr #2 {
.lr.ph131:
  %2 = tail call ptr @new_Effect() #7
  %.not128 = icmp ne ptr %0, null
  tail call void @llvm.assume(i1 %.not128)
  %3 = getelementptr inbounds i8, ptr %2, i64 64
  %4 = getelementptr inbounds i8, ptr %2, i64 4
  br label %5

5:                                                ; preds = %._crit_edge, %.lr.ph131
  %.0109129 = phi ptr [ %0, %.lr.ph131 ], [ %65, %._crit_edge ]
  %6 = load i32, ptr %.0109129, align 8, !tbaa !5
  switch i32 %6, label %.critedge122 [
    i32 2008, label %7
    i32 2010, label %68
  ]

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %.0109129, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = tail call i32 @position_in_types_table(ptr noundef %12)
  %14 = icmp eq i32 %13, -1
  br i1 %14, label %18, label %.preheader123

.preheader123:                                    ; preds = %7
  %15 = load i32, ptr %2, align 8, !tbaa !15
  %16 = add nsw i32 %15, %1
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader123.._crit_edge_crit_edge

.preheader123.._crit_edge_crit_edge:              ; preds = %.preheader123
  %.pre141 = sext i32 %16 to i64
  br label %._crit_edge

18:                                               ; preds = %7
  %19 = load ptr, ptr %8, align 8, !tbaa !11
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.59, ptr noundef %20, ptr noundef %23)
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader123, %36
  %25 = phi i32 [ %37, %36 ], [ %15, %.preheader123 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %36 ], [ 0, %.preheader123 ]
  %26 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %indvars.iv
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = load ptr, ptr %8, align 8, !tbaa !11
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = icmp eq ptr %27, %29
  br i1 %30, label %34, label %31

31:                                               ; preds = %.lr.ph
  %32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) %29) #8
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %31, %.lr.ph
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60, ptr noundef %29)
  %.pre = load i32, ptr %2, align 8, !tbaa !15
  br label %36

36:                                               ; preds = %31, %34
  %37 = phi i32 [ %25, %31 ], [ %.pre, %34 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = add nsw i32 %37, %1
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %36, %.preheader123.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre141, %.preheader123.._crit_edge_crit_edge ], [ %39, %36 ]
  %41 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %.pre-phi
  store i32 %13, ptr %41, align 4, !tbaa !20
  %42 = load ptr, ptr %8, align 8, !tbaa !11
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = load i32, ptr %2, align 8, !tbaa !15
  %45 = add nsw i32 %44, %1
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %46
  store ptr %43, ptr %47, align 8, !tbaa !17
  %48 = load ptr, ptr %8, align 8, !tbaa !11
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %49) #8
  %51 = trunc i64 %50 to i32
  %52 = add i32 %51, 1
  %53 = tail call ptr @new_Token(i32 noundef %52) #7
  %54 = load i32, ptr %2, align 8, !tbaa !15
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x ptr], ptr %3, i64 0, i64 %55
  store ptr %53, ptr %56, align 8, !tbaa !17
  %57 = load ptr, ptr %8, align 8, !tbaa !11
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %58) #7
  %60 = load i32, ptr %2, align 8, !tbaa !15
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %2, align 8, !tbaa !15
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds [15 x i32], ptr %4, i64 0, i64 %62
  store i32 %13, ptr %63, align 4, !tbaa !20
  %64 = getelementptr inbounds i8, ptr %.0109129, i64 48
  %65 = load ptr, ptr %64, align 8, !tbaa !21, !nonnull !22, !noundef !22
  br label %5

.critedge122:                                     ; preds = %5
  %66 = load i32, ptr %.0109129, align 8, !tbaa !5
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61, i32 noundef %66)
  tail call void @exit(i32 noundef 1) #9
  unreachable

68:                                               ; preds = %5
  %69 = getelementptr inbounds i8, ptr %.0109129, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !21
  %71 = load i32, ptr %2, align 8, !tbaa !15
  %72 = add nsw i32 %71, %1
  %73 = tail call ptr @make_Wff(ptr noundef %70, i32 noundef %72)
  %74 = getelementptr inbounds i8, ptr %2, i64 184
  store ptr %73, ptr %74, align 8, !tbaa !23
  %75 = load ptr, ptr %69, align 8, !tbaa !21
  %76 = getelementptr inbounds i8, ptr %75, i64 56
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = load i32, ptr %77, align 8, !tbaa !5
  %.not117 = icmp eq i32 %78, 2006
  br i1 %.not117, label %81, label %79

79:                                               ; preds = %68
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.62, i32 noundef %78)
  tail call void @exit(i32 noundef 1) #9
  unreachable

81:                                               ; preds = %68
  %82 = getelementptr inbounds i8, ptr %77, i64 48
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %.not118 = icmp eq ptr %83, null
  br i1 %.not118, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %81
  %84 = getelementptr inbounds i8, ptr %2, i64 192
  %85 = getelementptr inbounds i8, ptr %2, i64 200
  br label %86

86:                                               ; preds = %.preheader, %196
  %.0108135 = phi ptr [ %83, %.preheader ], [ %198, %196 ]
  %87 = load i32, ptr %.0108135, align 8, !tbaa !5
  %88 = icmp eq i32 %87, 2004
  br i1 %88, label %89, label %135

89:                                               ; preds = %86
  %90 = load ptr, ptr %85, align 8, !tbaa !25
  %.not121 = icmp eq ptr %90, null
  %91 = tail call ptr @new_NumericEffect() #7
  br i1 %.not121, label %117, label %92

92:                                               ; preds = %89
  %93 = load ptr, ptr %85, align 8, !tbaa !25
  %94 = getelementptr inbounds i8, ptr %93, i64 48
  store ptr %91, ptr %94, align 8, !tbaa !26
  %95 = getelementptr inbounds i8, ptr %.0108135, i64 32
  %96 = load ptr, ptr %95, align 8, !tbaa !29
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !30
  %99 = load i32, ptr %2, align 8, !tbaa !15
  %100 = add nsw i32 %99, %1
  tail call void @make_Fluent(ptr noundef %91, ptr noundef %98, i32 noundef %100)
  %101 = getelementptr inbounds i8, ptr %.0108135, i64 28
  %102 = load i32, ptr %101, align 4, !tbaa !32
  %103 = load ptr, ptr %85, align 8, !tbaa !25
  %104 = getelementptr inbounds i8, ptr %103, i64 48
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = getelementptr inbounds i8, ptr %105, i64 24
  store i32 %102, ptr %106, align 8, !tbaa !33
  %107 = getelementptr inbounds i8, ptr %.0108135, i64 40
  %108 = load ptr, ptr %107, align 8, !tbaa !34
  %109 = load i32, ptr %2, align 8, !tbaa !15
  %110 = add nsw i32 %109, %1
  %111 = tail call ptr @make_ExpNode(ptr noundef %108, i32 noundef %110)
  %112 = load ptr, ptr %85, align 8, !tbaa !25
  %113 = getelementptr inbounds i8, ptr %112, i64 48
  %114 = load ptr, ptr %113, align 8, !tbaa !26
  %115 = getelementptr inbounds i8, ptr %114, i64 32
  store ptr %111, ptr %115, align 8, !tbaa !35
  %116 = getelementptr inbounds i8, ptr %114, i64 40
  store ptr %112, ptr %116, align 8, !tbaa !36
  store ptr %114, ptr %85, align 8, !tbaa !25
  br label %196

117:                                              ; preds = %89
  store ptr %91, ptr %85, align 8, !tbaa !25
  %118 = getelementptr inbounds i8, ptr %.0108135, i64 32
  %119 = load ptr, ptr %118, align 8, !tbaa !29
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load ptr, ptr %120, align 8, !tbaa !30
  %122 = load i32, ptr %2, align 8, !tbaa !15
  %123 = add nsw i32 %122, %1
  tail call void @make_Fluent(ptr noundef %91, ptr noundef %121, i32 noundef %123)
  %124 = getelementptr inbounds i8, ptr %.0108135, i64 28
  %125 = load i32, ptr %124, align 4, !tbaa !32
  %126 = load ptr, ptr %85, align 8, !tbaa !25
  %127 = getelementptr inbounds i8, ptr %126, i64 24
  store i32 %125, ptr %127, align 8, !tbaa !33
  %128 = getelementptr inbounds i8, ptr %.0108135, i64 40
  %129 = load ptr, ptr %128, align 8, !tbaa !34
  %130 = load i32, ptr %2, align 8, !tbaa !15
  %131 = add nsw i32 %130, %1
  %132 = tail call ptr @make_ExpNode(ptr noundef %129, i32 noundef %131)
  %133 = load ptr, ptr %85, align 8, !tbaa !25
  %134 = getelementptr inbounds i8, ptr %133, i64 32
  store ptr %132, ptr %134, align 8, !tbaa !35
  br label %196

135:                                              ; preds = %86
  %136 = load ptr, ptr %84, align 8, !tbaa !37
  %.not120 = icmp eq ptr %136, null
  %137 = tail call ptr @new_Literal() #7
  br i1 %.not120, label %172, label %138

138:                                              ; preds = %135
  %139 = load ptr, ptr %84, align 8, !tbaa !37
  %140 = getelementptr inbounds i8, ptr %139, i64 40
  store ptr %137, ptr %140, align 8, !tbaa !38
  %141 = load i32, ptr %.0108135, align 8, !tbaa !5
  %142 = icmp eq i32 %141, 2005
  %143 = getelementptr inbounds i8, ptr %137, i64 4
  br i1 %142, label %144, label %157

144:                                              ; preds = %138
  store i8 1, ptr %137, align 8, !tbaa !41
  %145 = getelementptr inbounds i8, ptr %.0108135, i64 48
  %146 = load ptr, ptr %145, align 8, !tbaa !21
  %147 = load i32, ptr %2, align 8, !tbaa !15
  %148 = add nsw i32 %147, %1
  tail call void @make_Fact(ptr noundef nonnull %143, ptr noundef %146, i32 noundef %148)
  %149 = load ptr, ptr %84, align 8, !tbaa !37
  %150 = getelementptr inbounds i8, ptr %149, i64 40
  %151 = load ptr, ptr %150, align 8, !tbaa !38
  %152 = getelementptr inbounds i8, ptr %151, i64 4
  %153 = load i32, ptr %152, align 4, !tbaa !42
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %168

155:                                              ; preds = %144
  %156 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63)
  tail call void @exit(i32 noundef 1) #9
  unreachable

157:                                              ; preds = %138
  store i8 0, ptr %137, align 8, !tbaa !41
  %158 = load i32, ptr %2, align 8, !tbaa !15
  %159 = add nsw i32 %158, %1
  tail call void @make_Fact(ptr noundef nonnull %143, ptr noundef nonnull %.0108135, i32 noundef %159)
  %160 = load ptr, ptr %84, align 8, !tbaa !37
  %161 = getelementptr inbounds i8, ptr %160, i64 40
  %162 = load ptr, ptr %161, align 8, !tbaa !38
  %163 = getelementptr inbounds i8, ptr %162, i64 4
  %164 = load i32, ptr %163, align 4, !tbaa !42
  %165 = icmp eq i32 %164, 0
  br i1 %165, label %166, label %168

166:                                              ; preds = %157
  %167 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63)
  tail call void @exit(i32 noundef 1) #9
  unreachable

168:                                              ; preds = %157, %144
  %169 = phi ptr [ %162, %157 ], [ %151, %144 ]
  %170 = phi ptr [ %160, %157 ], [ %149, %144 ]
  %171 = getelementptr inbounds i8, ptr %169, i64 32
  store ptr %170, ptr %171, align 8, !tbaa !43
  store ptr %169, ptr %84, align 8, !tbaa !37
  br label %196

172:                                              ; preds = %135
  store ptr %137, ptr %84, align 8, !tbaa !37
  %173 = load i32, ptr %.0108135, align 8, !tbaa !5
  %174 = icmp eq i32 %173, 2005
  %175 = getelementptr inbounds i8, ptr %137, i64 4
  br i1 %174, label %176, label %187

176:                                              ; preds = %172
  store i8 1, ptr %137, align 8, !tbaa !41
  %177 = getelementptr inbounds i8, ptr %.0108135, i64 48
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load i32, ptr %2, align 8, !tbaa !15
  %180 = add nsw i32 %179, %1
  tail call void @make_Fact(ptr noundef nonnull %175, ptr noundef %178, i32 noundef %180)
  %181 = load ptr, ptr %84, align 8, !tbaa !37
  %182 = getelementptr inbounds i8, ptr %181, i64 4
  %183 = load i32, ptr %182, align 4, !tbaa !42
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %185, label %196

185:                                              ; preds = %176
  %186 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63)
  tail call void @exit(i32 noundef 1) #9
  unreachable

187:                                              ; preds = %172
  store i8 0, ptr %137, align 8, !tbaa !41
  %188 = load i32, ptr %2, align 8, !tbaa !15
  %189 = add nsw i32 %188, %1
  tail call void @make_Fact(ptr noundef nonnull %175, ptr noundef nonnull %.0108135, i32 noundef %189)
  %190 = load ptr, ptr %84, align 8, !tbaa !37
  %191 = getelementptr inbounds i8, ptr %190, i64 4
  %192 = load i32, ptr %191, align 4, !tbaa !42
  %193 = icmp eq i32 %192, 0
  br i1 %193, label %194, label %196

194:                                              ; preds = %187
  %195 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63)
  tail call void @exit(i32 noundef 1) #9
  unreachable

196:                                              ; preds = %117, %92, %176, %187, %168
  %197 = getelementptr inbounds i8, ptr %.0108135, i64 56
  %198 = load ptr, ptr %197, align 8, !tbaa !24
  %.not119 = icmp eq ptr %198, null
  br i1 %.not119, label %.loopexit, label %86, !llvm.loop !44

.loopexit:                                        ; preds = %196, %81, %18
  %.0107 = phi ptr [ null, %18 ], [ %2, %81 ], [ %2, %196 ]
  ret ptr %.0107
}

declare ptr @new_Effect() local_unnamed_addr #1

declare ptr @new_NumericEffect() local_unnamed_addr #1

declare ptr @new_Literal() local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #6

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 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 8}
!13 = !{!"_TokenList", !10, i64 0, !10, i64 8}
!14 = !{!13, !10, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_Effect", !7, i64 0, !8, i64 4, !8, i64 64, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !10, i64 48}
!22 = !{}
!23 = !{!16, !10, i64 184}
!24 = !{!6, !10, i64 56}
!25 = !{!16, !10, i64 200}
!26 = !{!27, !10, i64 48}
!27 = !{!"_NumericEffect", !28, i64 0, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!28 = !{!"_Fluent", !7, i64 0, !8, i64 4}
!29 = !{!6, !10, i64 32}
!30 = !{!31, !10, i64 8}
!31 = !{!"_ParseExpNode", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!32 = !{!6, !7, i64 28}
!33 = !{!27, !7, i64 24}
!34 = !{!6, !10, i64 40}
!35 = !{!27, !10, i64 32}
!36 = !{!27, !10, i64 40}
!37 = !{!16, !10, i64 192}
!38 = !{!39, !10, i64 40}
!39 = !{!"_Literal", !8, i64 0, !40, i64 4, !10, i64 32, !10, i64 40}
!40 = !{!"_Fact", !7, i64 0, !8, i64 4}
!41 = !{!39, !8, i64 0}
!42 = !{!39, !7, i64 4}
!43 = !{!39, !10, i64 32}
!44 = distinct !{!44, !19}


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