; 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._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%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._Facts = type { ptr, ptr }
%struct._FluentValues = type { %struct._Fluent, float, ptr }
%struct._Fluent = type { i32, [5 x i32] }
%struct._Fact = type { i32, [5 x i32] }
%struct._FluentValue = type { %struct._Fluent, float }

@gcmd_line = external global %struct._command_line, align 4
@gnum_predicates = external global i32, align 4
@gpredicates = external global [50 x ptr], align 16
@gnum_functions = external global i32, align 4
@gfunctions = external global [50 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@gnum_operators = external global i32, align 4
@goperators = external global [50000 x ptr], align 16
@ggoal = external global ptr, align 8
@gis_added = external global [50 x i8], align 16
@gis_deleted = external global [50 x i8], align 16
@gis_changed = external global [50 x i8], align 16
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [13 x i8], align 1
@gnum_initial_predicate = external global ptr, align 8
@ginitial_predicate = external global ptr, align 8
@ginitial = external global ptr, align 8
@gnum_initial_function = external global ptr, align 8
@ginitial_function = external global ptr, align 8
@gf_initial = external global ptr, align 8
@.str.88 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [24 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

declare void @print_Fact(ptr noundef) #1

declare void @print_Fluent(ptr noundef) #1

declare void @print_Operator(ptr noundef) #1

declare void @print_Wff(ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @translate_negative_preconds() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  br label %6

6:                                                ; preds = %10, %0
  %7 = load ptr, ptr @ggoal, align 8, !tbaa !5
  %8 = call zeroext i8 @translate_one_negative_cond(ptr noundef %7)
  %9 = icmp ne i8 %8, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  br label %6, !llvm.loop !9

11:                                               ; preds = %6
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %51, %11
  %13 = load i32, ptr %1, align 4, !tbaa !11
  %14 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %54

16:                                               ; preds = %12
  br label %17

17:                                               ; preds = %26, %16
  %18 = load i32, ptr %1, align 4, !tbaa !11
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %19
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._Operator, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = call zeroext i8 @translate_one_negative_cond(ptr noundef %23)
  %25 = icmp ne i8 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %17
  br label %17, !llvm.loop !15

27:                                               ; preds = %17
  %28 = load i32, ptr %1, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._Operator, ptr %31, i32 0, i32 8
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  store ptr %33, ptr %3, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %46, %27
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %50

37:                                               ; preds = %34
  br label %38

38:                                               ; preds = %44, %37
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._Effect, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = call zeroext i8 @translate_one_negative_cond(ptr noundef %41)
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  br label %38, !llvm.loop !19

45:                                               ; preds = %38
  br label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._Effect, ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  store ptr %49, ptr %3, align 8, !tbaa !5
  br label %34, !llvm.loop !21

50:                                               ; preds = %34
  br label %51

51:                                               ; preds = %50
  %52 = load i32, ptr %1, align 4, !tbaa !11
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %1, align 4, !tbaa !11
  br label %12, !llvm.loop !22

54:                                               ; preds = %12
  %55 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !23
  %56 = icmp eq i32 %55, 108
  br i1 %56, label %57, label %222

57:                                               ; preds = %54
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.108)
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.88)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %69, %57
  %61 = load i32, ptr %1, align 4, !tbaa !11
  %62 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %64, label %72

64:                                               ; preds = %60
  %65 = load i32, ptr %1, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  call void @print_Operator(ptr noundef %68)
  br label %69

69:                                               ; preds = %64
  %70 = load i32, ptr %1, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %1, align 4, !tbaa !11
  br label %60, !llvm.loop !26

72:                                               ; preds = %60
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.109)
  %75 = load ptr, ptr @ginitial, align 8, !tbaa !5
  store ptr %75, ptr %4, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %84, %72
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %88

79:                                               ; preds = %76
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._Facts, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !27
  call void @print_Fact(ptr noundef %83)
  br label %84

84:                                               ; preds = %79
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._Facts, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  store ptr %87, ptr %4, align 8, !tbaa !5
  br label %76, !llvm.loop !30

88:                                               ; preds = %76
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %90 = load ptr, ptr @gf_initial, align 8, !tbaa !5
  store ptr %90, ptr %5, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %103, %88
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %107

94:                                               ; preds = %91
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._FluentValues, ptr %96, i32 0, i32 0
  call void @print_Fluent(ptr noundef %97)
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._FluentValues, ptr %98, i32 0, i32 1
  %100 = load float, ptr %99, align 8, !tbaa !31
  %101 = fpext float %100 to double
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %101)
  br label %103

103:                                              ; preds = %94
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._FluentValues, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !34
  store ptr %106, ptr %5, align 8, !tbaa !5
  br label %91, !llvm.loop !35

107:                                              ; preds = %91
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.110)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %156, %107
  %111 = load i32, ptr %1, align 4, !tbaa !11
  %112 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %159

114:                                              ; preds = %110
  %115 = load i32, ptr %1, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.76, ptr noundef %118)
  %120 = load i32, ptr %1, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !36
  %124 = icmp ne i8 %123, 0
  br i1 %124, label %133, label %125

125:                                              ; preds = %114
  %126 = load i32, ptr %1, align 4, !tbaa !11
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !36
  %130 = icmp ne i8 %129, 0
  br i1 %130, label %133, label %131

131:                                              ; preds = %125
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.77)
  br label %133

133:                                              ; preds = %131, %125, %114
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %152, %133
  %135 = load i32, ptr %2, align 4, !tbaa !11
  %136 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !5
  %137 = load i32, ptr %1, align 4, !tbaa !11
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !11
  %141 = icmp slt i32 %135, %140
  br i1 %141, label %142, label %155

142:                                              ; preds = %134
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %144 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !5
  %145 = load i32, ptr %1, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds ptr, ptr %144, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load i32, ptr %2, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct._Fact, ptr %148, i64 %150
  call void @print_Fact(ptr noundef %151)
  br label %152

152:                                              ; preds = %142
  %153 = load i32, ptr %2, align 4, !tbaa !11
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %2, align 4, !tbaa !11
  br label %134, !llvm.loop !37

155:                                              ; preds = %134
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %1, align 4, !tbaa !11
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %1, align 4, !tbaa !11
  br label %110, !llvm.loop !38

159:                                              ; preds = %110
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.111)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %214, %159
  %162 = load i32, ptr %1, align 4, !tbaa !11
  %163 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %217

165:                                              ; preds = %161
  %166 = load i32, ptr %1, align 4, !tbaa !11
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.76, ptr noundef %169)
  %171 = load i32, ptr %1, align 4, !tbaa !11
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [50 x i8], ptr @gis_changed, i64 0, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !36
  %175 = icmp ne i8 %174, 0
  br i1 %175, label %178, label %176

176:                                              ; preds = %165
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.77)
  br label %178

178:                                              ; preds = %176, %165
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %210, %178
  %180 = load i32, ptr %2, align 4, !tbaa !11
  %181 = load ptr, ptr @gnum_initial_function, align 8, !tbaa !5
  %182 = load i32, ptr %1, align 4, !tbaa !11
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !11
  %186 = icmp slt i32 %180, %185
  br i1 %186, label %187, label %213

187:                                              ; preds = %179
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %189 = load ptr, ptr @ginitial_function, align 8, !tbaa !5
  %190 = load i32, ptr %1, align 4, !tbaa !11
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds ptr, ptr %189, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i32, ptr %2, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct._FluentValue, ptr %193, i64 %195
  %197 = getelementptr inbounds %struct._FluentValue, ptr %196, i32 0, i32 0
  call void @print_Fluent(ptr noundef %197)
  %198 = load ptr, ptr @ginitial_function, align 8, !tbaa !5
  %199 = load i32, ptr %1, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds ptr, ptr %198, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load i32, ptr %2, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds %struct._FluentValue, ptr %202, i64 %204
  %206 = getelementptr inbounds %struct._FluentValue, ptr %205, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !39
  %208 = fpext float %207 to double
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %208)
  br label %210

210:                                              ; preds = %187
  %211 = load i32, ptr %2, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %2, align 4, !tbaa !11
  br label %179, !llvm.loop !41

213:                                              ; preds = %179
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %1, align 4, !tbaa !11
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %1, align 4, !tbaa !11
  br label %161, !llvm.loop !42

217:                                              ; preds = %161
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.89)
  %220 = load ptr, ptr @ggoal, align 8, !tbaa !5
  call void @print_Wff(ptr noundef %220, i32 noundef 0)
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %222

222:                                              ; preds = %217, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 216}
!14 = !{!"_Operator", !6, i64 0, !7, i64 8, !12, i64 128, !7, i64 132, !12, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!15 = distinct !{!15, !10}
!16 = !{!14, !6, i64 224}
!17 = !{!18, !6, i64 184}
!18 = !{!"_Effect", !12, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!19 = distinct !{!19, !10}
!20 = !{!18, !6, i64 208}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = !{!24, !12, i64 768}
!24 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !12, i64 768, !12, i64 772, !12, i64 776, !7, i64 780, !12, i64 784, !25, i64 788}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !10}
!27 = !{!28, !6, i64 0}
!28 = !{!"_Facts", !6, i64 0, !6, i64 8}
!29 = !{!28, !6, i64 8}
!30 = distinct !{!30, !10}
!31 = !{!32, !25, i64 24}
!32 = !{!"_FluentValues", !33, i64 0, !25, i64 24, !6, i64 32}
!33 = !{!"_Fluent", !12, i64 0, !7, i64 4}
!34 = !{!32, !6, i64 32}
!35 = distinct !{!35, !10}
!36 = !{!7, !7, i64 0}
!37 = distinct !{!37, !10}
!38 = distinct !{!38, !10}
!39 = !{!40, !25, i64 24}
!40 = !{!"_FluentValue", !33, i64 0, !25, i64 24}
!41 = distinct !{!41, !10}
!42 = distinct !{!42, !10}


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

%struct._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%struct._Fact = type { i32, [5 x i32] }
%struct._FluentValue = type { %struct._Fluent, float }
%struct._Fluent = type { i32, [5 x i32] }

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@gnum_predicates = external local_unnamed_addr global i32, align 4
@gpredicates = external local_unnamed_addr global [50 x ptr], align 16
@gnum_functions = external local_unnamed_addr global i32, align 4
@gfunctions = external local_unnamed_addr global [50 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@gnum_operators = external local_unnamed_addr global i32, align 4
@goperators = external local_unnamed_addr global [50000 x ptr], align 16
@ggoal = external local_unnamed_addr global ptr, align 8
@gis_added = external local_unnamed_addr global [50 x i8], align 16
@gis_deleted = external local_unnamed_addr global [50 x i8], align 16
@gis_changed = external local_unnamed_addr global [50 x i8], align 16
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [13 x i8], align 1
@gnum_initial_predicate = external local_unnamed_addr global ptr, align 8
@ginitial_predicate = external local_unnamed_addr global ptr, align 8
@ginitial = external local_unnamed_addr global ptr, align 8
@gnum_initial_function = external local_unnamed_addr global ptr, align 8
@ginitial_function = external local_unnamed_addr global ptr, align 8
@gf_initial = external local_unnamed_addr global ptr, align 8
@.str.88 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [24 x i8], align 1

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

declare void @print_Fact(ptr noundef) local_unnamed_addr #1

declare void @print_Fluent(ptr noundef) local_unnamed_addr #1

declare void @print_Operator(ptr noundef) local_unnamed_addr #1

declare void @print_Wff(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @translate_negative_preconds() local_unnamed_addr #2 {
  br label %1

1:                                                ; preds = %1, %0
  %2 = load ptr, ptr @ggoal, align 8, !tbaa !5
  %3 = tail call zeroext i8 @translate_one_negative_cond(ptr noundef %2)
  %.not = icmp eq i8 %3, 0
  br i1 %.not, label %.preheader51, label %1, !llvm.loop !9

.preheader51:                                     ; preds = %1
  %4 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.preheader50, label %._crit_edge56

.preheader50:                                     ; preds = %.preheader51, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %.preheader51 ]
  %6 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv
  br label %7

7:                                                ; preds = %.preheader50, %7
  %8 = load ptr, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 216
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = tail call zeroext i8 @translate_one_negative_cond(ptr noundef %10)
  %.not47 = icmp eq i8 %11, 0
  br i1 %.not47, label %12, label %7, !llvm.loop !15

12:                                               ; preds = %7
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 224
  %.03852 = load ptr, ptr %14, align 8, !tbaa !5
  %.not4853 = icmp eq ptr %.03852, null
  br i1 %.not4853, label %._crit_edge, label %.preheader

.preheader:                                       ; preds = %12, %19
  %.03854 = phi ptr [ %.038, %19 ], [ %.03852, %12 ]
  %15 = getelementptr inbounds i8, ptr %.03854, i64 184
  br label %16

16:                                               ; preds = %.preheader, %16
  %17 = load ptr, ptr %15, align 8, !tbaa !16
  %18 = tail call zeroext i8 @translate_one_negative_cond(ptr noundef %17)
  %.not49 = icmp eq i8 %18, 0
  br i1 %.not49, label %19, label %16, !llvm.loop !18

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %.03854, i64 208
  %.038 = load ptr, ptr %20, align 8, !tbaa !5
  %.not48 = icmp eq ptr %.038, null
  br i1 %.not48, label %._crit_edge, label %.preheader, !llvm.loop !19

._crit_edge:                                      ; preds = %19, %12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %indvars.iv.next, %22
  br i1 %23, label %.preheader50, label %._crit_edge56, !llvm.loop !20

._crit_edge56:                                    ; preds = %._crit_edge, %.preheader51
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !21
  %25 = icmp eq i32 %24, 108
  br i1 %25, label %26, label %119

26:                                               ; preds = %._crit_edge56
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.108)
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88)
  %29 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge59

.lr.ph:                                           ; preds = %26, %.lr.ph
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph ], [ 0, %26 ]
  %31 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv89
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  tail call void @print_Operator(ptr noundef %32) #3
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %33 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next90, %34
  br i1 %35, label %.lr.ph, label %._crit_edge59, !llvm.loop !24

._crit_edge59:                                    ; preds = %.lr.ph, %26
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.109)
  %.03760 = load ptr, ptr @ginitial, align 8, !tbaa !5
  %.not4261 = icmp eq ptr %.03760, null
  br i1 %.not4261, label %._crit_edge65, label %.lr.ph64

.lr.ph64:                                         ; preds = %._crit_edge59, %.lr.ph64
  %.03762 = phi ptr [ %.037, %.lr.ph64 ], [ %.03760, %._crit_edge59 ]
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %39 = load ptr, ptr %.03762, align 8, !tbaa !25
  tail call void @print_Fact(ptr noundef %39) #3
  %40 = getelementptr inbounds i8, ptr %.03762, i64 8
  %.037 = load ptr, ptr %40, align 8, !tbaa !5
  %.not42 = icmp eq ptr %.037, null
  br i1 %.not42, label %._crit_edge65, label %.lr.ph64, !llvm.loop !27

._crit_edge65:                                    ; preds = %.lr.ph64, %._crit_edge59
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %.066 = load ptr, ptr @gf_initial, align 8, !tbaa !5
  %.not4367 = icmp eq ptr %.066, null
  br i1 %.not4367, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %._crit_edge65, %.lr.ph70
  %.068 = phi ptr [ %.0, %.lr.ph70 ], [ %.066, %._crit_edge65 ]
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  tail call void @print_Fluent(ptr noundef nonnull %.068) #3
  %43 = getelementptr inbounds i8, ptr %.068, i64 24
  %44 = load float, ptr %43, align 8, !tbaa !28
  %45 = fpext float %44 to double
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %45)
  %47 = getelementptr inbounds i8, ptr %.068, i64 32
  %.0 = load ptr, ptr %47, align 8, !tbaa !5
  %.not43 = icmp eq ptr %.0, null
  br i1 %.not43, label %._crit_edge71, label %.lr.ph70, !llvm.loop !31

._crit_edge71:                                    ; preds = %.lr.ph70, %._crit_edge65
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.110)
  %50 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph78, label %._crit_edge79

.lr.ph78:                                         ; preds = %._crit_edge71, %._crit_edge75
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %._crit_edge75 ], [ 0, %._crit_edge71 ]
  %52 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %indvars.iv95
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.76, ptr noundef %53)
  %55 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %indvars.iv95
  %56 = load i8, ptr %55, align 1, !tbaa !32
  %.not45 = icmp eq i8 %56, 0
  br i1 %.not45, label %57, label %62

57:                                               ; preds = %.lr.ph78
  %58 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %indvars.iv95
  %59 = load i8, ptr %58, align 1, !tbaa !32
  %.not46 = icmp eq i8 %59, 0
  br i1 %.not46, label %60, label %62

60:                                               ; preds = %57
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.77)
  br label %62

62:                                               ; preds = %60, %57, %.lr.ph78
  %63 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv95
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %62, %.lr.ph74
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph74 ], [ 0, %62 ]
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %68 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !5
  %69 = getelementptr inbounds ptr, ptr %68, i64 %indvars.iv95
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._Fact, ptr %70, i64 %indvars.iv92
  tail call void @print_Fact(ptr noundef %71) #3
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %72 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !5
  %73 = getelementptr inbounds i32, ptr %72, i64 %indvars.iv95
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next93, %75
  br i1 %76, label %.lr.ph74, label %._crit_edge75, !llvm.loop !33

._crit_edge75:                                    ; preds = %.lr.ph74, %62
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %77 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next96, %78
  br i1 %79, label %.lr.ph78, label %._crit_edge79, !llvm.loop !34

._crit_edge79:                                    ; preds = %._crit_edge75, %._crit_edge71
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.111)
  %81 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %._crit_edge79, %._crit_edge83
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %._crit_edge83 ], [ 0, %._crit_edge79 ]
  %83 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %indvars.iv101
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.76, ptr noundef %84)
  %86 = getelementptr inbounds [50 x i8], ptr @gis_changed, i64 0, i64 %indvars.iv101
  %87 = load i8, ptr %86, align 1, !tbaa !32
  %.not44 = icmp eq i8 %87, 0
  br i1 %.not44, label %88, label %90

88:                                               ; preds = %.lr.ph86
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.77)
  br label %90

90:                                               ; preds = %88, %.lr.ph86
  %91 = load ptr, ptr @gnum_initial_function, align 8, !tbaa !5
  %92 = getelementptr inbounds i32, ptr %91, i64 %indvars.iv101
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.lr.ph82, label %._crit_edge83

.lr.ph82:                                         ; preds = %90, %.lr.ph82
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %.lr.ph82 ], [ 0, %90 ]
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %96 = load ptr, ptr @ginitial_function, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %indvars.iv101
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._FluentValue, ptr %98, i64 %indvars.iv98
  tail call void @print_Fluent(ptr noundef %99) #3
  %100 = load ptr, ptr @ginitial_function, align 8, !tbaa !5
  %101 = getelementptr inbounds ptr, ptr %100, i64 %indvars.iv101
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._FluentValue, ptr %102, i64 %indvars.iv98, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !35
  %105 = fpext float %104 to double
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %105)
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %107 = load ptr, ptr @gnum_initial_function, align 8, !tbaa !5
  %108 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv101
  %109 = load i32, ptr %108, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next99, %110
  br i1 %111, label %.lr.ph82, label %._crit_edge83, !llvm.loop !37

._crit_edge83:                                    ; preds = %.lr.ph82, %90
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %112 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next102, %113
  br i1 %114, label %.lr.ph86, label %._crit_edge87, !llvm.loop !38

._crit_edge87:                                    ; preds = %._crit_edge83, %._crit_edge79
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %116 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89)
  %117 = load ptr, ptr @ggoal, align 8, !tbaa !5
  tail call void @print_Wff(ptr noundef %117, i32 noundef 0) #3
  %118 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %119

119:                                              ; preds = %._crit_edge87, %._crit_edge56
  ret void
}

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

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 216}
!14 = !{!"_Operator", !6, i64 0, !7, i64 8, !12, i64 128, !7, i64 132, !12, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!15 = distinct !{!15, !10}
!16 = !{!17, !6, i64 184}
!17 = !{!"_Effect", !12, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!22, !12, i64 768}
!22 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !12, i64 768, !12, i64 772, !12, i64 776, !7, i64 780, !12, i64 784, !23, i64 788}
!23 = !{!"float", !7, i64 0}
!24 = distinct !{!24, !10}
!25 = !{!26, !6, i64 0}
!26 = !{!"_Facts", !6, i64 0, !6, i64 8}
!27 = distinct !{!27, !10}
!28 = !{!29, !23, i64 24}
!29 = !{!"_FluentValues", !30, i64 0, !23, i64 24, !6, i64 32}
!30 = !{!"_Fluent", !12, i64 0, !7, i64 4}
!31 = distinct !{!31, !10}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = !{!36, !23, i64 24}
!36 = !{!"_FluentValue", !30, i64 0, !23, i64 24}
!37 = distinct !{!37, !10}
!38 = distinct !{!38, !10}


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