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

; 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._FactList = type { ptr, ptr }
%struct._TokenList = type { ptr, ptr }
%struct._PlOperator = type { ptr, i8, i32, ptr, ptr, ptr, ptr, ptr }

@gorig_goal_facts = external global ptr, align 8
@gloaded_ops = external global ptr, align 8
@gorig_constant_list = external global ptr, align 8
@gcmd_line = external global %struct._command_line, align 4
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@gorig_initial_facts = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 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

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

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

declare ptr @new_PlNode(i32 noundef) #1

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

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

11:                                               ; preds = %28, %7
  %12 = load ptr, ptr %3, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %32

14:                                               ; preds = %11
  %15 = load ptr, ptr %3, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct._FactList, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds %struct._TokenList, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !11
  %21 = getelementptr inbounds %struct._FactList, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct._TokenList, ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds %struct._TokenList, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %19, ptr noundef %26)
  br label %28

28:                                               ; preds = %14
  %29 = load ptr, ptr %3, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct._FactList, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  store ptr %31, ptr %3, align 8, !tbaa !11
  br label %11, !llvm.loop !19

32:                                               ; preds = %11
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %34 = load ptr, ptr @gorig_initial_facts, align 8, !tbaa !11
  call void @print_PlNode(ptr noundef %34, i32 noundef 0)
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %36 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  call void @print_PlNode(ptr noundef %36, i32 noundef 0)
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %38 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  call void @print_plops(ptr noundef %38)
  br label %39

39:                                               ; preds = %32, %0
  %40 = call zeroext i8 @make_conjunction_of_atoms(ptr noundef @gorig_initial_facts)
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i8 0, ptr %1, align 1
  store i32 1, ptr %4, align 4
  br label %132

44:                                               ; preds = %39
  %45 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  %46 = icmp ne ptr %45, null
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  %48 = call ptr @new_PlNode(i32 noundef 2000)
  store ptr %48, ptr @gorig_goal_facts, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %47, %44
  %50 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  %51 = call zeroext i8 @is_wff(ptr noundef %50)
  %52 = icmp ne i8 %51, 0
  br i1 %52, label %56, label %53

53:                                               ; preds = %49
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %55 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  call void @print_PlNode(ptr noundef %55, i32 noundef 0)
  store i8 0, ptr %1, align 1
  store i32 1, ptr %4, align 4
  br label %132

56:                                               ; preds = %49
  %57 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  store ptr %57, ptr %2, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %92, %56
  %59 = load ptr, ptr %2, align 8, !tbaa !11
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %96

61:                                               ; preds = %58
  %62 = load ptr, ptr %2, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct._PlOperator, ptr %62, i32 0, i32 5
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = icmp ne ptr %64, null
  br i1 %65, label %70, label %66

66:                                               ; preds = %61
  %67 = call ptr @new_PlNode(i32 noundef 2000)
  %68 = load ptr, ptr %2, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct._PlOperator, ptr %68, i32 0, i32 5
  store ptr %67, ptr %69, align 8, !tbaa !21
  br label %70

70:                                               ; preds = %66, %61
  %71 = load ptr, ptr %2, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct._PlOperator, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = call zeroext i8 @is_wff(ptr noundef %73)
  %75 = icmp ne i8 %74, 0
  br i1 %75, label %81, label %76

76:                                               ; preds = %70
  %77 = load ptr, ptr %2, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct._PlOperator, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %79)
  store i8 0, ptr %1, align 1
  store i32 1, ptr %4, align 4
  br label %132

81:                                               ; preds = %70
  %82 = load ptr, ptr %2, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct._PlOperator, ptr %82, i32 0, i32 6
  %84 = call zeroext i8 @make_effects(ptr noundef %83)
  %85 = icmp ne i8 %84, 0
  br i1 %85, label %91, label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr %2, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct._PlOperator, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !23
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %89)
  store i8 0, ptr %1, align 1
  store i32 1, ptr %4, align 4
  br label %132

91:                                               ; preds = %81
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %2, align 8, !tbaa !11
  %94 = getelementptr inbounds %struct._PlOperator, ptr %93, i32 0, i32 7
  %95 = load ptr, ptr %94, align 8, !tbaa !24
  store ptr %95, ptr %2, align 8, !tbaa !11
  br label %58, !llvm.loop !25

96:                                               ; preds = %58
  %97 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !5
  %98 = icmp eq i32 %97, 102
  br i1 %98, label %99, label %131

99:                                               ; preds = %96
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %102 = load ptr, ptr @gorig_constant_list, align 8, !tbaa !11
  store ptr %102, ptr %3, align 8, !tbaa !11
  br label %103

103:                                              ; preds = %120, %99
  %104 = load ptr, ptr %3, align 8, !tbaa !11
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %124

106:                                              ; preds = %103
  %107 = load ptr, ptr %3, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct._FactList, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = getelementptr inbounds %struct._TokenList, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  %112 = load ptr, ptr %3, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct._FactList, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  %115 = getelementptr inbounds %struct._TokenList, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = getelementptr inbounds %struct._TokenList, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %111, ptr noundef %118)
  br label %120

120:                                              ; preds = %106
  %121 = load ptr, ptr %3, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct._FactList, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  store ptr %123, ptr %3, align 8, !tbaa !11
  br label %103, !llvm.loop !26

124:                                              ; preds = %103
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %126 = load ptr, ptr @gorig_initial_facts, align 8, !tbaa !11
  call void @print_PlNode(ptr noundef %126, i32 noundef 0)
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %128 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  call void @print_PlNode(ptr noundef %128, i32 noundef 0)
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %130 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  call void @print_plops(ptr noundef %130)
  br label %131

131:                                              ; preds = %124, %96
  store i8 1, ptr %1, align 1
  store i32 1, ptr %4, align 4
  br label %132

132:                                              ; preds = %131, %86, %76, %53, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  %133 = load i8, ptr %1, align 1
  ret i8 %133
}

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

declare void @print_plops(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @make_effects(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, !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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_FactList", !12, i64 0, !12, i64 8}
!15 = !{!16, !12, i64 0}
!16 = !{!"_TokenList", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{!14, !12, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !12, i64 32}
!22 = !{!"_PlOperator", !12, i64 0, !7, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!23 = !{!22, !12, i64 0}
!24 = !{!22, !12, i64 48}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


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

@gorig_goal_facts = external local_unnamed_addr global ptr, align 8
@gloaded_ops = external local_unnamed_addr global ptr, align 8
@gorig_constant_list = external local_unnamed_addr global ptr, align 8
@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@gorig_initial_facts = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1

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

declare ptr @new_PlNode(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @make_adl_domain() local_unnamed_addr #2 {
  %1 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %2 = icmp eq i32 %1, 101
  br i1 %2, label %3, label %19

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

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.030 = phi ptr [ %.0, %.lr.ph ], [ %.028, %3 ]
  %6 = load ptr, ptr %.030, align 8, !tbaa !13
  %7 = load ptr, ptr %6, align 8, !tbaa !15
  %8 = getelementptr inbounds i8, ptr %6, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !17
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %7, ptr noundef %10)
  %12 = getelementptr inbounds i8, ptr %.030, i64 8
  %.0 = load ptr, ptr %12, align 8, !tbaa !11
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %3
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %14 = load ptr, ptr @gorig_initial_facts, align 8, !tbaa !11
  tail call void @print_PlNode(ptr noundef %14, i32 noundef 0) #3
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %16 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  tail call void @print_PlNode(ptr noundef %16, i32 noundef 0) #3
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %18 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  tail call void @print_plops(ptr noundef %18) #3
  br label %19

19:                                               ; preds = %._crit_edge, %0
  %20 = tail call zeroext i8 @make_conjunction_of_atoms(ptr noundef nonnull @gorig_initial_facts)
  %.not18 = icmp eq i8 %20, 0
  br i1 %.not18, label %21, label %23

21:                                               ; preds = %19
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %69

23:                                               ; preds = %19
  %24 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  %.not19 = icmp eq ptr %24, null
  br i1 %.not19, label %25, label %27

25:                                               ; preds = %23
  %26 = tail call ptr @new_PlNode(i32 noundef 2000) #3
  store ptr %26, ptr @gorig_goal_facts, align 8, !tbaa !11
  br label %27

27:                                               ; preds = %25, %23
  %28 = phi ptr [ %26, %25 ], [ %24, %23 ]
  %29 = tail call zeroext i8 @is_wff(ptr noundef %28)
  %.not20 = icmp eq i8 %29, 0
  br i1 %.not20, label %30, label %.preheader

.preheader:                                       ; preds = %27
  %.01631 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  %.not2132 = icmp eq ptr %.01631, null
  br i1 %.not2132, label %._crit_edge35, label %.lr.ph34

30:                                               ; preds = %27
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %32 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  tail call void @print_PlNode(ptr noundef %32, i32 noundef 0) #3
  br label %69

.lr.ph34:                                         ; preds = %.preheader, %49
  %.01633 = phi ptr [ %.016, %49 ], [ %.01631, %.preheader ]
  %33 = getelementptr inbounds i8, ptr %.01633, i64 32
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  %.not23 = icmp eq ptr %34, null
  br i1 %.not23, label %35, label %37

35:                                               ; preds = %.lr.ph34
  %36 = tail call ptr @new_PlNode(i32 noundef 2000) #3
  store ptr %36, ptr %33, align 8, !tbaa !20
  br label %37

37:                                               ; preds = %35, %.lr.ph34
  %38 = phi ptr [ %36, %35 ], [ %34, %.lr.ph34 ]
  %39 = tail call zeroext i8 @is_wff(ptr noundef %38)
  %.not24 = icmp eq i8 %39, 0
  br i1 %.not24, label %40, label %43

40:                                               ; preds = %37
  %41 = load ptr, ptr %.01633, align 8, !tbaa !22
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %41)
  br label %69

43:                                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %.01633, i64 40
  %45 = tail call zeroext i8 @make_effects(ptr noundef nonnull %44)
  %.not25 = icmp eq i8 %45, 0
  br i1 %.not25, label %46, label %49

46:                                               ; preds = %43
  %47 = load ptr, ptr %.01633, align 8, !tbaa !22
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %47)
  br label %69

49:                                               ; preds = %43
  %50 = getelementptr inbounds i8, ptr %.01633, i64 48
  %.016 = load ptr, ptr %50, align 8, !tbaa !11
  %.not21 = icmp eq ptr %.016, null
  br i1 %.not21, label %._crit_edge35, label %.lr.ph34, !llvm.loop !23

._crit_edge35:                                    ; preds = %49, %.preheader
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !5
  %52 = icmp eq i32 %51, 102
  br i1 %52, label %53, label %69

53:                                               ; preds = %._crit_edge35
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %.136 = load ptr, ptr @gorig_constant_list, align 8, !tbaa !11
  %.not2237 = icmp eq ptr %.136, null
  br i1 %.not2237, label %._crit_edge41, label %.lr.ph40

.lr.ph40:                                         ; preds = %53, %.lr.ph40
  %.138 = phi ptr [ %.1, %.lr.ph40 ], [ %.136, %53 ]
  %56 = load ptr, ptr %.138, align 8, !tbaa !13
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %56, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %57, ptr noundef %60)
  %62 = getelementptr inbounds i8, ptr %.138, i64 8
  %.1 = load ptr, ptr %62, align 8, !tbaa !11
  %.not22 = icmp eq ptr %.1, null
  br i1 %.not22, label %._crit_edge41, label %.lr.ph40, !llvm.loop !24

._crit_edge41:                                    ; preds = %.lr.ph40, %53
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %64 = load ptr, ptr @gorig_initial_facts, align 8, !tbaa !11
  tail call void @print_PlNode(ptr noundef %64, i32 noundef 0) #3
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %66 = load ptr, ptr @gorig_goal_facts, align 8, !tbaa !11
  tail call void @print_PlNode(ptr noundef %66, i32 noundef 0) #3
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %68 = load ptr, ptr @gloaded_ops, align 8, !tbaa !11
  tail call void @print_plops(ptr noundef %68) #3
  br label %69

69:                                               ; preds = %._crit_edge35, %._crit_edge41, %46, %40, %30, %21
  %.017 = phi i8 [ 0, %46 ], [ 0, %40 ], [ 0, %30 ], [ 0, %21 ], [ 1, %._crit_edge41 ], [ 1, %._crit_edge35 ]
  ret i8 %.017
}

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

declare void @print_plops(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @make_effects(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, !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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_FactList", !12, i64 0, !12, i64 8}
!15 = !{!16, !12, i64 0}
!16 = !{!"_TokenList", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !12, i64 32}
!21 = !{!"_PlOperator", !12, i64 0, !7, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!22 = !{!21, !12, i64 0}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass