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

; 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._WffNode = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, i8 }
%struct._Fact = type { i32, [5 x i32] }
%struct._ExpNode = type { i32, ptr, i32, float, float, ptr, ptr, ptr }

@garity = external global [50 x i32], align 16
@linst_table = external dso_local global [15 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [49 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
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @instantiate_wff(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._WffNode, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  switch i32 %15, label %348 [
    i32 2006, label %16
    i32 2007, label %75
    i32 2002, label %134
    i32 2003, label %258
    i32 2000, label %343
    i32 2001, label %343
  ]

16:                                               ; preds = %1
  store i32 0, ptr %8, align 4, !tbaa !12
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._WffNode, ptr %17, i32 0, i32 4
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  store ptr %19, ptr %6, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %53, %38, %16
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %60

23:                                               ; preds = %20
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call ptr @instantiate_wff(ptr noundef %24)
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._WffNode, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp eq i32 %28, 2001
  br i1 %29, label %30, label %33

30:                                               ; preds = %23
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free_WffNode(ptr noundef %31)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %32, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %355

33:                                               ; preds = %23
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._WffNode, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = icmp eq i32 %36, 2000
  br i1 %37, label %38, label %43

38:                                               ; preds = %33
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %39) #5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._WffNode, ptr %40, i32 0, i32 5
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  store ptr %42, ptr %6, align 8, !tbaa !5
  br label %20, !llvm.loop !15

43:                                               ; preds = %33
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._WffNode, ptr %45, i32 0, i32 5
  store ptr %44, ptr %46, align 8, !tbaa !14
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %53

49:                                               ; preds = %43
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._WffNode, ptr %51, i32 0, i32 6
  store ptr %50, ptr %52, align 8, !tbaa !17
  br label %53

53:                                               ; preds = %49, %43
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %54, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._WffNode, ptr %55, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  store ptr %57, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !12
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %8, align 4, !tbaa !12
  br label %20, !llvm.loop !15

60:                                               ; preds = %20
  %61 = load i32, ptr %8, align 4, !tbaa !12
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %60
  %64 = call ptr @new_WffNode(i32 noundef 2000)
  store ptr %64, ptr %4, align 8, !tbaa !5
  br label %353

65:                                               ; preds = %60
  %66 = load i32, ptr %8, align 4, !tbaa !12
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  br label %353

69:                                               ; preds = %65
  %70 = call ptr @new_WffNode(i32 noundef 2006)
  store ptr %70, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._WffNode, ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !13
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %74, ptr %4, align 8, !tbaa !5
  br label %353

75:                                               ; preds = %1
  store i32 0, ptr %8, align 4, !tbaa !12
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._WffNode, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  store ptr %78, ptr %6, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %112, %97, %75
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %119

82:                                               ; preds = %79
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = call ptr @instantiate_wff(ptr noundef %83)
  store ptr %84, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._WffNode, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !9
  %88 = icmp eq i32 %87, 2000
  br i1 %88, label %89, label %92

89:                                               ; preds = %82
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free_WffNode(ptr noundef %90)
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %91, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %355

92:                                               ; preds = %82
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._WffNode, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = icmp eq i32 %95, 2001
  br i1 %96, label %97, label %102

97:                                               ; preds = %92
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %98) #5
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._WffNode, ptr %99, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !14
  store ptr %101, ptr %6, align 8, !tbaa !5
  br label %79, !llvm.loop !18

102:                                              ; preds = %92
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._WffNode, ptr %104, i32 0, i32 5
  store ptr %103, ptr %105, align 8, !tbaa !14
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %112

108:                                              ; preds = %102
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._WffNode, ptr %110, i32 0, i32 6
  store ptr %109, ptr %111, align 8, !tbaa !17
  br label %112

112:                                              ; preds = %108, %102
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %113, ptr %4, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._WffNode, ptr %114, i32 0, i32 5
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  store ptr %116, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !12
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %8, align 4, !tbaa !12
  br label %79, !llvm.loop !18

119:                                              ; preds = %79
  %120 = load i32, ptr %8, align 4, !tbaa !12
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  %123 = call ptr @new_WffNode(i32 noundef 2001)
  store ptr %123, ptr %4, align 8, !tbaa !5
  br label %353

124:                                              ; preds = %119
  %125 = load i32, ptr %8, align 4, !tbaa !12
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %124
  br label %353

128:                                              ; preds = %124
  %129 = call ptr @new_WffNode(i32 noundef 2007)
  store ptr %129, ptr %5, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._WffNode, ptr %131, i32 0, i32 4
  store ptr %130, ptr %132, align 8, !tbaa !13
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %133, ptr %4, align 8, !tbaa !5
  br label %353

134:                                              ; preds = %1
  %135 = call ptr @new_WffNode(i32 noundef 2002)
  store ptr %135, ptr %4, align 8, !tbaa !5
  %136 = call ptr @new_Fact()
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._WffNode, ptr %137, i32 0, i32 7
  store ptr %136, ptr %138, align 8, !tbaa !19
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._WffNode, ptr %139, i32 0, i32 7
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = getelementptr inbounds %struct._Fact, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4, !tbaa !20
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._WffNode, ptr %144, i32 0, i32 7
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = getelementptr inbounds %struct._Fact, ptr %146, i32 0, i32 0
  store i32 %143, ptr %147, align 4, !tbaa !20
  store i8 1, ptr %10, align 1, !tbaa !22
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %148

148:                                              ; preds = %222, %134
  %149 = load i32, ptr %7, align 4, !tbaa !12
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._WffNode, ptr %150, i32 0, i32 7
  %152 = load ptr, ptr %151, align 8, !tbaa !19
  %153 = getelementptr inbounds %struct._Fact, ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 4, !tbaa !20
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !12
  %158 = icmp slt i32 %149, %157
  br i1 %158, label %159, label %225

159:                                              ; preds = %148
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._WffNode, ptr %160, i32 0, i32 7
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = getelementptr inbounds %struct._Fact, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %7, align 4, !tbaa !12
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [5 x i32], ptr %163, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !12
  %168 = icmp slt i32 %167, 0
  br i1 %168, label %169, label %183

169:                                              ; preds = %159
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._WffNode, ptr %170, i32 0, i32 7
  %172 = load ptr, ptr %171, align 8, !tbaa !19
  %173 = getelementptr inbounds %struct._Fact, ptr %172, i32 0, i32 1
  %174 = load i32, ptr %7, align 4, !tbaa !12
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [5 x i32], ptr %173, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !12
  %178 = add nsw i32 %177, 1
  %179 = mul nsw i32 %178, -1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [15 x i32], ptr @linst_table, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !12
  br label %192

183:                                              ; preds = %159
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._WffNode, ptr %184, i32 0, i32 7
  %186 = load ptr, ptr %185, align 8, !tbaa !19
  %187 = getelementptr inbounds %struct._Fact, ptr %186, i32 0, i32 1
  %188 = load i32, ptr %7, align 4, !tbaa !12
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [5 x i32], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !12
  br label %192

192:                                              ; preds = %183, %169
  %193 = phi i32 [ %182, %169 ], [ %191, %183 ]
  store i32 %193, ptr %9, align 4, !tbaa !12
  %194 = load i32, ptr %9, align 4, !tbaa !12
  %195 = icmp slt i32 %194, 0
  br i1 %195, label %196, label %212

196:                                              ; preds = %192
  store i8 0, ptr %10, align 1, !tbaa !22
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct._WffNode, ptr %197, i32 0, i32 7
  %199 = load ptr, ptr %198, align 8, !tbaa !19
  %200 = getelementptr inbounds %struct._Fact, ptr %199, i32 0, i32 1
  %201 = load i32, ptr %7, align 4, !tbaa !12
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [5 x i32], ptr %200, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !12
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct._WffNode, ptr %205, i32 0, i32 7
  %207 = load ptr, ptr %206, align 8, !tbaa !19
  %208 = getelementptr inbounds %struct._Fact, ptr %207, i32 0, i32 1
  %209 = load i32, ptr %7, align 4, !tbaa !12
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [5 x i32], ptr %208, i64 0, i64 %210
  store i32 %204, ptr %211, align 4, !tbaa !12
  br label %221

212:                                              ; preds = %192
  %213 = load i32, ptr %9, align 4, !tbaa !12
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._WffNode, ptr %214, i32 0, i32 7
  %216 = load ptr, ptr %215, align 8, !tbaa !19
  %217 = getelementptr inbounds %struct._Fact, ptr %216, i32 0, i32 1
  %218 = load i32, ptr %7, align 4, !tbaa !12
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [5 x i32], ptr %217, i64 0, i64 %219
  store i32 %213, ptr %220, align 4, !tbaa !12
  br label %221

221:                                              ; preds = %212, %196
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %7, align 4, !tbaa !12
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %7, align 4, !tbaa !12
  br label %148, !llvm.loop !23

225:                                              ; preds = %148
  %226 = load i8, ptr %10, align 1, !tbaa !22
  %227 = icmp ne i8 %226, 0
  br i1 %227, label %229, label %228

228:                                              ; preds = %225
  br label %353

229:                                              ; preds = %225
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct._WffNode, ptr %230, i32 0, i32 7
  %232 = load ptr, ptr %231, align 8, !tbaa !19
  %233 = call zeroext i8 @full_possibly_negative(ptr noundef %232)
  %234 = icmp ne i8 %233, 0
  br i1 %234, label %243, label %235

235:                                              ; preds = %229
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct._WffNode, ptr %236, i32 0, i32 7
  %238 = load ptr, ptr %237, align 8, !tbaa !19
  call void @free(ptr noundef %238) #5
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct._WffNode, ptr %239, i32 0, i32 7
  store ptr null, ptr %240, align 8, !tbaa !19
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._WffNode, ptr %241, i32 0, i32 0
  store i32 2000, ptr %242, align 8, !tbaa !9
  br label %353

243:                                              ; preds = %229
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct._WffNode, ptr %244, i32 0, i32 7
  %246 = load ptr, ptr %245, align 8, !tbaa !19
  %247 = call zeroext i8 @full_possibly_positive(ptr noundef %246)
  %248 = icmp ne i8 %247, 0
  br i1 %248, label %257, label %249

249:                                              ; preds = %243
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct._WffNode, ptr %250, i32 0, i32 7
  %252 = load ptr, ptr %251, align 8, !tbaa !19
  call void @free(ptr noundef %252) #5
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct._WffNode, ptr %253, i32 0, i32 7
  store ptr null, ptr %254, align 8, !tbaa !19
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct._WffNode, ptr %255, i32 0, i32 0
  store i32 2001, ptr %256, align 8, !tbaa !9
  br label %353

257:                                              ; preds = %243
  br label %353

258:                                              ; preds = %1
  %259 = call ptr @new_WffNode(i32 noundef 2003)
  store ptr %259, ptr %4, align 8, !tbaa !5
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct._WffNode, ptr %260, i32 0, i32 10
  %262 = load i32, ptr %261, align 8, !tbaa !24
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct._WffNode, ptr %263, i32 0, i32 10
  store i32 %262, ptr %264, align 8, !tbaa !24
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct._WffNode, ptr %265, i32 0, i32 11
  %267 = load ptr, ptr %266, align 8, !tbaa !25
  %268 = call ptr @copy_Exp(ptr noundef %267)
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct._WffNode, ptr %269, i32 0, i32 11
  store ptr %268, ptr %270, align 8, !tbaa !25
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._WffNode, ptr %271, i32 0, i32 12
  %273 = load ptr, ptr %272, align 8, !tbaa !26
  %274 = call ptr @copy_Exp(ptr noundef %273)
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct._WffNode, ptr %275, i32 0, i32 12
  store ptr %274, ptr %276, align 8, !tbaa !26
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct._WffNode, ptr %277, i32 0, i32 11
  call void @instantiate_exp(ptr noundef %278)
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct._WffNode, ptr %279, i32 0, i32 12
  call void @instantiate_exp(ptr noundef %280)
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct._WffNode, ptr %281, i32 0, i32 11
  %283 = load ptr, ptr %282, align 8, !tbaa !25
  %284 = getelementptr inbounds %struct._ExpNode, ptr %283, i32 0, i32 0
  %285 = load i32, ptr %284, align 8, !tbaa !27
  %286 = icmp ne i32 %285, 1001
  br i1 %286, label %294, label %287

287:                                              ; preds = %258
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct._WffNode, ptr %288, i32 0, i32 12
  %290 = load ptr, ptr %289, align 8, !tbaa !26
  %291 = getelementptr inbounds %struct._ExpNode, ptr %290, i32 0, i32 0
  %292 = load i32, ptr %291, align 8, !tbaa !27
  %293 = icmp ne i32 %292, 1001
  br i1 %293, label %294, label %295

294:                                              ; preds = %287, %258
  br label %353

295:                                              ; preds = %287
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct._WffNode, ptr %296, i32 0, i32 10
  %298 = load i32, ptr %297, align 8, !tbaa !24
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct._WffNode, ptr %299, i32 0, i32 11
  %301 = load ptr, ptr %300, align 8, !tbaa !25
  %302 = getelementptr inbounds %struct._ExpNode, ptr %301, i32 0, i32 4
  %303 = load float, ptr %302, align 8, !tbaa !30
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct._WffNode, ptr %304, i32 0, i32 12
  %306 = load ptr, ptr %305, align 8, !tbaa !26
  %307 = getelementptr inbounds %struct._ExpNode, ptr %306, i32 0, i32 4
  %308 = load float, ptr %307, align 8, !tbaa !30
  %309 = call zeroext i8 @number_comparison_holds(i32 noundef %298, float noundef %303, float noundef %308)
  store i8 %309, ptr %11, align 1, !tbaa !22
  %310 = load i8, ptr %11, align 1, !tbaa !22
  %311 = icmp ne i8 %310, 0
  br i1 %311, label %312, label %327

312:                                              ; preds = %295
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct._WffNode, ptr %313, i32 0, i32 0
  store i32 2000, ptr %314, align 8, !tbaa !9
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct._WffNode, ptr %315, i32 0, i32 11
  %317 = load ptr, ptr %316, align 8, !tbaa !25
  call void @free_ExpNode(ptr noundef %317)
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct._WffNode, ptr %318, i32 0, i32 11
  store ptr null, ptr %319, align 8, !tbaa !25
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct._WffNode, ptr %320, i32 0, i32 12
  %322 = load ptr, ptr %321, align 8, !tbaa !26
  call void @free_ExpNode(ptr noundef %322)
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct._WffNode, ptr %323, i32 0, i32 12
  store ptr null, ptr %324, align 8, !tbaa !26
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct._WffNode, ptr %325, i32 0, i32 10
  store i32 -1, ptr %326, align 8, !tbaa !24
  br label %342

327:                                              ; preds = %295
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct._WffNode, ptr %328, i32 0, i32 0
  store i32 2001, ptr %329, align 8, !tbaa !9
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct._WffNode, ptr %330, i32 0, i32 11
  %332 = load ptr, ptr %331, align 8, !tbaa !25
  call void @free_ExpNode(ptr noundef %332)
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct._WffNode, ptr %333, i32 0, i32 11
  store ptr null, ptr %334, align 8, !tbaa !25
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct._WffNode, ptr %335, i32 0, i32 12
  %337 = load ptr, ptr %336, align 8, !tbaa !26
  call void @free_ExpNode(ptr noundef %337)
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct._WffNode, ptr %338, i32 0, i32 12
  store ptr null, ptr %339, align 8, !tbaa !26
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct._WffNode, ptr %340, i32 0, i32 10
  store i32 -1, ptr %341, align 8, !tbaa !24
  br label %342

342:                                              ; preds = %327, %312
  br label %353

343:                                              ; preds = %1, %1
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct._WffNode, ptr %344, i32 0, i32 0
  %346 = load i32, ptr %345, align 8, !tbaa !9
  %347 = call ptr @new_WffNode(i32 noundef %346)
  store ptr %347, ptr %4, align 8, !tbaa !5
  br label %353

348:                                              ; preds = %1
  %349 = load ptr, ptr %3, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct._WffNode, ptr %349, i32 0, i32 0
  %351 = load i32, ptr %350, align 8, !tbaa !9
  %352 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %351)
  call void @exit(i32 noundef 1) #6
  unreachable

353:                                              ; preds = %343, %342, %294, %257, %249, %235, %228, %128, %127, %122, %69, %68, %63
  %354 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %354, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %355

355:                                              ; preds = %353, %89, %30
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %356 = load ptr, ptr %2, align 8
  ret ptr %356
}

declare void @free_WffNode(ptr noundef) #1

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

declare ptr @copy_Exp(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @instantiate_exp(ptr noundef) #3

declare ptr @new_WffNode(i32 noundef) #1

declare ptr @new_Fact() #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @full_possibly_negative(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @full_possibly_positive(ptr noundef) #3

declare zeroext i8 @number_comparison_holds(i32 noundef, float noundef, float noundef) #1

declare void @free_ExpNode(ptr noundef) #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"_WffNode", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 32}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !6, i64 40}
!18 = distinct !{!18, !16}
!19 = !{!10, !6, i64 48}
!20 = !{!21, !11, i64 0}
!21 = !{!"_Fact", !11, i64 0, !7, i64 4}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !16}
!24 = !{!10, !11, i64 72}
!25 = !{!10, !6, i64 80}
!26 = !{!10, !6, i64 88}
!27 = !{!28, !11, i64 0}
!28 = !{!"_ExpNode", !11, i64 0, !6, i64 8, !11, i64 16, !29, i64 20, !29, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!29 = !{!"float", !7, i64 0}
!30 = !{!28, !29, i64 24}


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

@garity = external local_unnamed_addr global [50 x i32], align 16
@linst_table = external dso_local local_unnamed_addr global [15 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @instantiate_wff(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %2, label %113 [
    i32 2006, label %3
    i32 2007, label %21
    i32 2002, label %39
    i32 2003, label %80
    i32 2000, label %111
    i32 2001, label %111
  ]

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %.0109155164 = load ptr, ptr %4, align 8, !tbaa !11
  %.not123156165 = icmp eq ptr %.0109155164, null
  br i1 %.not123156165, label %.outer._crit_edge.thread, label %.lr.ph158

.lr.ph158:                                        ; preds = %3, %.outer
  %.0109155168 = phi ptr [ %.0109155, %.outer ], [ %.0109155164, %3 ]
  %.0104.ph167 = phi ptr [ %6, %.outer ], [ null, %3 ]
  %.0106.ph166 = phi i32 [ %16, %.outer ], [ 0, %3 ]
  br label %5

5:                                                ; preds = %.lr.ph158, %9
  %.0109157 = phi ptr [ %.0109155168, %.lr.ph158 ], [ %.0109, %9 ]
  %6 = tail call ptr @instantiate_wff(ptr noundef nonnull %.0109157)
  %7 = load i32, ptr %6, align 8, !tbaa !5
  switch i32 %7, label %11 [
    i32 2001, label %8
    i32 2000, label %9
  ]

8:                                                ; preds = %5
  tail call void @free_WffNode(ptr noundef %.0104.ph167) #5
  br label %._crit_edge.thread201

9:                                                ; preds = %5
  tail call void @free(ptr noundef nonnull %6) #5
  %10 = getelementptr inbounds i8, ptr %.0109157, i64 32
  %.0109 = load ptr, ptr %10, align 8, !tbaa !11
  %.not123 = icmp eq ptr %.0109, null
  br i1 %.not123, label %.outer._crit_edge, label %5, !llvm.loop !12

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr %.0104.ph167, ptr %12, align 8, !tbaa !14
  %.not124 = icmp eq ptr %.0104.ph167, null
  br i1 %.not124, label %.outer, label %13

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %.0104.ph167, i64 40
  store ptr %6, ptr %14, align 8, !tbaa !15
  br label %.outer

.outer:                                           ; preds = %13, %11
  %15 = getelementptr inbounds i8, ptr %.0109157, i64 32
  %16 = add nuw nsw i32 %.0106.ph166, 1
  %.0109155 = load ptr, ptr %15, align 8, !tbaa !11
  %.not123156 = icmp eq ptr %.0109155, null
  br i1 %.not123156, label %.outer._crit_edge, label %.lr.ph158, !llvm.loop !12

.outer._crit_edge:                                ; preds = %.outer, %9
  %.0106.ph.lcssa130 = phi i32 [ %.0106.ph166, %9 ], [ %16, %.outer ]
  %.0104.ph.lcssa129 = phi ptr [ %.0104.ph167, %9 ], [ %6, %.outer ]
  switch i32 %.0106.ph.lcssa130, label %18 [
    i32 0, label %.outer._crit_edge.thread
    i32 1, label %._crit_edge.thread201
  ]

.outer._crit_edge.thread:                         ; preds = %3, %.outer._crit_edge
  %17 = tail call ptr @new_WffNode(i32 noundef 2000) #5
  br label %._crit_edge.thread201

18:                                               ; preds = %.outer._crit_edge
  %19 = tail call ptr @new_WffNode(i32 noundef 2006) #5
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  store ptr %.0104.ph.lcssa129, ptr %20, align 8, !tbaa !16
  br label %._crit_edge.thread201

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  %.1110139148 = load ptr, ptr %22, align 8, !tbaa !11
  %.not121140149 = icmp eq ptr %.1110139148, null
  br i1 %.not121140149, label %.outer125._crit_edge.thread, label %.lr.ph142

.lr.ph142:                                        ; preds = %21, %.outer125
  %.1110139152 = phi ptr [ %.1110139, %.outer125 ], [ %.1110139148, %21 ]
  %.1105.ph151 = phi ptr [ %24, %.outer125 ], [ null, %21 ]
  %.1107.ph150 = phi i32 [ %34, %.outer125 ], [ 0, %21 ]
  br label %23

23:                                               ; preds = %.lr.ph142, %27
  %.1110141 = phi ptr [ %.1110139152, %.lr.ph142 ], [ %.1110, %27 ]
  %24 = tail call ptr @instantiate_wff(ptr noundef nonnull %.1110141)
  %25 = load i32, ptr %24, align 8, !tbaa !5
  switch i32 %25, label %29 [
    i32 2000, label %26
    i32 2001, label %27
  ]

26:                                               ; preds = %23
  tail call void @free_WffNode(ptr noundef %.1105.ph151) #5
  br label %._crit_edge.thread201

27:                                               ; preds = %23
  tail call void @free(ptr noundef nonnull %24) #5
  %28 = getelementptr inbounds i8, ptr %.1110141, i64 32
  %.1110 = load ptr, ptr %28, align 8, !tbaa !11
  %.not121 = icmp eq ptr %.1110, null
  br i1 %.not121, label %.outer125._crit_edge, label %23, !llvm.loop !17

29:                                               ; preds = %23
  %30 = getelementptr inbounds i8, ptr %24, i64 32
  store ptr %.1105.ph151, ptr %30, align 8, !tbaa !14
  %.not122 = icmp eq ptr %.1105.ph151, null
  br i1 %.not122, label %.outer125, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %.1105.ph151, i64 40
  store ptr %24, ptr %32, align 8, !tbaa !15
  br label %.outer125

.outer125:                                        ; preds = %31, %29
  %33 = getelementptr inbounds i8, ptr %.1110141, i64 32
  %34 = add nuw nsw i32 %.1107.ph150, 1
  %.1110139 = load ptr, ptr %33, align 8, !tbaa !11
  %.not121140 = icmp eq ptr %.1110139, null
  br i1 %.not121140, label %.outer125._crit_edge, label %.lr.ph142, !llvm.loop !17

.outer125._crit_edge:                             ; preds = %.outer125, %27
  %.1107.ph.lcssa136 = phi i32 [ %.1107.ph150, %27 ], [ %34, %.outer125 ]
  %.1105.ph.lcssa135 = phi ptr [ %.1105.ph151, %27 ], [ %24, %.outer125 ]
  switch i32 %.1107.ph.lcssa136, label %36 [
    i32 0, label %.outer125._crit_edge.thread
    i32 1, label %._crit_edge.thread201
  ]

.outer125._crit_edge.thread:                      ; preds = %21, %.outer125._crit_edge
  %35 = tail call ptr @new_WffNode(i32 noundef 2001) #5
  br label %._crit_edge.thread201

36:                                               ; preds = %.outer125._crit_edge
  %37 = tail call ptr @new_WffNode(i32 noundef 2007) #5
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  store ptr %.1105.ph.lcssa135, ptr %38, align 8, !tbaa !16
  br label %._crit_edge.thread201

39:                                               ; preds = %1
  %40 = tail call ptr @new_WffNode(i32 noundef 2002) #5
  %41 = tail call ptr @new_Fact() #5
  %42 = getelementptr inbounds i8, ptr %40, i64 48
  store ptr %41, ptr %42, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = load i32, ptr %44, align 4, !tbaa !19
  store i32 %45, ptr %41, align 4, !tbaa !19
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !21
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %39
  %50 = getelementptr inbounds i8, ptr %44, i64 4
  %51 = getelementptr inbounds i8, ptr %41, i64 4
  br label %.outer205

.outer205:                                        ; preds = %.thread197, %.lr.ph
  %indvars.iv.ph = phi i64 [ %indvars.iv.next199, %.thread197 ], [ 0, %.lr.ph ]
  %52 = phi i1 [ true, %.thread197 ], [ false, %.lr.ph ]
  br label %53

53:                                               ; preds = %.outer205, %63
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ %indvars.iv.ph, %.outer205 ]
  %54 = getelementptr inbounds [5 x i32], ptr %50, i64 0, i64 %indvars.iv
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %57, label %63

57:                                               ; preds = %53
  %58 = xor i32 %55, -1
  %59 = zext nneg i32 %58 to i64
  %60 = getelementptr inbounds [15 x i32], ptr @linst_table, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !21
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %.thread197, label %63

63:                                               ; preds = %57, %53
  %64 = phi i32 [ %61, %57 ], [ %55, %53 ]
  %65 = getelementptr inbounds [5 x i32], ptr %51, i64 0, i64 %indvars.iv
  store i32 %64, ptr %65, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = load i32, ptr %47, align 4, !tbaa !21
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next, %67
  br i1 %68, label %53, label %._crit_edge, !llvm.loop !22

.thread197:                                       ; preds = %57
  %69 = getelementptr inbounds [5 x i32], ptr %51, i64 0, i64 %indvars.iv
  store i32 %55, ptr %69, align 4, !tbaa !21
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv, 1
  %70 = load i32, ptr %47, align 4, !tbaa !21
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next199, %71
  br i1 %72, label %.outer205, label %._crit_edge.thread201, !llvm.loop !22

._crit_edge:                                      ; preds = %63
  br i1 %52, label %._crit_edge.thread201, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %39, %._crit_edge
  %73 = tail call zeroext i8 @full_possibly_negative(ptr noundef nonnull %41)
  %.not119 = icmp eq i8 %73, 0
  %74 = load ptr, ptr %42, align 8, !tbaa !18
  br i1 %.not119, label %75, label %76

75:                                               ; preds = %._crit_edge.thread
  tail call void @free(ptr noundef %74) #5
  store ptr null, ptr %42, align 8, !tbaa !18
  store i32 2000, ptr %40, align 8, !tbaa !5
  br label %._crit_edge.thread201

76:                                               ; preds = %._crit_edge.thread
  %77 = tail call zeroext i8 @full_possibly_positive(ptr noundef %74)
  %.not120 = icmp eq i8 %77, 0
  br i1 %.not120, label %78, label %._crit_edge.thread201

78:                                               ; preds = %76
  %79 = load ptr, ptr %42, align 8, !tbaa !18
  tail call void @free(ptr noundef %79) #5
  store ptr null, ptr %42, align 8, !tbaa !18
  store i32 2001, ptr %40, align 8, !tbaa !5
  br label %._crit_edge.thread201

80:                                               ; preds = %1
  %81 = tail call ptr @new_WffNode(i32 noundef 2003) #5
  %82 = getelementptr inbounds i8, ptr %0, i64 72
  %83 = load i32, ptr %82, align 8, !tbaa !23
  %84 = getelementptr inbounds i8, ptr %81, i64 72
  store i32 %83, ptr %84, align 8, !tbaa !23
  %85 = getelementptr inbounds i8, ptr %0, i64 80
  %86 = load ptr, ptr %85, align 8, !tbaa !24
  %87 = tail call ptr @copy_Exp(ptr noundef %86) #5
  %88 = getelementptr inbounds i8, ptr %81, i64 80
  store ptr %87, ptr %88, align 8, !tbaa !24
  %89 = getelementptr inbounds i8, ptr %0, i64 88
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = tail call ptr @copy_Exp(ptr noundef %90) #5
  %92 = getelementptr inbounds i8, ptr %81, i64 88
  store ptr %91, ptr %92, align 8, !tbaa !25
  tail call void @instantiate_exp(ptr noundef nonnull %88)
  tail call void @instantiate_exp(ptr noundef nonnull %92)
  %93 = load ptr, ptr %88, align 8, !tbaa !24
  %94 = load i32, ptr %93, align 8, !tbaa !26
  %.not = icmp eq i32 %94, 1001
  br i1 %.not, label %95, label %._crit_edge.thread201

95:                                               ; preds = %80
  %96 = load ptr, ptr %92, align 8, !tbaa !25
  %97 = load i32, ptr %96, align 8, !tbaa !26
  %.not116 = icmp eq i32 %97, 1001
  br i1 %.not116, label %98, label %._crit_edge.thread201

98:                                               ; preds = %95
  %99 = load i32, ptr %84, align 8, !tbaa !23
  %100 = getelementptr inbounds i8, ptr %93, i64 24
  %101 = load float, ptr %100, align 8, !tbaa !29
  %102 = getelementptr inbounds i8, ptr %96, i64 24
  %103 = load float, ptr %102, align 8, !tbaa !29
  %104 = tail call zeroext i8 @number_comparison_holds(i32 noundef %99, float noundef %101, float noundef %103) #5
  %.not117 = icmp eq i8 %104, 0
  br i1 %.not117, label %108, label %105

105:                                              ; preds = %98
  store i32 2000, ptr %81, align 8, !tbaa !5
  %106 = load ptr, ptr %88, align 8, !tbaa !24
  tail call void @free_ExpNode(ptr noundef %106) #5
  store ptr null, ptr %88, align 8, !tbaa !24
  %107 = load ptr, ptr %92, align 8, !tbaa !25
  tail call void @free_ExpNode(ptr noundef %107) #5
  store ptr null, ptr %92, align 8, !tbaa !25
  store i32 -1, ptr %84, align 8, !tbaa !23
  br label %._crit_edge.thread201

108:                                              ; preds = %98
  store i32 2001, ptr %81, align 8, !tbaa !5
  %109 = load ptr, ptr %88, align 8, !tbaa !24
  tail call void @free_ExpNode(ptr noundef %109) #5
  store ptr null, ptr %88, align 8, !tbaa !24
  %110 = load ptr, ptr %92, align 8, !tbaa !25
  tail call void @free_ExpNode(ptr noundef %110) #5
  store ptr null, ptr %92, align 8, !tbaa !25
  store i32 -1, ptr %84, align 8, !tbaa !23
  br label %._crit_edge.thread201

111:                                              ; preds = %1, %1
  %112 = tail call ptr @new_WffNode(i32 noundef %2) #5
  br label %._crit_edge.thread201

113:                                              ; preds = %1
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

._crit_edge.thread201:                            ; preds = %.thread197, %.outer._crit_edge.thread, %18, %.outer125._crit_edge.thread, %36, %75, %78, %111, %._crit_edge, %76, %95, %80, %108, %105, %.outer._crit_edge, %.outer125._crit_edge, %26, %8
  %.0 = phi ptr [ %24, %26 ], [ %6, %8 ], [ %112, %111 ], [ %81, %80 ], [ %81, %95 ], [ %81, %105 ], [ %81, %108 ], [ %40, %76 ], [ %40, %78 ], [ %40, %75 ], [ %40, %._crit_edge ], [ %35, %.outer125._crit_edge.thread ], [ %37, %36 ], [ %17, %.outer._crit_edge.thread ], [ %19, %18 ], [ %.0104.ph.lcssa129, %.outer._crit_edge ], [ %.1105.ph.lcssa135, %.outer125._crit_edge ], [ %40, %.thread197 ]
  ret ptr %.0
}

declare void @free_WffNode(ptr noundef) local_unnamed_addr #3

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

declare ptr @copy_Exp(ptr noundef) local_unnamed_addr #3

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

declare ptr @new_WffNode(i32 noundef) local_unnamed_addr #3

declare ptr @new_Fact() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @full_possibly_negative(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @full_possibly_positive(ptr noundef) local_unnamed_addr #2

declare zeroext i8 @number_comparison_holds(i32 noundef, float noundef, float noundef) local_unnamed_addr #3

declare void @free_ExpNode(ptr noundef) local_unnamed_addr #3

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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"_WffNode", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !10, i64 88, !8, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 40}
!16 = !{!6, !10, i64 24}
!17 = distinct !{!17, !13}
!18 = !{!6, !10, i64 48}
!19 = !{!20, !7, i64 0}
!20 = !{!"_Fact", !7, i64 0, !8, i64 4}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !13}
!23 = !{!6, !7, i64 72}
!24 = !{!6, !10, i64 80}
!25 = !{!6, !10, i64 88}
!26 = !{!27, !7, i64 0}
!27 = !{!"_ExpNode", !7, i64 0, !10, i64 8, !7, i64 16, !28, i64 20, !28, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!28 = !{!"float", !8, i64 0}
!29 = !{!27, !28, i64 24}


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