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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._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._MixedOperator = type { ptr, [15 x i32], ptr, i32, ptr, ptr, ptr, i32, ptr, ptr }

@gcmd_line = external global %struct._command_line, align 4
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@gnum_hard_operators = external global i32, align 4
@ghard_operators = external global ptr, align 8
@stdout = external global ptr, align 8
@gnum_predicates = external global i32, align 4
@garity = external global [50 x i32], align 16
@gnum_constants = external global i32, align 4
@lini = external dso_local global [50 x ptr], align 16
@gnum_initial_predicate = external global ptr, align 8
@ginitial_predicate = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@ghard_mixed_operators = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@gnum_hard_templates = external global i32, align 4
@ghard_templates = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @build_hard_action_templates() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @cleanup_hard_domain()
  %6 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %7 = icmp eq i32 %6, 115
  br i1 %7, label %8, label %26

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

10:                                               ; preds = %20, %8
  %11 = load i32, ptr %1, align 4, !tbaa !11
  %12 = load i32, ptr @gnum_hard_operators, align 4, !tbaa !11
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %14, label %23

14:                                               ; preds = %10
  %15 = load ptr, ptr @ghard_operators, align 8, !tbaa !12
  %16 = load i32, ptr %1, align 4, !tbaa !11
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds ptr, ptr %15, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  call void @print_Operator(ptr noundef %19)
  br label %20

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

23:                                               ; preds = %10
  %24 = load ptr, ptr @stdout, align 8, !tbaa !12
  %25 = call i32 @fflush(ptr noundef %24)
  br label %26

26:                                               ; preds = %23, %0
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %100, %26
  %28 = load i32, ptr %1, align 4, !tbaa !11
  %29 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %31, label %103

31:                                               ; preds = %27
  store i32 1, ptr %3, align 4, !tbaa !11
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %43, %31
  %33 = load i32, ptr %2, align 4, !tbaa !11
  %34 = load i32, ptr %1, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp slt i32 %33, %37
  br i1 %38, label %39, label %46

39:                                               ; preds = %32
  %40 = load i32, ptr @gnum_constants, align 4, !tbaa !11
  %41 = load i32, ptr %3, align 4, !tbaa !11
  %42 = mul nsw i32 %41, %40
  store i32 %42, ptr %3, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %39
  %44 = load i32, ptr %2, align 4, !tbaa !11
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %2, align 4, !tbaa !11
  br label %32, !llvm.loop !16

46:                                               ; preds = %32
  %47 = load i32, ptr %3, align 4, !tbaa !11
  %48 = sext i32 %47 to i64
  %49 = call noalias ptr @calloc(i64 noundef %48, i64 noundef 4) #5
  %50 = load i32, ptr %1, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [50 x ptr], ptr @lini, i64 0, i64 %51
  store ptr %49, ptr %52, align 8, !tbaa !12
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %65, %46
  %54 = load i32, ptr %2, align 4, !tbaa !11
  %55 = load i32, ptr %3, align 4, !tbaa !11
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %68

57:                                               ; preds = %53
  %58 = load i32, ptr %1, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [50 x ptr], ptr @lini, i64 0, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !12
  %62 = load i32, ptr %2, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %61, i64 %63
  store i32 0, ptr %64, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %57
  %66 = load i32, ptr %2, align 4, !tbaa !11
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %2, align 4, !tbaa !11
  br label %53, !llvm.loop !17

68:                                               ; preds = %53
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %96, %68
  %70 = load i32, ptr %2, align 4, !tbaa !11
  %71 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !12
  %72 = load i32, ptr %1, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = icmp slt i32 %70, %75
  br i1 %76, label %77, label %99

77:                                               ; preds = %69
  %78 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !12
  %79 = load i32, ptr %1, align 4, !tbaa !11
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = load i32, ptr %2, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct._Fact, ptr %82, i64 %84
  %86 = call i32 @instantiated_fact_adress(ptr noundef %85)
  store i32 %86, ptr %4, align 4, !tbaa !11
  %87 = load i32, ptr %1, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [50 x ptr], ptr @lini, i64 0, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !12
  %91 = load i32, ptr %4, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %90, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %77
  %97 = load i32, ptr %2, align 4, !tbaa !11
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %2, align 4, !tbaa !11
  br label %69, !llvm.loop !18

99:                                               ; preds = %69
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %1, align 4, !tbaa !11
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %1, align 4, !tbaa !11
  br label %27, !llvm.loop !19

103:                                              ; preds = %27
  call void @multiply_hard_op_parameters()
  %104 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %105 = icmp eq i32 %104, 116
  br i1 %105, label %106, label %121

106:                                              ; preds = %103
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %108 = load ptr, ptr @ghard_mixed_operators, align 8, !tbaa !12
  store ptr %108, ptr %5, align 8, !tbaa !12
  br label %109

109:                                              ; preds = %114, %106
  %110 = load ptr, ptr %5, align 8, !tbaa !12
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %118

112:                                              ; preds = %109
  %113 = load ptr, ptr %5, align 8, !tbaa !12
  call void @print_MixedOperator(ptr noundef %113)
  br label %114

114:                                              ; preds = %112
  %115 = load ptr, ptr %5, align 8, !tbaa !12
  %116 = getelementptr inbounds %struct._MixedOperator, ptr %115, i32 0, i32 9
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  store ptr %117, ptr %5, align 8, !tbaa !12
  br label %109, !llvm.loop !22

118:                                              ; preds = %109
  %119 = load ptr, ptr @stdout, align 8, !tbaa !12
  %120 = call i32 @fflush(ptr noundef %119)
  br label %121

121:                                              ; preds = %118, %103
  call void @multiply_hard_effect_parameters()
  %122 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %123 = icmp eq i32 %122, 117
  br i1 %123, label %124, label %142

124:                                              ; preds = %121
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %126

126:                                              ; preds = %136, %124
  %127 = load i32, ptr %1, align 4, !tbaa !11
  %128 = load i32, ptr @gnum_hard_templates, align 4, !tbaa !11
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %139

130:                                              ; preds = %126
  %131 = load ptr, ptr @ghard_templates, align 8, !tbaa !12
  %132 = load i32, ptr %1, align 4, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !12
  call void @print_PseudoAction(ptr noundef %135)
  br label %136

136:                                              ; preds = %130
  %137 = load i32, ptr %1, align 4, !tbaa !11
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %1, align 4, !tbaa !11
  br label %126, !llvm.loop !23

139:                                              ; preds = %126
  %140 = load ptr, ptr @stdout, align 8, !tbaa !12
  %141 = call i32 @fflush(ptr noundef %140)
  br label %142

142:                                              ; preds = %139, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  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 @cleanup_hard_domain() #0

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

declare void @print_Operator(ptr noundef) #2

declare i32 @fflush(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @instantiated_fact_adress(ptr noundef) #0

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

declare void @print_MixedOperator(ptr noundef) #2

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

declare void @print_PseudoAction(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 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 #4 = { nounwind }
attributes #5 = { 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, !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 = !{!21, !13, i64 128}
!21 = !{!"_MixedOperator", !13, i64 0, !7, i64 8, !13, i64 72, !9, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !9, i64 112, !13, i64 120, !13, i64 128}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !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] }

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@gnum_hard_operators = external local_unnamed_addr global i32, align 4
@ghard_operators = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@gnum_predicates = external local_unnamed_addr global i32, align 4
@garity = external local_unnamed_addr global [50 x i32], align 16
@gnum_constants = external local_unnamed_addr global i32, align 4
@lini = external dso_local local_unnamed_addr global [50 x ptr], align 16
@gnum_initial_predicate = external local_unnamed_addr global ptr, align 8
@ginitial_predicate = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@ghard_mixed_operators = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@gnum_hard_templates = external local_unnamed_addr global i32, align 4
@ghard_templates = external local_unnamed_addr global ptr, align 8

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

3:                                                ; preds = %0
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = load i32, ptr @gnum_hard_operators, 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 = load ptr, ptr @ghard_operators, align 8, !tbaa !12
  %8 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  tail call void @print_Operator(ptr noundef %9) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @gnum_hard_operators, align 4, !tbaa !11
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next, %11
  br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %3
  %13 = load ptr, ptr @stdout, align 8, !tbaa !12
  %14 = tail call i32 @fflush(ptr noundef %13)
  br label %15

15:                                               ; preds = %._crit_edge, %0
  %16 = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.preheader33, label %._crit_edge47

.preheader33:                                     ; preds = %15, %._crit_edge45
  %18 = phi i32 [ %54, %._crit_edge45 ], [ %16, %15 ]
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %._crit_edge45 ], [ 0, %15 ]
  %19 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %indvars.iv65
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %.preheader33
  %22 = load i32, ptr @gnum_constants, align 4, !tbaa !11
  %min.iters.check = icmp ult i32 %20, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph37
  %n.vec = and i32 %20, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %22, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %23, %vector.body ]
  %vec.phi71 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %24, %vector.body ]
  %23 = mul <4 x i32> %broadcast.splat, %vec.phi
  %24 = mul <4 x i32> %broadcast.splat, %vec.phi71
  %index.next = add nuw i32 %index, 8
  %25 = icmp eq i32 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %24, %23
  %26 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i32 %20, %n.vec
  br i1 %cmp.n, label %._crit_edge38, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph37
  %.02936.ph = phi i32 [ 1, %.lr.ph37 ], [ %26, %middle.block ]
  %.03035.ph = phi i32 [ 0, %.lr.ph37 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.02936 = phi i32 [ %27, %scalar.ph ], [ %.02936.ph, %scalar.ph.preheader ]
  %.03035 = phi i32 [ %28, %scalar.ph ], [ %.03035.ph, %scalar.ph.preheader ]
  %27 = mul nsw i32 %22, %.02936
  %28 = add nuw nsw i32 %.03035, 1
  %exitcond.not = icmp eq i32 %28, %20
  br i1 %exitcond.not, label %._crit_edge38, label %scalar.ph, !llvm.loop !19

._crit_edge38:                                    ; preds = %scalar.ph, %middle.block, %.preheader33
  %.029.lcssa = phi i32 [ 1, %.preheader33 ], [ %26, %middle.block ], [ %27, %scalar.ph ]
  %29 = sext i32 %.029.lcssa to i64
  %30 = tail call noalias ptr @calloc(i64 noundef %29, i64 noundef 4) #7
  %31 = getelementptr inbounds [50 x ptr], ptr @lini, i64 0, i64 %indvars.iv65
  store ptr %30, ptr %31, align 8, !tbaa !12
  %32 = icmp sgt i32 %.029.lcssa, 0
  br i1 %32, label %.lr.ph42.preheader, label %.preheader

.lr.ph42.preheader:                               ; preds = %._crit_edge38
  %33 = zext nneg i32 %.029.lcssa to i64
  %34 = shl nuw nsw i64 %33, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %30, i8 0, i64 %34, i1 false), !tbaa !11
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph42.preheader, %._crit_edge38
  %35 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !12
  %36 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv65
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph44, label %._crit_edge45

.lr.ph44:                                         ; preds = %.preheader, %.lr.ph44
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.lr.ph44 ], [ 0, %.preheader ]
  %39 = load ptr, ptr @ginitial_predicate, align 8, !tbaa !12
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv65
  %41 = load ptr, ptr %40, align 8, !tbaa !12
  %42 = getelementptr inbounds %struct._Fact, ptr %41, i64 %indvars.iv62
  %43 = tail call i32 @instantiated_fact_adress(ptr noundef %42)
  %44 = load ptr, ptr %31, align 8, !tbaa !12
  %45 = sext i32 %43 to i64
  %46 = getelementptr inbounds i32, ptr %44, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !11
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %49 = load ptr, ptr @gnum_initial_predicate, align 8, !tbaa !12
  %50 = getelementptr inbounds i32, ptr %49, i64 %indvars.iv65
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next63, %52
  br i1 %53, label %.lr.ph44, label %._crit_edge45.loopexit, !llvm.loop !20

._crit_edge45.loopexit:                           ; preds = %.lr.ph44
  %.pre = load i32, ptr @gnum_predicates, align 4, !tbaa !11
  br label %._crit_edge45

._crit_edge45:                                    ; preds = %._crit_edge45.loopexit, %.preheader
  %54 = phi i32 [ %.pre, %._crit_edge45.loopexit ], [ %18, %.preheader ]
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next66, %55
  br i1 %56, label %.preheader33, label %._crit_edge47, !llvm.loop !21

._crit_edge47:                                    ; preds = %._crit_edge45, %15
  tail call void @multiply_hard_op_parameters()
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %58 = icmp eq i32 %57, 116
  br i1 %58, label %59, label %64

59:                                               ; preds = %._crit_edge47
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %.048 = load ptr, ptr @ghard_mixed_operators, align 8, !tbaa !12
  %.not49 = icmp eq ptr %.048, null
  br i1 %.not49, label %._crit_edge53, label %.lr.ph52

.lr.ph52:                                         ; preds = %59, %.lr.ph52
  %.050 = phi ptr [ %.0, %.lr.ph52 ], [ %.048, %59 ]
  tail call void @print_MixedOperator(ptr noundef nonnull %.050) #6
  %61 = getelementptr inbounds i8, ptr %.050, i64 128
  %.0 = load ptr, ptr %61, align 8, !tbaa !12
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge53, label %.lr.ph52, !llvm.loop !22

._crit_edge53:                                    ; preds = %.lr.ph52, %59
  %62 = load ptr, ptr @stdout, align 8, !tbaa !12
  %63 = tail call i32 @fflush(ptr noundef %62)
  br label %64

64:                                               ; preds = %._crit_edge53, %._crit_edge47
  tail call void @multiply_hard_effect_parameters()
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %66 = icmp eq i32 %65, 117
  br i1 %66, label %67, label %79

67:                                               ; preds = %64
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %69 = load i32, ptr @gnum_hard_templates, align 4, !tbaa !11
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %67, %.lr.ph56
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %.lr.ph56 ], [ 0, %67 ]
  %71 = load ptr, ptr @ghard_templates, align 8, !tbaa !12
  %72 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv68
  %73 = load ptr, ptr %72, align 8, !tbaa !12
  tail call void @print_PseudoAction(ptr noundef %73) #6
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %74 = load i32, ptr @gnum_hard_templates, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next69, %75
  br i1 %76, label %.lr.ph56, label %._crit_edge57, !llvm.loop !23

._crit_edge57:                                    ; preds = %.lr.ph56, %67
  %77 = load ptr, ptr @stdout, align 8, !tbaa !12
  %78 = tail call i32 @fflush(ptr noundef %77)
  br label %79

79:                                               ; preds = %._crit_edge57, %64
  ret void
}

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

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

declare void @print_Operator(ptr noundef) local_unnamed_addr #2

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

; 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 #3

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

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

declare void @print_MixedOperator(ptr noundef) local_unnamed_addr #2

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

declare void @print_PseudoAction(ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #5

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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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, !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, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !15, !18, !17}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}


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