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

@gcmd_line = external global %struct._command_line, align 4
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@gnum_constants = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@gconstants = external global [2000 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@gnum_types = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@gtype_names = external global [50 x ptr], align 16
@gtype_size = external global [50 x i32], align 16
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@gtype_consts = external global [50 x [2000 x i32]], align 16
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@gnum_predicates = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@gpredicates = external global [50 x ptr], align 16
@garity = external global [50 x i32], align 16
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@gpredicates_args_type = external global [50 x [5 x i32]], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@gnum_functions = external global i32, align 4
@gfunctions = external global [50 x ptr], align 16
@gf_arity = external global [50 x i32], align 16
@gfunctions_args_type = external global [50 x [5 x i32]], align 16
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@gnum_full_initial = external global i32, align 4
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@gfull_initial = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@gnum_full_fluents_initial = external global i32, align 4
@gfull_fluents_initial = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1
@gnum_operators = external global i32, align 4
@goperators = external global [50000 x ptr], align 16
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@ggoal = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [50 x i8], align 1
@gmetric = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @encode_domain_in_integers() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @collect_all_strings()
  call void @create_member_nrs()
  %3 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %4 = icmp eq i32 %3, 103
  br i1 %4, label %5, label %137

5:                                                ; preds = %0
  %6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %7

7:                                                ; preds = %18, %5
  %8 = load i32, ptr %1, align 4, !tbaa !11
  %9 = load i32, ptr @gnum_constants, align 4, !tbaa !11
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %11, label %21

11:                                               ; preds = %7
  %12 = load i32, ptr %1, align 4, !tbaa !11
  %13 = load i32, ptr %1, align 4, !tbaa !11
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12, ptr noundef %16)
  br label %18

18:                                               ; preds = %11
  %19 = load i32, ptr %1, align 4, !tbaa !11
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %1, align 4, !tbaa !11
  br label %7, !llvm.loop !14

21:                                               ; preds = %7
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %54, %21
  %24 = load i32, ptr %1, align 4, !tbaa !11
  %25 = load i32, ptr @gnum_types, align 4, !tbaa !11
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %57

27:                                               ; preds = %23
  %28 = load i32, ptr %1, align 4, !tbaa !11
  %29 = load i32, ptr %1, align 4, !tbaa !11
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28, ptr noundef %32)
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %50, %27
  %35 = load i32, ptr %2, align 4, !tbaa !11
  %36 = load i32, ptr %1, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = icmp slt i32 %35, %39
  br i1 %40, label %41, label %53

41:                                               ; preds = %34
  %42 = load i32, ptr %1, align 4, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %43
  %45 = load i32, ptr %2, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [2000 x i32], ptr %44, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %48)
  br label %50

50:                                               ; preds = %41
  %51 = load i32, ptr %2, align 4, !tbaa !11
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %2, align 4, !tbaa !11
  br label %34, !llvm.loop !16

53:                                               ; preds = %34
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %1, align 4, !tbaa !11
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %1, align 4, !tbaa !11
  br label %23, !llvm.loop !17

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

59:                                               ; preds = %93, %57
  %60 = load i32, ptr %1, align 4, !tbaa !11
  %61 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %96

63:                                               ; preds = %59
  %64 = load i32, ptr %1, align 4, !tbaa !11
  %65 = load i32, ptr %1, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %64, ptr noundef %68)
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %89, %63
  %71 = load i32, ptr %2, align 4, !tbaa !11
  %72 = load i32, ptr %1, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = icmp slt i32 %71, %75
  br i1 %76, label %77, label %92

77:                                               ; preds = %70
  %78 = load i32, ptr %1, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %79
  %81 = load i32, ptr %2, align 4, !tbaa !11
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [5 x i32], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !12
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %87)
  br label %89

89:                                               ; preds = %77
  %90 = load i32, ptr %2, align 4, !tbaa !11
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %2, align 4, !tbaa !11
  br label %70, !llvm.loop !18

92:                                               ; preds = %70
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %1, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %1, align 4, !tbaa !11
  br label %59, !llvm.loop !19

96:                                               ; preds = %59
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %132, %96
  %99 = load i32, ptr %1, align 4, !tbaa !11
  %100 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %102, label %135

102:                                              ; preds = %98
  %103 = load i32, ptr %1, align 4, !tbaa !11
  %104 = load i32, ptr %1, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !12
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %103, ptr noundef %107)
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %128, %102
  %110 = load i32, ptr %2, align 4, !tbaa !11
  %111 = load i32, ptr %1, align 4, !tbaa !11
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [50 x i32], ptr @gf_arity, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = icmp slt i32 %110, %114
  br i1 %115, label %116, label %131

116:                                              ; preds = %109
  %117 = load i32, ptr %1, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %118
  %120 = load i32, ptr %2, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [5 x i32], ptr %119, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %126)
  br label %128

128:                                              ; preds = %116
  %129 = load i32, ptr %2, align 4, !tbaa !11
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %2, align 4, !tbaa !11
  br label %109, !llvm.loop !20

131:                                              ; preds = %109
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %1, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %1, align 4, !tbaa !11
  br label %98, !llvm.loop !21

135:                                              ; preds = %98
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %137

137:                                              ; preds = %135, %0
  call void @create_integer_representation()
  %138 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %139 = icmp eq i32 %138, 104
  br i1 %139, label %140, label %203

140:                                              ; preds = %137
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %142

142:                                              ; preds = %152, %140
  %143 = load i32, ptr %1, align 4, !tbaa !11
  %144 = load i32, ptr @gnum_full_initial, align 4, !tbaa !11
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %146, label %155

146:                                              ; preds = %142
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %148 = load ptr, ptr @gfull_initial, align 8, !tbaa !12
  %149 = load i32, ptr %1, 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 = %146
  %153 = load i32, ptr %1, align 4, !tbaa !11
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %1, align 4, !tbaa !11
  br label %142, !llvm.loop !22

155:                                              ; preds = %142
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %157

157:                                              ; preds = %176, %155
  %158 = load i32, ptr %1, align 4, !tbaa !11
  %159 = load i32, ptr @gnum_full_fluents_initial, align 4, !tbaa !11
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %161, label %179

161:                                              ; preds = %157
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %163 = load ptr, ptr @gfull_fluents_initial, align 8, !tbaa !12
  %164 = load i32, ptr %1, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct._FluentValue, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct._FluentValue, ptr %166, i32 0, i32 0
  call void @print_Fluent(ptr noundef %167)
  %168 = load ptr, ptr @gfull_fluents_initial, align 8, !tbaa !12
  %169 = load i32, ptr %1, align 4, !tbaa !11
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct._FluentValue, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct._FluentValue, ptr %171, i32 0, i32 1
  %173 = load float, ptr %172, align 4, !tbaa !23
  %174 = fpext float %173 to double
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %174)
  br label %176

176:                                              ; preds = %161
  %177 = load i32, ptr %1, align 4, !tbaa !11
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %1, align 4, !tbaa !11
  br label %157, !llvm.loop !26

179:                                              ; preds = %157
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %181

181:                                              ; preds = %190, %179
  %182 = load i32, ptr %1, align 4, !tbaa !11
  %183 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %185, label %193

185:                                              ; preds = %181
  %186 = load i32, ptr %1, align 4, !tbaa !11
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !12
  call void @print_Operator(ptr noundef %189)
  br label %190

190:                                              ; preds = %185
  %191 = load i32, ptr %1, align 4, !tbaa !11
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %1, align 4, !tbaa !11
  br label %181, !llvm.loop !27

193:                                              ; preds = %181
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %196 = load ptr, ptr @ggoal, align 8, !tbaa !12
  call void @print_Wff(ptr noundef %196, i32 noundef 0)
  %197 = load ptr, ptr @stdout, align 8, !tbaa !12
  %198 = call i32 @fflush(ptr noundef %197)
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %200 = load ptr, ptr @gmetric, align 8, !tbaa !12
  call void @print_ExpNode(ptr noundef %200)
  %201 = load ptr, ptr @stdout, align 8, !tbaa !12
  %202 = call i32 @fflush(ptr noundef %201)
  br label %203

203:                                              ; preds = %193, %137
  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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @collect_all_strings() #0

; Function Attrs: nounwind uwtable
declare dso_local void @create_member_nrs() #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @create_integer_representation() #0

declare void @print_Fact(ptr noundef) #2

declare void @print_Fluent(ptr noundef) #2

declare void @print_Operator(ptr noundef) #2

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

declare i32 @fflush(ptr noundef) #2

declare void @print_ExpNode(ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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, !9, i64 768}
!6 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !9, i64 768, !9, i64 772, !9, i64 776, !7, i64 780, !9, i64 784, !10, i64 788}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!9, !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = !{!24, !10, i64 24}
!24 = !{!"_FluentValue", !25, i64 0, !10, i64 24}
!25 = !{!"_Fluent", !9, i64 0, !7, i64 4}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !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"

%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
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@gnum_constants = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@gconstants = external local_unnamed_addr global [2000 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@gnum_types = external local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@gtype_names = external local_unnamed_addr global [50 x ptr], align 16
@gtype_size = external local_unnamed_addr global [50 x i32], align 16
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@gtype_consts = external local_unnamed_addr global [50 x [2000 x i32]], align 16
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@gnum_predicates = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@gpredicates = external local_unnamed_addr global [50 x ptr], align 16
@garity = external local_unnamed_addr global [50 x i32], align 16
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@gpredicates_args_type = external local_unnamed_addr global [50 x [5 x i32]], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@gnum_functions = external local_unnamed_addr global i32, align 4
@gfunctions = external local_unnamed_addr global [50 x ptr], align 16
@gf_arity = external local_unnamed_addr global [50 x i32], align 16
@gfunctions_args_type = external local_unnamed_addr global [50 x [5 x i32]], align 16
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@gnum_full_initial = external local_unnamed_addr global i32, align 4
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@gfull_initial = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@gnum_full_fluents_initial = external local_unnamed_addr global i32, align 4
@gfull_fluents_initial = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 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
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@ggoal = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [50 x i8], align 1
@gmetric = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @encode_domain_in_integers() local_unnamed_addr #0 {
  tail call void @collect_all_strings()
  tail call void @create_member_nrs()
  %1 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %2 = icmp eq i32 %1, 103
  br i1 %2, label %3, label %78

3:                                                ; preds = %0
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = load i32, ptr @gnum_constants, align 4, !tbaa !11
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  %7 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %indvars.iv
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = trunc nuw nsw i64 %indvars.iv to i32
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %9, ptr noundef %8)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @gnum_constants, align 4, !tbaa !11
  %12 = sext i32 %11 to i64
  %13 = icmp slt i64 %indvars.iv.next, %12
  br i1 %13, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %3
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %15 = load i32, ptr @gnum_types, align 4, !tbaa !11
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %._crit_edge, %._crit_edge48
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %._crit_edge48 ], [ 0, %._crit_edge ]
  %17 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %indvars.iv85
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = trunc nuw nsw i64 %indvars.iv85 to i32
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %19, ptr noundef %18)
  %21 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %indvars.iv85
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph47, label %._crit_edge48

.lr.ph47:                                         ; preds = %.lr.ph51, %.lr.ph47
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %.lr.ph47 ], [ 0, %.lr.ph51 ]
  %24 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %indvars.iv85, i64 %indvars.iv82
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %25)
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %27 = load i32, ptr %21, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next83, %28
  br i1 %29, label %.lr.ph47, label %._crit_edge48, !llvm.loop !16

._crit_edge48:                                    ; preds = %.lr.ph47, %.lr.ph51
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %30 = load i32, ptr @gnum_types, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next86, %31
  br i1 %32, label %.lr.ph51, label %._crit_edge52, !llvm.loop !17

._crit_edge52:                                    ; preds = %._crit_edge48, %._crit_edge
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %34 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph59, label %._crit_edge60

.lr.ph59:                                         ; preds = %._crit_edge52, %._crit_edge56
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %._crit_edge56 ], [ 0, %._crit_edge52 ]
  %36 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %indvars.iv91
  %37 = load ptr, ptr %36, align 8, !tbaa !12
  %38 = trunc nuw nsw i64 %indvars.iv91 to i32
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %38, ptr noundef %37)
  %40 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %indvars.iv91
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %.lr.ph59, %.lr.ph55
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.lr.ph55 ], [ 0, %.lr.ph59 ]
  %43 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %indvars.iv91, i64 %indvars.iv88
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %47)
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %49 = load i32, ptr %40, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next89, %50
  br i1 %51, label %.lr.ph55, label %._crit_edge56, !llvm.loop !18

._crit_edge56:                                    ; preds = %.lr.ph55, %.lr.ph59
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %52 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next92, %53
  br i1 %54, label %.lr.ph59, label %._crit_edge60, !llvm.loop !19

._crit_edge60:                                    ; preds = %._crit_edge56, %._crit_edge52
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %56 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %._crit_edge60, %._crit_edge64
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %._crit_edge64 ], [ 0, %._crit_edge60 ]
  %58 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %indvars.iv97
  %59 = load ptr, ptr %58, align 8, !tbaa !12
  %60 = trunc nuw nsw i64 %indvars.iv97 to i32
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %60, ptr noundef %59)
  %62 = getelementptr inbounds [50 x i32], ptr @gf_arity, i64 0, i64 %indvars.iv97
  %63 = load i32, ptr %62, align 4, !tbaa !11
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %.lr.ph67, %.lr.ph63
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.lr.ph63 ], [ 0, %.lr.ph67 ]
  %65 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %indvars.iv97, i64 %indvars.iv94
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !12
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %69)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %71 = load i32, ptr %62, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next95, %72
  br i1 %73, label %.lr.ph63, label %._crit_edge64, !llvm.loop !20

._crit_edge64:                                    ; preds = %.lr.ph63, %.lr.ph67
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %74 = load i32, ptr @gnum_functions, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next98, %75
  br i1 %76, label %.lr.ph67, label %._crit_edge68, !llvm.loop !21

._crit_edge68:                                    ; preds = %._crit_edge64, %._crit_edge60
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %78

78:                                               ; preds = %._crit_edge68, %0
  tail call void @create_integer_representation()
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %80 = icmp eq i32 %79, 104
  br i1 %80, label %81, label %122

81:                                               ; preds = %78
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %83 = load i32, ptr @gnum_full_initial, align 4, !tbaa !11
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %81, %.lr.ph71
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %.lr.ph71 ], [ 0, %81 ]
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %86 = load ptr, ptr @gfull_initial, align 8, !tbaa !12
  %87 = getelementptr inbounds %struct._Fact, ptr %86, i64 %indvars.iv100
  tail call void @print_Fact(ptr noundef %87) #3
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %88 = load i32, ptr @gnum_full_initial, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next101, %89
  br i1 %90, label %.lr.ph71, label %._crit_edge72, !llvm.loop !22

._crit_edge72:                                    ; preds = %.lr.ph71, %81
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %92 = load i32, ptr @gnum_full_fluents_initial, align 4, !tbaa !11
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %._crit_edge72, %.lr.ph75
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph75 ], [ 0, %._crit_edge72 ]
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %95 = load ptr, ptr @gfull_fluents_initial, align 8, !tbaa !12
  %96 = getelementptr inbounds %struct._FluentValue, ptr %95, i64 %indvars.iv103
  tail call void @print_Fluent(ptr noundef %96) #3
  %97 = load ptr, ptr @gfull_fluents_initial, align 8, !tbaa !12
  %98 = getelementptr inbounds %struct._FluentValue, ptr %97, i64 %indvars.iv103, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !23
  %100 = fpext float %99 to double
  %101 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %100)
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %102 = load i32, ptr @gnum_full_fluents_initial, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next104, %103
  br i1 %104, label %.lr.ph75, label %._crit_edge76, !llvm.loop !26

._crit_edge76:                                    ; preds = %.lr.ph75, %._crit_edge72
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %106 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %._crit_edge76, %.lr.ph79
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph79 ], [ 0, %._crit_edge76 ]
  %108 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv106
  %109 = load ptr, ptr %108, align 8, !tbaa !12
  tail call void @print_Operator(ptr noundef %109) #3
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %110 = load i32, ptr @gnum_operators, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next107, %111
  br i1 %112, label %.lr.ph79, label %._crit_edge80, !llvm.loop !27

._crit_edge80:                                    ; preds = %.lr.ph79, %._crit_edge76
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %115 = load ptr, ptr @ggoal, align 8, !tbaa !12
  tail call void @print_Wff(ptr noundef %115, i32 noundef 0) #3
  %116 = load ptr, ptr @stdout, align 8, !tbaa !12
  %117 = tail call i32 @fflush(ptr noundef %116)
  %118 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %119 = load ptr, ptr @gmetric, align 8, !tbaa !12
  tail call void @print_ExpNode(ptr noundef %119) #3
  %120 = load ptr, ptr @stdout, align 8, !tbaa !12
  %121 = tail call i32 @fflush(ptr noundef %120)
  br label %122

122:                                              ; preds = %._crit_edge80, %78
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @collect_all_strings() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @create_member_nrs() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @create_integer_representation() local_unnamed_addr #0

declare void @print_Fact(ptr noundef) local_unnamed_addr #2

declare void @print_Fluent(ptr noundef) local_unnamed_addr #2

declare void @print_Operator(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1

declare void @print_ExpNode(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 #2 = { "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, !9, i64 768}
!6 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !9, i64 768, !9, i64 772, !9, i64 776, !7, i64 780, !9, i64 784, !10, i64 788}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!9, !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = !{!24, !10, i64 24}
!24 = !{!"_FluentValue", !25, i64 0, !10, i64 24}
!25 = !{!"_Fluent", !9, i64 0, !7, i64 4}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}


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