; 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._WffNode = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, i8 }
%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 }

@gcmd_line = external global %struct._command_line, align 4
@.str.9 = external hidden unnamed_addr constant [3 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
@gmetric = external global ptr, align 8
@.str.85 = external hidden unnamed_addr constant [64 x i8], align 1
@gnum_plan_ops = external global i32, align 4
@.str.86 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [38 x i8], align 1
@.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.90 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [34 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_Operator(ptr noundef) #1

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

declare void @print_ExpNode(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @normalize_all_wffs() #3 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @simplify_wff(ptr noundef @ggoal)
  call void @remove_unused_vars_in_wff(ptr noundef @ggoal)
  call void @expand_quantifiers_in_wff(ptr noundef @ggoal, i32 noundef -1, i32 noundef -1)
  call void @NOTs_down_in_wff(ptr noundef @ggoal)
  call void @cleanup_wff(ptr noundef @ggoal)
  %3 = load ptr, ptr @ggoal, align 8, !tbaa !5
  %4 = getelementptr inbounds %struct._WffNode, ptr %3, i32 0, i32 0
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp eq i32 %5, 2000
  br i1 %6, label %7, label %9

7:                                                ; preds = %0
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str.85)
  store i32 0, ptr @gnum_plan_ops, align 4, !tbaa !12
  call void @exit(i32 noundef 1) #5
  unreachable

9:                                                ; preds = %0
  %10 = load ptr, ptr @ggoal, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct._WffNode, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i32 %12, 2001
  br i1 %13, label %14, label %16

14:                                               ; preds = %9
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.86)
  call void @exit(i32 noundef 1) #5
  unreachable

16:                                               ; preds = %9
  call void @dnf(ptr noundef @ggoal)
  call void @cleanup_wff(ptr noundef @ggoal)
  %17 = load ptr, ptr @gmetric, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  call void @simplify_exp(ptr noundef @gmetric)
  br label %20

20:                                               ; preds = %19, %16
  store i32 0, ptr %1, align 4, !tbaa !12
  br label %21

21:                                               ; preds = %76, %20
  %22 = load i32, ptr %1, align 4, !tbaa !12
  %23 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %79

25:                                               ; preds = %21
  %26 = load i32, ptr %1, align 4, !tbaa !12
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._Operator, ptr %29, i32 0, i32 7
  call void @simplify_wff(ptr noundef %30)
  %31 = load i32, ptr %1, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._Operator, ptr %34, i32 0, i32 7
  call void @remove_unused_vars_in_wff(ptr noundef %35)
  %36 = load i32, ptr %1, align 4, !tbaa !12
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._Operator, ptr %39, i32 0, i32 7
  call void @expand_quantifiers_in_wff(ptr noundef %40, i32 noundef -1, i32 noundef -1)
  %41 = load i32, ptr %1, align 4, !tbaa !12
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._Operator, ptr %44, i32 0, i32 7
  call void @NOTs_down_in_wff(ptr noundef %45)
  %46 = load i32, ptr %1, align 4, !tbaa !12
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._Operator, ptr %49, i32 0, i32 7
  call void @cleanup_wff(ptr noundef %50)
  %51 = load i32, ptr %1, align 4, !tbaa !12
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._Operator, ptr %54, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  store ptr %56, ptr %2, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %71, %25
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %75

60:                                               ; preds = %57
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._Effect, ptr %61, i32 0, i32 3
  call void @simplify_wff(ptr noundef %62)
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._Effect, ptr %63, i32 0, i32 3
  call void @remove_unused_vars_in_wff(ptr noundef %64)
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._Effect, ptr %65, i32 0, i32 3
  call void @expand_quantifiers_in_wff(ptr noundef %66, i32 noundef -1, i32 noundef -1)
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._Effect, ptr %67, i32 0, i32 3
  call void @NOTs_down_in_wff(ptr noundef %68)
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._Effect, ptr %69, i32 0, i32 3
  call void @cleanup_wff(ptr noundef %70)
  br label %71

71:                                               ; preds = %60
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._Effect, ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  store ptr %74, ptr %2, align 8, !tbaa !5
  br label %57, !llvm.loop !17

75:                                               ; preds = %57
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %1, align 4, !tbaa !12
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %1, align 4, !tbaa !12
  br label %21, !llvm.loop !19

79:                                               ; preds = %21
  %80 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !20
  %81 = icmp eq i32 %80, 107
  br i1 %81, label %82, label %109

82:                                               ; preds = %79
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.87)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.88)
  store i32 0, ptr %1, align 4, !tbaa !12
  br label %85

85:                                               ; preds = %94, %82
  %86 = load i32, ptr %1, align 4, !tbaa !12
  %87 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %97

89:                                               ; preds = %85
  %90 = load i32, ptr %1, align 4, !tbaa !12
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  call void @print_Operator(ptr noundef %93)
  br label %94

94:                                               ; preds = %89
  %95 = load i32, ptr %1, align 4, !tbaa !12
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %1, align 4, !tbaa !12
  br label %85, !llvm.loop !23

97:                                               ; preds = %85
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.89)
  %100 = load ptr, ptr @ggoal, align 8, !tbaa !5
  call void @print_Wff(ptr noundef %100, i32 noundef 0)
  %101 = load ptr, ptr @gmetric, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %106

103:                                              ; preds = %97
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.90)
  %105 = load ptr, ptr @gmetric, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %105)
  br label %108

106:                                              ; preds = %97
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.91)
  br label %108

108:                                              ; preds = %106, %103
  br label %109

109:                                              ; preds = %108, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_WffNode", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 224}
!14 = !{!"_Operator", !6, i64 0, !7, i64 8, !11, i64 128, !7, i64 132, !11, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!15 = !{!16, !6, i64 208}
!16 = !{!"_Effect", !11, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!21, !11, i64 768}
!21 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !11, i64 768, !11, i64 772, !11, i64 776, !7, i64 780, !11, i64 784, !22, i64 788}
!22 = !{!"float", !7, i64 0}
!23 = distinct !{!23, !18}


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

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@.str.9 = external hidden unnamed_addr constant [3 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 global ptr, align 8
@gmetric = external global ptr, align 8
@.str.85 = external hidden unnamed_addr constant [64 x i8], align 1
@gnum_plan_ops = external local_unnamed_addr global i32, align 4
@.str.86 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [38 x i8], align 1
@.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.90 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare void @print_Operator(ptr noundef) local_unnamed_addr #1

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

declare void @print_ExpNode(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @normalize_all_wffs() local_unnamed_addr #3 {
  tail call void @simplify_wff(ptr noundef nonnull @ggoal)
  tail call void @remove_unused_vars_in_wff(ptr noundef nonnull @ggoal)
  tail call void @expand_quantifiers_in_wff(ptr noundef nonnull @ggoal, i32 noundef -1, i32 noundef -1)
  tail call void @NOTs_down_in_wff(ptr noundef nonnull @ggoal)
  tail call void @cleanup_wff(ptr noundef nonnull @ggoal)
  %1 = load ptr, ptr @ggoal, align 8, !tbaa !5
  %2 = load i32, ptr %1, align 8, !tbaa !9
  switch i32 %2, label %7 [
    i32 2000, label %3
    i32 2001, label %5
  ]

3:                                                ; preds = %0
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.85)
  store i32 0, ptr @gnum_plan_ops, align 4, !tbaa !12
  tail call void @exit(i32 noundef 1) #4
  unreachable

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

7:                                                ; preds = %0
  tail call void @dnf(ptr noundef nonnull @ggoal)
  tail call void @cleanup_wff(ptr noundef nonnull @ggoal)
  %8 = load ptr, ptr @gmetric, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %10, label %9

9:                                                ; preds = %7
  tail call void @simplify_exp(ptr noundef nonnull @gmetric)
  br label %10

10:                                               ; preds = %9, %7
  %11 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %10, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %10 ]
  %13 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 216
  tail call void @simplify_wff(ptr noundef nonnull %15)
  %16 = load ptr, ptr %13, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 216
  tail call void @remove_unused_vars_in_wff(ptr noundef nonnull %17)
  %18 = load ptr, ptr %13, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 216
  tail call void @expand_quantifiers_in_wff(ptr noundef nonnull %19, i32 noundef -1, i32 noundef -1)
  %20 = load ptr, ptr %13, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 216
  tail call void @NOTs_down_in_wff(ptr noundef nonnull %21)
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 216
  tail call void @cleanup_wff(ptr noundef nonnull %23)
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 224
  %.021 = load ptr, ptr %25, align 8, !tbaa !5
  %.not2022 = icmp eq ptr %.021, null
  br i1 %.not2022, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph26, %.lr.ph
  %.023 = phi ptr [ %.0, %.lr.ph ], [ %.021, %.lr.ph26 ]
  %26 = getelementptr inbounds i8, ptr %.023, i64 184
  tail call void @simplify_wff(ptr noundef nonnull %26)
  tail call void @remove_unused_vars_in_wff(ptr noundef nonnull %26)
  tail call void @expand_quantifiers_in_wff(ptr noundef nonnull %26, i32 noundef -1, i32 noundef -1)
  tail call void @NOTs_down_in_wff(ptr noundef nonnull %26)
  tail call void @cleanup_wff(ptr noundef nonnull %26)
  %27 = getelementptr inbounds i8, ptr %.023, i64 208
  %.0 = load ptr, ptr %27, align 8, !tbaa !5
  %.not20 = icmp eq ptr %.0, null
  br i1 %.not20, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph26, label %._crit_edge27, !llvm.loop !15

._crit_edge27:                                    ; preds = %._crit_edge, %10
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !16
  %32 = icmp eq i32 %31, 107
  br i1 %32, label %33, label %52

33:                                               ; preds = %._crit_edge27
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.87)
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88)
  %36 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph30, label %._crit_edge31

.lr.ph30:                                         ; preds = %33, %.lr.ph30
  %indvars.iv33 = phi i64 [ %indvars.iv.next34, %.lr.ph30 ], [ 0, %33 ]
  %38 = getelementptr inbounds [50000 x ptr], ptr @goperators, i64 0, i64 %indvars.iv33
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  tail call void @print_Operator(ptr noundef %39) #5
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %40 = load i32, ptr @gnum_operators, align 4, !tbaa !12
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %indvars.iv.next34, %41
  br i1 %42, label %.lr.ph30, label %._crit_edge31, !llvm.loop !19

._crit_edge31:                                    ; preds = %.lr.ph30, %33
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89)
  %45 = load ptr, ptr @ggoal, align 8, !tbaa !5
  tail call void @print_Wff(ptr noundef %45, i32 noundef 0) #5
  %46 = load ptr, ptr @gmetric, align 8, !tbaa !5
  %.not19 = icmp eq ptr %46, null
  br i1 %.not19, label %50, label %47

47:                                               ; preds = %._crit_edge31
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90)
  %49 = load ptr, ptr @gmetric, align 8, !tbaa !5
  tail call void @print_ExpNode(ptr noundef %49) #5
  br label %52

50:                                               ; preds = %._crit_edge31
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91)
  br label %52

52:                                               ; preds = %47, %50, %._crit_edge27
  ret void
}

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

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_WffNode", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !11, i64 768}
!17 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !11, i64 768, !11, i64 772, !11, i64 776, !7, i64 780, !11, i64 784, !18, i64 788}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !14}


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