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

@gtype_size = external global [50 x i32], align 16
@gnum_predicates = external global i32, align 4
@gpredicates = external global [50 x ptr], align 16
@garity = external global [50 x i32], align 16
@gpredicates_args_type = external global [50 x [5 x i32]], align 16
@gnum_operators = external global i32, align 4
@goperators = external global [50000 x ptr], align 16
@ggoal = external global ptr, align 8
@gaxiom_added = external global [50 x i8], align 16
@gis_added = external global [50 x i8], align 16
@gis_deleted = external global [50 x i8], align 16
@ginitial_predicate = external global ptr, align 8
@.str.112 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [7 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: noreturn nounwind
declare void @exit(i32 noundef) #2

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

declare ptr @new_Literal() #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @translate_one_negative_cond(ptr noundef %0) #5 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %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 %48 [
    i32 2008, label %16
    i32 2009, label %16
    i32 2006, label %18
    i32 2007, label %18
    i32 2005, label %36
    i32 2003, label %47
    i32 2002, label %47
    i32 2000, label %47
    i32 2001, label %47
  ]

16:                                               ; preds = %1, %1
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.112)
  call void @exit(i32 noundef 1) #8
  unreachable

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

22:                                               ; preds = %31, %18
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %35

25:                                               ; preds = %22
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call zeroext i8 @translate_one_negative_cond(ptr noundef %26)
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  store i8 1, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %311

30:                                               ; preds = %25
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._WffNode, ptr %32, i32 0, i32 5
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  store ptr %34, ptr %4, align 8, !tbaa !5
  br label %22, !llvm.loop !14

35:                                               ; preds = %22
  store i8 0, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %311

36:                                               ; preds = %1
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._WffNode, ptr %37, i32 0, i32 9
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds %struct._WffNode, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds %struct._Fact, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !18
  %44 = icmp eq i32 %43, -1
  br i1 %44, label %45, label %46

45:                                               ; preds = %36
  store i8 0, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %311

46:                                               ; preds = %36
  br label %53

47:                                               ; preds = %1, %1, %1, %1
  store i8 0, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %311

48:                                               ; preds = %1
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._WffNode, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !9
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.113, i32 noundef %51)
  call void @exit(i32 noundef 1) #8
  unreachable

53:                                               ; preds = %46
  %54 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %55 = icmp eq i32 %54, 50
  br i1 %55, label %56, label %58

56:                                               ; preds = %53
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.114, i32 noundef 50)
  call void @exit(i32 noundef 1) #8
  unreachable

58:                                               ; preds = %53
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._WffNode, ptr %59, i32 0, i32 9
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds %struct._WffNode, ptr %61, i32 0, i32 7
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = getelementptr inbounds %struct._Fact, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !18
  store i32 %65, ptr %5, align 4, !tbaa !20
  %66 = load i32, ptr %5, align 4, !tbaa !20
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50 x i8], ptr @gaxiom_added, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !21
  %70 = icmp ne i8 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %58
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.115)
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.116)
  call void @exit(i32 noundef 1) #8
  unreachable

74:                                               ; preds = %58
  %75 = load i32, ptr %5, align 4, !tbaa !20
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.117, ptr noundef %78)
  br label %80

80:                                               ; preds = %74
  %81 = load i32, ptr %5, align 4, !tbaa !20
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = call i64 @strlen(ptr noundef %84) #9
  %86 = add i64 %85, 5
  %87 = trunc i64 %86 to i32
  %88 = call ptr @new_Token(i32 noundef %87)
  %89 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %90
  store ptr %88, ptr %91, align 8, !tbaa !5
  %92 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load i32, ptr %5, align 4, !tbaa !20
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %95, ptr noundef @.str.118, ptr noundef %99) #7
  %101 = load i32, ptr %5, align 4, !tbaa !20
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !20
  %105 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %106
  store i32 %104, ptr %107, align 4, !tbaa !20
  store i32 0, ptr %6, align 4, !tbaa !20
  br label %108

108:                                              ; preds = %129, %80
  %109 = load i32, ptr %6, align 4, !tbaa !20
  %110 = load i32, ptr %5, align 4, !tbaa !20
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !20
  %114 = icmp slt i32 %109, %113
  br i1 %114, label %115, label %132

115:                                              ; preds = %108
  %116 = load i32, ptr %5, align 4, !tbaa !20
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %117
  %119 = load i32, ptr %6, align 4, !tbaa !20
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [5 x i32], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !20
  %123 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %124
  %126 = load i32, ptr %6, align 4, !tbaa !20
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [5 x i32], ptr %125, i64 0, i64 %127
  store i32 %122, ptr %128, align 4, !tbaa !20
  br label %129

129:                                              ; preds = %115
  %130 = load i32, ptr %6, align 4, !tbaa !20
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %6, align 4, !tbaa !20
  br label %108, !llvm.loop !22

132:                                              ; preds = %108
  %133 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %134
  store i8 0, ptr %135, align 1, !tbaa !21
  %136 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %137
  store i8 0, ptr %138, align 1, !tbaa !21
  store i32 1, ptr %8, align 4, !tbaa !20
  store i32 0, ptr %6, align 4, !tbaa !20
  br label %139

139:                                              ; preds = %159, %132
  %140 = load i32, ptr %6, align 4, !tbaa !20
  %141 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !20
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %146, label %162

146:                                              ; preds = %139
  %147 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %148
  %150 = load i32, ptr %6, align 4, !tbaa !20
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [5 x i32], ptr %149, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !20
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !20
  %157 = load i32, ptr %8, align 4, !tbaa !20
  %158 = mul nsw i32 %157, %156
  store i32 %158, ptr %8, align 4, !tbaa !20
  br label %159

159:                                              ; preds = %146
  %160 = load i32, ptr %6, align 4, !tbaa !20
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %6, align 4, !tbaa !20
  br label %139, !llvm.loop !23

162:                                              ; preds = %139
  %163 = load i32, ptr %8, align 4, !tbaa !20
  %164 = sext i32 %163 to i64
  %165 = call noalias ptr @calloc(i64 noundef %164, i64 noundef 24) #10
  %166 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !5
  %167 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %166, i64 %168
  store ptr %165, ptr %169, align 8, !tbaa !5
  %170 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr @gnum_predicates, align 4, !tbaa !20
  %172 = load i32, ptr %5, align 4, !tbaa !20
  %173 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %174 = sub nsw i32 %173, 1
  call void @replace_not_p_with_n_in_wff(i32 noundef %172, i32 noundef %174, ptr noundef @ggoal)
  store i32 0, ptr %6, align 4, !tbaa !20
  br label %175

175:                                              ; preds = %304, %162
  %176 = load i32, ptr %6, align 4, !tbaa !20
  %177 = load i32, ptr @gnum_operators, align 4, !tbaa !20
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %179, label %307

179:                                              ; preds = %175
  %180 = load i32, ptr %5, align 4, !tbaa !20
  %181 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %182 = sub nsw i32 %181, 1
  %183 = load i32, ptr %6, align 4, !tbaa !20
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._Operator, ptr %186, i32 0, i32 7
  call void @replace_not_p_with_n_in_wff(i32 noundef %180, i32 noundef %182, ptr noundef %187)
  %188 = load i32, ptr %6, align 4, !tbaa !20
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._Operator, ptr %191, i32 0, i32 8
  %193 = load ptr, ptr %192, align 8, !tbaa !24
  store ptr %193, ptr %9, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %299, %179
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = icmp ne ptr %195, null
  br i1 %196, label %197, label %303

197:                                              ; preds = %194
  %198 = load i32, ptr %5, align 4, !tbaa !20
  %199 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %200 = sub nsw i32 %199, 1
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._Effect, ptr %201, i32 0, i32 3
  call void @replace_not_p_with_n_in_wff(i32 noundef %198, i32 noundef %200, ptr noundef %202)
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._Effect, ptr %203, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !26
  store ptr %205, ptr %10, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %294, %197
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %298

209:                                              ; preds = %206
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._Literal, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds %struct._Fact, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 4, !tbaa !28
  %214 = load i32, ptr %5, align 4, !tbaa !20
  %215 = icmp ne i32 %213, %214
  br i1 %215, label %216, label %217

216:                                              ; preds = %209
  br label %294

217:                                              ; preds = %209
  %218 = call ptr @new_Literal()
  store ptr %218, ptr %11, align 8, !tbaa !5
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct._Literal, ptr %219, i32 0, i32 0
  %221 = load i8, ptr %220, align 8, !tbaa !30
  %222 = icmp ne i8 %221, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %217
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct._Literal, ptr %224, i32 0, i32 0
  store i8 0, ptr %225, align 8, !tbaa !30
  %226 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %227 = sub nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %228
  store i8 1, ptr %229, align 1, !tbaa !21
  br label %237

230:                                              ; preds = %217
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._Literal, ptr %231, i32 0, i32 0
  store i8 1, ptr %232, align 8, !tbaa !30
  %233 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %234 = sub nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %235
  store i8 1, ptr %236, align 1, !tbaa !21
  br label %237

237:                                              ; preds = %230, %223
  %238 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %239 = sub nsw i32 %238, 1
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct._Literal, ptr %240, i32 0, i32 1
  %242 = getelementptr inbounds %struct._Fact, ptr %241, i32 0, i32 0
  store i32 %239, ptr %242, align 4, !tbaa !28
  store i32 0, ptr %7, align 4, !tbaa !20
  br label %243

243:                                              ; preds = %264, %237
  %244 = load i32, ptr %7, align 4, !tbaa !20
  %245 = load i32, ptr %5, align 4, !tbaa !20
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !20
  %249 = icmp slt i32 %244, %248
  br i1 %249, label %250, label %267

250:                                              ; preds = %243
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct._Literal, ptr %251, i32 0, i32 1
  %253 = getelementptr inbounds %struct._Fact, ptr %252, i32 0, i32 1
  %254 = load i32, ptr %7, align 4, !tbaa !20
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [5 x i32], ptr %253, i64 0, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !20
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct._Literal, ptr %258, i32 0, i32 1
  %260 = getelementptr inbounds %struct._Fact, ptr %259, i32 0, i32 1
  %261 = load i32, ptr %7, align 4, !tbaa !20
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [5 x i32], ptr %260, i64 0, i64 %262
  store i32 %257, ptr %263, align 4, !tbaa !20
  br label %264

264:                                              ; preds = %250
  %265 = load i32, ptr %7, align 4, !tbaa !20
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %7, align 4, !tbaa !20
  br label %243, !llvm.loop !31

267:                                              ; preds = %243
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct._Literal, ptr %268, i32 0, i32 3
  %270 = load ptr, ptr %269, align 8, !tbaa !32
  %271 = icmp ne ptr %270, null
  br i1 %271, label %272, label %283

272:                                              ; preds = %267
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct._Literal, ptr %273, i32 0, i32 3
  %275 = load ptr, ptr %274, align 8, !tbaa !32
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._Literal, ptr %276, i32 0, i32 3
  store ptr %275, ptr %277, align 8, !tbaa !32
  %278 = load ptr, ptr %11, align 8, !tbaa !5
  %279 = load ptr, ptr %11, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct._Literal, ptr %279, i32 0, i32 3
  %281 = load ptr, ptr %280, align 8, !tbaa !32
  %282 = getelementptr inbounds %struct._Literal, ptr %281, i32 0, i32 2
  store ptr %278, ptr %282, align 8, !tbaa !33
  br label %287

283:                                              ; preds = %267
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct._Effect, ptr %285, i32 0, i32 4
  store ptr %284, ptr %286, align 8, !tbaa !26
  br label %287

287:                                              ; preds = %283, %272
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct._Literal, ptr %289, i32 0, i32 2
  store ptr %288, ptr %290, align 8, !tbaa !33
  %291 = load ptr, ptr %11, align 8, !tbaa !5
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct._Literal, ptr %292, i32 0, i32 3
  store ptr %291, ptr %293, align 8, !tbaa !32
  br label %294

294:                                              ; preds = %287, %216
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct._Literal, ptr %295, i32 0, i32 2
  %297 = load ptr, ptr %296, align 8, !tbaa !33
  store ptr %297, ptr %10, align 8, !tbaa !5
  br label %206, !llvm.loop !34

298:                                              ; preds = %206
  br label %299

299:                                              ; preds = %298
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct._Effect, ptr %300, i32 0, i32 6
  %302 = load ptr, ptr %301, align 8, !tbaa !35
  store ptr %302, ptr %9, align 8, !tbaa !5
  br label %194, !llvm.loop !36

303:                                              ; preds = %194
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %6, align 4, !tbaa !20
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %6, align 4, !tbaa !20
  br label %175, !llvm.loop !37

307:                                              ; preds = %175
  %308 = load i32, ptr %5, align 4, !tbaa !20
  %309 = load i32, ptr @gnum_predicates, align 4, !tbaa !20
  %310 = sub nsw i32 %309, 1
  call void @add_to_initial_state(i32 noundef %308, i32 noundef %310, i32 noundef 0)
  store i8 1, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %311

311:                                              ; preds = %307, %47, %45, %35, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %312 = load i8, ptr %2, align 1
  ret i8 %312
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #6

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

; Function Attrs: nounwind uwtable
declare dso_local void @add_to_initial_state(i32 noundef, i32 noundef, i32 noundef) #5

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0,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 #5 = { 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 #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0,1) }

!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 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 32}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!10, !6, i64 64}
!17 = !{!10, !6, i64 48}
!18 = !{!19, !11, i64 0}
!19 = !{!"_Fact", !11, i64 0, !7, i64 4}
!20 = !{!11, !11, i64 0}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = !{!25, !6, i64 224}
!25 = !{!"_Operator", !6, i64 0, !7, i64 8, !11, i64 128, !7, i64 132, !11, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!26 = !{!27, !6, i64 192}
!27 = !{!"_Effect", !11, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!28 = !{!29, !11, i64 4}
!29 = !{!"_Literal", !7, i64 0, !19, i64 4, !6, i64 32, !6, i64 40}
!30 = !{!29, !7, i64 0}
!31 = distinct !{!31, !15}
!32 = !{!29, !6, i64 40}
!33 = !{!29, !6, i64 32}
!34 = distinct !{!34, !15}
!35 = !{!27, !6, i64 208}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}


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

@gtype_size = external local_unnamed_addr global [50 x i32], align 16
@gnum_predicates = external local_unnamed_addr global i32, align 4
@gpredicates = external local_unnamed_addr global [50 x ptr], align 16
@garity = external local_unnamed_addr global [50 x i32], align 16
@gpredicates_args_type = external local_unnamed_addr global [50 x [5 x i32]], align 16
@gnum_operators = external local_unnamed_addr global i32, align 4
@goperators = external local_unnamed_addr global [50000 x ptr], align 16
@ggoal = external global ptr, align 8
@gaxiom_added = external local_unnamed_addr global [50 x i8], align 16
@gis_added = external local_unnamed_addr global [50 x i8], align 16
@gis_deleted = external local_unnamed_addr global [50 x i8], align 16
@ginitial_predicate = external local_unnamed_addr global ptr, align 8
@.str.112 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [7 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

declare ptr @new_Literal() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @translate_one_negative_cond(ptr nocapture noundef readonly %0) local_unnamed_addr #5 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %2, label %17 [
    i32 2008, label %3
    i32 2009, label %3
    i32 2006, label %5
    i32 2007, label %5
    i32 2005, label %10
    i32 2003, label %.loopexit
    i32 2002, label %.loopexit
    i32 2000, label %.loopexit
    i32 2001, label %.loopexit
  ]

3:                                                ; preds = %1, %1
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.112)
  tail call void @exit(i32 noundef 1) #6
  unreachable

5:                                                ; preds = %1, %1
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %.067103 = load ptr, ptr %6, align 8, !tbaa !11
  %.not75104 = icmp eq ptr %.067103, null
  br i1 %.not75104, label %.loopexit, label %.lr.ph107

7:                                                ; preds = %.lr.ph107
  %8 = getelementptr inbounds i8, ptr %.067105, i64 32
  %.067 = load ptr, ptr %8, align 8, !tbaa !11
  %.not75 = icmp eq ptr %.067, null
  br i1 %.not75, label %.loopexit, label %.lr.ph107, !llvm.loop !12

.lr.ph107:                                        ; preds = %5, %7
  %.067105 = phi ptr [ %.067, %7 ], [ %.067103, %5 ]
  %9 = tail call zeroext i8 @translate_one_negative_cond(ptr noundef nonnull %.067105)
  %.not76 = icmp eq i8 %9, 0
  br i1 %.not76, label %7, label %.loopexit

10:                                               ; preds = %1
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %12, i64 48
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = load i32, ptr %14, align 4, !tbaa !16
  %16 = icmp eq i32 %15, -1
  br i1 %16, label %.loopexit, label %19

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

19:                                               ; preds = %10
  %20 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %21 = icmp eq i32 %20, 50
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.114, i32 noundef 50)
  tail call void @exit(i32 noundef 1) #6
  unreachable

24:                                               ; preds = %19
  %25 = sext i32 %15 to i64
  %26 = getelementptr inbounds [50 x i8], ptr @gaxiom_added, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !19
  %.not = icmp eq i8 %27, 0
  br i1 %.not, label %31, label %28

28:                                               ; preds = %24
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.115)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.116)
  tail call void @exit(i32 noundef 1) #6
  unreachable

31:                                               ; preds = %24
  %32 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %25
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.117, ptr noundef %33)
  %35 = load ptr, ptr %32, align 8, !tbaa !11
  %36 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %35) #7
  %37 = trunc i64 %36 to i32
  %38 = add i32 %37, 5
  %39 = tail call ptr @new_Token(i32 noundef %38) #8
  %40 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %41
  store ptr %39, ptr %42, align 8, !tbaa !11
  %43 = load ptr, ptr %32, align 8, !tbaa !11
  %44 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %39, ptr noundef nonnull dereferenceable(1) @.str.118, ptr noundef %43) #8
  %45 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %25
  %46 = load i32, ptr %45, align 4, !tbaa !18
  %47 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %48
  store i32 %46, ptr %49, align 4, !tbaa !18
  %50 = icmp sgt i32 %46, 0
  br i1 %50, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %31
  %51 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %48
  store i8 0, ptr %51, align 1, !tbaa !19
  %52 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %48
  store i8 0, ptr %52, align 1, !tbaa !19
  br label %._crit_edge82

.lr.ph.preheader:                                 ; preds = %31
  %wide.trip.count = zext nneg i32 %46 to i64
  %min.iters.check = icmp ult i32 %46, 16
  br i1 %min.iters.check, label %.lr.ph.preheader128, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %53 = mul nsw i64 %48, 20
  %.neg = mul nsw i64 %25, -20
  %54 = add nsw i64 %.neg, %53
  %diff.check = icmp ult i64 %54, 32
  br i1 %diff.check, label %.lr.ph.preheader128, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %55 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %index
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load = load <4 x i32>, ptr %55, align 4, !tbaa !18
  %wide.load127 = load <4 x i32>, ptr %56, align 4, !tbaa !18
  %57 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %index
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  store <4 x i32> %wide.load, ptr %57, align 4, !tbaa !18
  store <4 x i32> %wide.load127, ptr %58, align 4, !tbaa !18
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader128

.lr.ph.preheader128:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader128, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader128 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader128 ]
  %60 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %indvars.iv.prol
  %61 = load i32, ptr %60, align 4, !tbaa !18
  %62 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.prol
  store i32 %61, ptr %62, align 4, !tbaa !18
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !23

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader128
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader128 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %63 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %64 = icmp ugt i64 %63, -4
  br i1 %64, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %65 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %indvars.iv
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %67 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv
  store i32 %66, ptr %67, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %68 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %indvars.iv.next
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next
  store i32 %69, ptr %70, align 4, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %71 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %indvars.iv.next.1
  %72 = load i32, ptr %71, align 4, !tbaa !18
  %73 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next.1
  store i32 %72, ptr %73, align 4, !tbaa !18
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %74 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %25, i64 %indvars.iv.next.2
  %75 = load i32, ptr %74, align 4, !tbaa !18
  %76 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next.2
  store i32 %75, ptr %76, align 4, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %77 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %48
  store i8 0, ptr %77, align 1, !tbaa !19
  %78 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %48
  store i8 0, ptr %78, align 1, !tbaa !19
  br i1 %50, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %._crit_edge
  %xtraiter129 = and i64 %wide.trip.count, 3
  %79 = icmp ult i32 %46, 4
  br i1 %79, label %._crit_edge82.loopexit.unr-lcssa, label %.lr.ph81.preheader.new

.lr.ph81.preheader.new:                           ; preds = %.lr.ph81.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph81

.lr.ph81:                                         ; preds = %.lr.ph81, %.lr.ph81.preheader.new
  %indvars.iv113 = phi i64 [ 0, %.lr.ph81.preheader.new ], [ %indvars.iv.next114.3, %.lr.ph81 ]
  %.06479 = phi i32 [ 1, %.lr.ph81.preheader.new ], [ %103, %.lr.ph81 ]
  %niter = phi i64 [ 0, %.lr.ph81.preheader.new ], [ %niter.next.3, %.lr.ph81 ]
  %80 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv113
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !18
  %85 = mul nsw i32 %84, %.06479
  %indvars.iv.next114 = or disjoint i64 %indvars.iv113, 1
  %86 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next114
  %87 = load i32, ptr %86, align 4, !tbaa !18
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !18
  %91 = mul nsw i32 %90, %85
  %indvars.iv.next114.1 = or disjoint i64 %indvars.iv113, 2
  %92 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next114.1
  %93 = load i32, ptr %92, align 4, !tbaa !18
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !18
  %97 = mul nsw i32 %96, %91
  %indvars.iv.next114.2 = or disjoint i64 %indvars.iv113, 3
  %98 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv.next114.2
  %99 = load i32, ptr %98, align 4, !tbaa !18
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = mul nsw i32 %102, %97
  %indvars.iv.next114.3 = add nuw nsw i64 %indvars.iv113, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge82.loopexit.unr-lcssa, label %.lr.ph81, !llvm.loop !26

._crit_edge82.loopexit.unr-lcssa:                 ; preds = %.lr.ph81, %.lr.ph81.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph81.preheader ], [ %103, %.lr.ph81 ]
  %indvars.iv113.unr = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next114.3, %.lr.ph81 ]
  %.06479.unr = phi i32 [ 1, %.lr.ph81.preheader ], [ %103, %.lr.ph81 ]
  %lcmp.mod130.not = icmp eq i64 %xtraiter129, 0
  br i1 %lcmp.mod130.not, label %._crit_edge82.loopexit, label %.lr.ph81.epil

.lr.ph81.epil:                                    ; preds = %._crit_edge82.loopexit.unr-lcssa, %.lr.ph81.epil
  %indvars.iv113.epil = phi i64 [ %indvars.iv.next114.epil, %.lr.ph81.epil ], [ %indvars.iv113.unr, %._crit_edge82.loopexit.unr-lcssa ]
  %.06479.epil = phi i32 [ %109, %.lr.ph81.epil ], [ %.06479.unr, %._crit_edge82.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph81.epil ], [ 0, %._crit_edge82.loopexit.unr-lcssa ]
  %104 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %48, i64 %indvars.iv113.epil
  %105 = load i32, ptr %104, align 4, !tbaa !18
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !18
  %109 = mul nsw i32 %108, %.06479.epil
  %indvars.iv.next114.epil = add nuw nsw i64 %indvars.iv113.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter129
  br i1 %epil.iter.cmp.not, label %._crit_edge82.loopexit, label %.lr.ph81.epil, !llvm.loop !27

._crit_edge82.loopexit:                           ; preds = %.lr.ph81.epil, %._crit_edge82.loopexit.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge82.loopexit.unr-lcssa ], [ %109, %.lr.ph81.epil ]
  %110 = sext i32 %.lcssa to i64
  br label %._crit_edge82

._crit_edge82:                                    ; preds = %._crit_edge.thread, %._crit_edge82.loopexit, %._crit_edge
  %.064.lcssa = phi i64 [ 1, %._crit_edge ], [ %110, %._crit_edge82.loopexit ], [ 1, %._crit_edge.thread ]
  %111 = tail call noalias ptr @calloc(i64 noundef %.064.lcssa, i64 noundef 24) #9
  %112 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !11
  %113 = getelementptr inbounds ptr, ptr %112, i64 %48
  store ptr %111, ptr %113, align 8, !tbaa !11
  %114 = add nsw i32 %47, 1
  store i32 %114, ptr @gnum_predicates, align 4, !tbaa !18
  tail call void @replace_not_p_with_n_in_wff(i32 noundef %15, i32 noundef %47, ptr noundef nonnull @ggoal)
  %115 = load i32, ptr @gnum_operators, align 4, !tbaa !18
  %116 = icmp sgt i32 %115, 0
  br i1 %116, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %._crit_edge82, %._crit_edge98
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %._crit_edge98 ], [ 0, %._crit_edge82 ]
  %117 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %118 = add nsw i32 %117, -1
  %119 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv121
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds i8, ptr %120, i64 216
  tail call void @replace_not_p_with_n_in_wff(i32 noundef %15, i32 noundef %118, ptr noundef nonnull %121)
  %122 = load ptr, ptr %119, align 8, !tbaa !11
  %123 = getelementptr inbounds i8, ptr %122, i64 224
  %.06393 = load ptr, ptr %123, align 8, !tbaa !11
  %.not7094 = icmp eq ptr %.06393, null
  br i1 %.not7094, label %._crit_edge98, label %.lr.ph97

.lr.ph97:                                         ; preds = %.lr.ph101, %._crit_edge92
  %.06395 = phi ptr [ %.063, %._crit_edge92 ], [ %.06393, %.lr.ph101 ]
  %124 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %125 = add nsw i32 %124, -1
  %126 = getelementptr inbounds i8, ptr %.06395, i64 184
  tail call void @replace_not_p_with_n_in_wff(i32 noundef %15, i32 noundef %125, ptr noundef nonnull %126)
  %127 = getelementptr inbounds i8, ptr %.06395, i64 192
  %.06287 = load ptr, ptr %127, align 8, !tbaa !11
  %.not7188 = icmp eq ptr %.06287, null
  br i1 %.not7188, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %.lr.ph97, %156
  %.06289 = phi ptr [ %.062, %156 ], [ %.06287, %.lr.ph97 ]
  %128 = getelementptr inbounds i8, ptr %.06289, i64 4
  %129 = load i32, ptr %128, align 4, !tbaa !28
  %.not72 = icmp eq i32 %129, %15
  br i1 %.not72, label %130, label %156

130:                                              ; preds = %.lr.ph91
  %131 = tail call ptr @new_Literal() #8
  %132 = load i8, ptr %.06289, align 8, !tbaa !30
  %.not73 = icmp eq i8 %132, 0
  %. = zext i1 %.not73 to i8
  %gis_deleted.gis_added = select i1 %.not73, ptr @gis_deleted, ptr @gis_added
  store i8 %., ptr %131, align 8, !tbaa !30
  %133 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %134 = add nsw i32 %133, -1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [50 x i8], ptr %gis_deleted.gis_added, i64 0, i64 %135
  store i8 1, ptr %136, align 1, !tbaa !19
  %137 = getelementptr inbounds i8, ptr %131, i64 4
  store i32 %134, ptr %137, align 4, !tbaa !28
  %138 = load i32, ptr %45, align 4, !tbaa !18
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph85, label %._crit_edge86

.lr.ph85:                                         ; preds = %130
  %140 = getelementptr inbounds i8, ptr %.06289, i64 8
  %141 = getelementptr inbounds i8, ptr %131, i64 8
  br label %142

142:                                              ; preds = %.lr.ph85, %142
  %indvars.iv118 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next119, %142 ]
  %143 = getelementptr inbounds [5 x i32], ptr %140, i64 0, i64 %indvars.iv118
  %144 = load i32, ptr %143, align 4, !tbaa !18
  %145 = getelementptr inbounds [5 x i32], ptr %141, i64 0, i64 %indvars.iv118
  store i32 %144, ptr %145, align 4, !tbaa !18
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %146 = load i32, ptr %45, align 4, !tbaa !18
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv.next119, %147
  br i1 %148, label %142, label %._crit_edge86, !llvm.loop !31

._crit_edge86:                                    ; preds = %142, %130
  %149 = getelementptr inbounds i8, ptr %.06289, i64 40
  %150 = load ptr, ptr %149, align 8, !tbaa !32
  %.not74 = icmp eq ptr %150, null
  br i1 %.not74, label %154, label %151

151:                                              ; preds = %._crit_edge86
  %152 = getelementptr inbounds i8, ptr %131, i64 40
  store ptr %150, ptr %152, align 8, !tbaa !32
  %153 = getelementptr inbounds i8, ptr %150, i64 32
  br label %154

154:                                              ; preds = %._crit_edge86, %151
  %.sink126 = phi ptr [ %153, %151 ], [ %127, %._crit_edge86 ]
  store ptr %131, ptr %.sink126, align 8, !tbaa !11
  %155 = getelementptr inbounds i8, ptr %131, i64 32
  store ptr %.06289, ptr %155, align 8, !tbaa !33
  store ptr %131, ptr %149, align 8, !tbaa !32
  br label %156

156:                                              ; preds = %.lr.ph91, %154
  %157 = getelementptr inbounds i8, ptr %.06289, i64 32
  %.062 = load ptr, ptr %157, align 8, !tbaa !11
  %.not71 = icmp eq ptr %.062, null
  br i1 %.not71, label %._crit_edge92, label %.lr.ph91, !llvm.loop !34

._crit_edge92:                                    ; preds = %156, %.lr.ph97
  %158 = getelementptr inbounds i8, ptr %.06395, i64 208
  %.063 = load ptr, ptr %158, align 8, !tbaa !11
  %.not70 = icmp eq ptr %.063, null
  br i1 %.not70, label %._crit_edge98, label %.lr.ph97, !llvm.loop !35

._crit_edge98:                                    ; preds = %._crit_edge92, %.lr.ph101
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %159 = load i32, ptr @gnum_operators, align 4, !tbaa !18
  %160 = sext i32 %159 to i64
  %161 = icmp slt i64 %indvars.iv.next122, %160
  br i1 %161, label %.lr.ph101, label %._crit_edge102, !llvm.loop !36

._crit_edge102:                                   ; preds = %._crit_edge98, %._crit_edge82
  %162 = load i32, ptr @gnum_predicates, align 4, !tbaa !18
  %163 = add nsw i32 %162, -1
  tail call void @add_to_initial_state(i32 noundef %15, i32 noundef %163, i32 noundef 0)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph107, %7, %5, %1, %1, %1, %1, %10, %._crit_edge102
  %.0 = phi i8 [ 1, %._crit_edge102 ], [ 0, %10 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %5 ], [ 1, %.lr.ph107 ], [ 0, %7 ]
  ret i8 %.0
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @add_to_initial_state(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0,1) }

!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 64}
!15 = !{!6, !10, i64 48}
!16 = !{!17, !7, i64 0}
!17 = !{!"_Fact", !7, i64 0, !8, i64 4}
!18 = !{!7, !7, i64 0}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !13, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !13, !21}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !24}
!28 = !{!29, !7, i64 4}
!29 = !{!"_Literal", !8, i64 0, !17, i64 4, !10, i64 32, !10, i64 40}
!30 = !{!29, !8, i64 0}
!31 = distinct !{!31, !13}
!32 = !{!29, !10, i64 40}
!33 = !{!29, !10, i64 32}
!34 = distinct !{!34, !13}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}


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