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

@.str.104 = external hidden unnamed_addr constant [41 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

; 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
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @merge_ANDs_and_ORs_in_wff(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct._WffNode, ptr %7, i32 0, i32 0
  %9 = load i32, ptr %8, align 8, !tbaa !9
  switch i32 %9, label %148 [
    i32 2008, label %10
    i32 2009, label %10
    i32 2006, label %14
    i32 2007, label %14
    i32 2005, label %143
    i32 2003, label %147
    i32 2002, label %147
    i32 2000, label %147
    i32 2001, label %147
  ]

10:                                               ; preds = %1, %1
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._WffNode, ptr %12, i32 0, i32 9
  call void @merge_ANDs_and_ORs_in_wff(ptr noundef %13)
  br label %154

14:                                               ; preds = %1, %1
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._WffNode, ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  store ptr %18, ptr %3, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %138, %132, %69, %14
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %142

22:                                               ; preds = %19
  call void @merge_ANDs_and_ORs_in_wff(ptr noundef %3)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._WffNode, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._WffNode, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %30 = icmp eq i32 %25, %29
  br i1 %30, label %31, label %138

31:                                               ; preds = %22
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._WffNode, ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  %35 = icmp ne ptr %34, null
  br i1 %35, label %75, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._WffNode, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %49

41:                                               ; preds = %36
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._WffNode, ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._WffNode, ptr %45, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct._WffNode, ptr %47, i32 0, i32 6
  store ptr %44, ptr %48, align 8, !tbaa !14
  br label %49

49:                                               ; preds = %41, %36
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._WffNode, ptr %50, i32 0, i32 6
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %62

54:                                               ; preds = %49
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._WffNode, ptr %55, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !13
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._WffNode, ptr %58, i32 0, i32 6
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds %struct._WffNode, ptr %60, i32 0, i32 5
  store ptr %57, ptr %61, align 8, !tbaa !13
  br label %69

62:                                               ; preds = %49
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._WffNode, ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._WffNode, ptr %67, i32 0, i32 4
  store ptr %65, ptr %68, align 8, !tbaa !12
  br label %69

69:                                               ; preds = %62, %54
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %70, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._WffNode, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  store ptr %73, ptr %3, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %74) #5
  br label %19, !llvm.loop !15

75:                                               ; preds = %31
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._WffNode, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  store ptr %78, ptr %4, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %85, %75
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct._WffNode, ptr %80, i32 0, i32 5
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %89

84:                                               ; preds = %79
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._WffNode, ptr %86, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  store ptr %88, ptr %4, align 8, !tbaa !5
  br label %79, !llvm.loop !17

89:                                               ; preds = %79
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._WffNode, ptr %90, i32 0, i32 5
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._WffNode, ptr %93, i32 0, i32 5
  store ptr %92, ptr %94, align 8, !tbaa !13
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._WffNode, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %105

99:                                               ; preds = %89
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._WffNode, ptr %101, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !13
  %104 = getelementptr inbounds %struct._WffNode, ptr %103, i32 0, i32 6
  store ptr %100, ptr %104, align 8, !tbaa !14
  br label %105

105:                                              ; preds = %99, %89
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._WffNode, ptr %106, i32 0, i32 6
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %125

110:                                              ; preds = %105
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._WffNode, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !12
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._WffNode, ptr %114, i32 0, i32 6
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds %struct._WffNode, ptr %116, i32 0, i32 5
  store ptr %113, ptr %117, align 8, !tbaa !13
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._WffNode, ptr %118, i32 0, i32 6
  %120 = load ptr, ptr %119, align 8, !tbaa !14
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct._WffNode, ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !12
  %124 = getelementptr inbounds %struct._WffNode, ptr %123, i32 0, i32 6
  store ptr %120, ptr %124, align 8, !tbaa !14
  br label %132

125:                                              ; preds = %105
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._WffNode, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !12
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._WffNode, ptr %130, i32 0, i32 4
  store ptr %128, ptr %131, align 8, !tbaa !12
  br label %132

132:                                              ; preds = %125, %110
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %133, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._WffNode, ptr %134, i32 0, i32 5
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  store ptr %136, ptr %3, align 8, !tbaa !5
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %137) #5
  br label %19, !llvm.loop !15

138:                                              ; preds = %22
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._WffNode, ptr %139, i32 0, i32 5
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  store ptr %141, ptr %3, align 8, !tbaa !5
  br label %19, !llvm.loop !15

142:                                              ; preds = %19
  br label %154

143:                                              ; preds = %1
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._WffNode, ptr %145, i32 0, i32 9
  call void @merge_ANDs_and_ORs_in_wff(ptr noundef %146)
  br label %154

147:                                              ; preds = %1, %1, %1, %1
  br label %154

148:                                              ; preds = %1
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._WffNode, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.104, i32 noundef %152)
  call void @exit(i32 noundef 1) #6
  unreachable

154:                                              ; preds = %147, %143, %142, %10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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 "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !6, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

@.str.104 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @merge_ANDs_and_ORs_in_wff(ptr nocapture noundef readonly %0) local_unnamed_addr #4 {
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = load i32, ptr %3, align 8, !tbaa !9
  switch i32 %4, label %50 [
    i32 2008, label %.loopexit.sink.split
    i32 2009, label %.loopexit.sink.split
    i32 2006, label %5
    i32 2007, label %5
    i32 2005, label %.loopexit.sink.split
    i32 2003, label %.loopexit
    i32 2002, label %.loopexit
    i32 2000, label %.loopexit
    i32 2001, label %.loopexit
  ]

5:                                                ; preds = %1, %1
  %6 = getelementptr inbounds i8, ptr %3, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  store ptr %7, ptr %2, align 8, !tbaa !5
  %.not27 = icmp eq ptr %7, null
  br i1 %.not27, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %5, %.backedge
  %8 = phi ptr [ %.be, %.backedge ], [ %7, %5 ]
  call void @merge_ANDs_and_ORs_in_wff(ptr noundef nonnull %2)
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = icmp eq i32 %9, %11
  br i1 %12, label %13, label %47

13:                                               ; preds = %.lr.ph
  %14 = getelementptr inbounds i8, ptr %8, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %.not20 = icmp eq ptr %15, null
  br i1 %.not20, label %16, label %.preheader

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %8, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %.not21 = icmp eq ptr %18, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %8, i64 40
  %.pre28 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !14
  br i1 %.not21, label %._crit_edge, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %.pre28, ptr %20, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %16, %19
  %.not22 = icmp eq ptr %.pre28, null
  br i1 %.not22, label %23, label %21

21:                                               ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %.pre28, i64 32
  store ptr %18, ptr %22, align 8, !tbaa !13
  %.pre29 = load ptr, ptr %17, align 8, !tbaa !13
  br label %26

23:                                               ; preds = %._crit_edge
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  store ptr %18, ptr %25, align 8, !tbaa !12
  br label %26

26:                                               ; preds = %23, %21
  %27 = phi ptr [ %18, %23 ], [ %.pre29, %21 ]
  store ptr %27, ptr %2, align 8, !tbaa !5
  tail call void @free(ptr noundef nonnull %8) #5
  br label %.backedge

.backedge:                                        ; preds = %26, %45, %47
  %.be = phi ptr [ %49, %47 ], [ %46, %45 ], [ %27, %26 ]
  %.not = icmp eq ptr %.be, null
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !15

.preheader:                                       ; preds = %13, %.preheader
  %.0 = phi ptr [ %29, %.preheader ], [ %15, %13 ]
  %28 = getelementptr inbounds i8, ptr %.0, i64 32
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %.not23 = icmp eq ptr %29, null
  br i1 %.not23, label %30, label %.preheader, !llvm.loop !17

30:                                               ; preds = %.preheader
  %31 = getelementptr inbounds i8, ptr %.0, i64 32
  %32 = getelementptr inbounds i8, ptr %8, i64 32
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  store ptr %33, ptr %31, align 8, !tbaa !13
  %.not24 = icmp eq ptr %33, null
  br i1 %.not24, label %36, label %34

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %33, i64 40
  store ptr %.0, ptr %35, align 8, !tbaa !14
  br label %36

36:                                               ; preds = %34, %30
  %37 = getelementptr inbounds i8, ptr %8, i64 40
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  %.not25 = icmp eq ptr %38, null
  br i1 %.not25, label %42, label %39

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %38, i64 32
  store ptr %15, ptr %40, align 8, !tbaa !13
  %41 = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %38, ptr %41, align 8, !tbaa !14
  %.pre = load ptr, ptr %32, align 8, !tbaa !13
  br label %45

42:                                               ; preds = %36
  %43 = load ptr, ptr %0, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 24
  store ptr %15, ptr %44, align 8, !tbaa !12
  br label %45

45:                                               ; preds = %42, %39
  %46 = phi ptr [ %33, %42 ], [ %.pre, %39 ]
  store ptr %46, ptr %2, align 8, !tbaa !5
  tail call void @free(ptr noundef nonnull %8) #5
  br label %.backedge

47:                                               ; preds = %.lr.ph
  %48 = getelementptr inbounds i8, ptr %8, i64 32
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  store ptr %49, ptr %2, align 8, !tbaa !5
  br label %.backedge

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

.loopexit.sink.split:                             ; preds = %1, %1, %1
  %52 = getelementptr inbounds i8, ptr %3, i64 64
  tail call void @merge_ANDs_and_ORs_in_wff(ptr noundef nonnull %52)
  br label %.loopexit

.loopexit:                                        ; preds = %.backedge, %.loopexit.sink.split, %5, %1, %1, %1, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !6, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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