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

; 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._State = type { ptr, i32, ptr, ptr }
%struct._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%struct._BfsNode = type { %struct._State, i32, i32, i32, float, float, float, ptr, i32, ptr, ptr, ptr }

@gnum_ft_conn = external global i32, align 4
@gnum_fl_conn = external global i32, align 4
@ginitial_state = external global %struct._State, align 8
@gcmd_line = external global %struct._command_line, align 4
@stdout = external global ptr, align 8
@lbfs_space_head = external dso_local global ptr, align 8
@lbfs_space_had = external dso_local global ptr, align 8
@lbfs_hash_entry = external dso_local global [65536 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = 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 void @make_state(ptr noundef, i32 noundef, i32 noundef) #1

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: nounwind uwtable
declare dso_local zeroext i8 @result_to_dest(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @fflush(ptr noundef) #1

declare zeroext i8 @LESS(i32 noundef, i32 noundef) #1

declare ptr @new_BfsNode() #1

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

; Function Attrs: nounwind uwtable
define dso_local void @do_Astar_epsilon() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct._State, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 -1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 1, ptr %5, align 1, !tbaa !9
  %7 = call ptr @new_BfsNode()
  store ptr %7, ptr @lbfs_space_had, align 8, !tbaa !10
  %8 = call ptr @new_BfsNode()
  store ptr %8, ptr @lbfs_space_head, align 8, !tbaa !10
  %9 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !5
  %10 = load i32, ptr @gnum_fl_conn, align 4, !tbaa !5
  call void @make_state(ptr noundef %2, i32 noundef %9, i32 noundef %10)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %18, %0
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 65536
  br i1 %13, label %14, label %21

14:                                               ; preds = %11
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [65536 x ptr], ptr @lbfs_hash_entry, i64 0, i64 %16
  store ptr null, ptr %17, align 8, !tbaa !10
  br label %18

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

21:                                               ; preds = %11
  call void @add_to_Astar_epsilon_space(ptr noundef @ginitial_state, i32 noundef -1, ptr noundef null)
  br label %22

22:                                               ; preds = %105, %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr @lbfs_space_head, align 8, !tbaa !10
  %25 = getelementptr inbounds %struct._BfsNode, ptr %24, i32 0, i32 10
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %34

28:                                               ; preds = %23
  %29 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !18
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %33

33:                                               ; preds = %31, %28
  store i32 1, ptr %6, align 4
  br label %117

34:                                               ; preds = %23
  %35 = call ptr @Astar_epsilon_select_first()
  store ptr %35, ptr %1, align 8, !tbaa !10
  %36 = load ptr, ptr %1, align 8, !tbaa !10
  %37 = getelementptr inbounds %struct._BfsNode, ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 8, !tbaa !20
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = call zeroext i8 @LESS(i32 noundef %38, i32 noundef %39)
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %42, label %67

42:                                               ; preds = %34
  %43 = load ptr, ptr %1, align 8, !tbaa !10
  %44 = getelementptr inbounds %struct._BfsNode, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !20
  store i32 %45, ptr %4, align 4, !tbaa !5
  %46 = load i8, ptr %5, align 1, !tbaa !9
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %48, label %57

48:                                               ; preds = %42
  %49 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !18
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %48
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %52)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !10
  %55 = call i32 @fflush(ptr noundef %54)
  br label %56

56:                                               ; preds = %51, %48
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %66

57:                                               ; preds = %42
  %58 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !18
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %57
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %61)
  %63 = load ptr, ptr @stdout, align 8, !tbaa !10
  %64 = call i32 @fflush(ptr noundef %63)
  br label %65

65:                                               ; preds = %60, %57
  br label %66

66:                                               ; preds = %65, %56
  br label %67

67:                                               ; preds = %66, %34
  %68 = load ptr, ptr %1, align 8, !tbaa !10
  %69 = getelementptr inbounds %struct._BfsNode, ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 8, !tbaa !20
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  br label %114

73:                                               ; preds = %67
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %102, %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = load ptr, ptr %1, align 8, !tbaa !10
  %77 = getelementptr inbounds %struct._BfsNode, ptr %76, i32 0, i32 8
  %78 = load i32, ptr %77, align 8, !tbaa !21
  %79 = icmp slt i32 %75, %78
  br i1 %79, label %80, label %105

80:                                               ; preds = %74
  %81 = load ptr, ptr %1, align 8, !tbaa !10
  %82 = getelementptr inbounds %struct._BfsNode, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %1, align 8, !tbaa !10
  %84 = getelementptr inbounds %struct._BfsNode, ptr %83, i32 0, i32 7
  %85 = load ptr, ptr %84, align 8, !tbaa !22
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call zeroext i8 @result_to_dest(ptr noundef %2, ptr noundef %82, i32 noundef %89)
  %91 = icmp ne i8 %90, 0
  br i1 %91, label %92, label %101

92:                                               ; preds = %80
  %93 = load ptr, ptr %1, align 8, !tbaa !10
  %94 = getelementptr inbounds %struct._BfsNode, ptr %93, i32 0, i32 7
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load ptr, ptr %1, align 8, !tbaa !10
  call void @add_to_Astar_epsilon_space(ptr noundef %2, i32 noundef %99, ptr noundef %100)
  br label %101

101:                                              ; preds = %92, %80
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %3, align 4, !tbaa !5
  br label %74, !llvm.loop !23

105:                                              ; preds = %74
  %106 = load ptr, ptr @lbfs_space_had, align 8, !tbaa !10
  %107 = getelementptr inbounds %struct._BfsNode, ptr %106, i32 0, i32 10
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = load ptr, ptr %1, align 8, !tbaa !10
  %110 = getelementptr inbounds %struct._BfsNode, ptr %109, i32 0, i32 10
  store ptr %108, ptr %110, align 8, !tbaa !14
  %111 = load ptr, ptr %1, align 8, !tbaa !10
  %112 = load ptr, ptr @lbfs_space_had, align 8, !tbaa !10
  %113 = getelementptr inbounds %struct._BfsNode, ptr %112, i32 0, i32 10
  store ptr %111, ptr %113, align 8, !tbaa !14
  br label %22

114:                                              ; preds = %72
  %115 = load ptr, ptr %1, align 8, !tbaa !10
  %116 = call zeroext i8 @extract_plan(ptr noundef %115)
  store i32 0, ptr %6, align 4
  br label %117

117:                                              ; preds = %114, %33
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %118 = load i32, ptr %6, align 4
  switch i32 %118, label %120 [
    i32 0, label %119
    i32 1, label %119
  ]

119:                                              ; preds = %117, %117
  ret void

120:                                              ; preds = %117
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @Astar_epsilon_select_first() #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 80}
!15 = !{!"_BfsNode", !16, i64 0, !6, i64 32, !6, i64 36, !6, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !11, i64 56, !6, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!16 = !{!"_State", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 24}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !6, i64 768}
!19 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !6, i64 768, !6, i64 772, !6, i64 776, !7, i64 780, !6, i64 784, !17, i64 788}
!20 = !{!15, !6, i64 40}
!21 = !{!15, !6, i64 64}
!22 = !{!15, !11, i64 56}
!23 = distinct !{!23, !13}


; 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._State = type { ptr, i32, ptr, ptr }
%struct._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }

@gnum_ft_conn = external local_unnamed_addr global i32, align 4
@gnum_fl_conn = external local_unnamed_addr global i32, align 4
@ginitial_state = external global %struct._State, align 8
@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@stdout = external local_unnamed_addr global ptr, align 8
@lbfs_space_head = external dso_local local_unnamed_addr global ptr, align 8
@lbfs_space_had = external dso_local local_unnamed_addr global ptr, align 8
@lbfs_hash_entry = external dso_local local_unnamed_addr global [65536 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @result_to_dest(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare zeroext i8 @LESS(i32 noundef, i32 noundef) local_unnamed_addr #1

declare ptr @new_BfsNode() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @do_Astar_epsilon() local_unnamed_addr #3 {
  %1 = alloca %struct._State, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #5
  %2 = tail call ptr @new_BfsNode() #5
  store ptr %2, ptr @lbfs_space_had, align 8, !tbaa !5
  %3 = tail call ptr @new_BfsNode() #5
  store ptr %3, ptr @lbfs_space_head, align 8, !tbaa !5
  %4 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !9
  %5 = load i32, ptr @gnum_fl_conn, align 4, !tbaa !9
  call void @make_state(ptr noundef nonnull %1, i32 noundef %4, i32 noundef %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) @lbfs_hash_entry, i8 0, i64 524288, i1 false), !tbaa !5
  call void @add_to_Astar_epsilon_space(ptr noundef nonnull @ginitial_state, i32 noundef -1, ptr noundef null)
  %6 = load ptr, ptr @lbfs_space_head, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 80
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = icmp eq ptr %8, null
  br i1 %9, label %._crit_edge36, label %.lr.ph35

._crit_edge36:                                    ; preds = %._crit_edge, %0
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !15
  %.not29 = icmp eq i32 %10, 0
  br i1 %.not29, label %53, label %11

11:                                               ; preds = %._crit_edge36
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %53

.lr.ph35:                                         ; preds = %0, %._crit_edge
  %.033 = phi i8 [ %.1, %._crit_edge ], [ 1, %0 ]
  %.02132 = phi i32 [ %.122, %._crit_edge ], [ -1, %0 ]
  %13 = call ptr @Astar_epsilon_select_first()
  %14 = getelementptr inbounds i8, ptr %13, i64 40
  %15 = load i32, ptr %14, align 8, !tbaa !17
  %16 = call zeroext i8 @LESS(i32 noundef %15, i32 noundef %.02132) #5
  %.not = icmp eq i8 %16, 0
  br i1 %.not, label %thread-pre-split, label %17

17:                                               ; preds = %.lr.ph35
  %18 = load i32, ptr %14, align 8, !tbaa !17
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !15
  %.not26 = icmp eq i32 %19, 0
  br i1 %.not26, label %23, label %thread-pre-split.sink.split

thread-pre-split.sink.split:                      ; preds = %17
  %.not25 = icmp eq i8 %.033, 0
  %.str.11..str.15 = select i1 %.not25, ptr @.str.11, ptr @.str.15
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11..str.15, i32 noundef %18)
  %21 = load ptr, ptr @stdout, align 8, !tbaa !5
  %22 = call i32 @fflush(ptr noundef %21)
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %thread-pre-split.sink.split, %.lr.ph35
  %.122.ph = phi i32 [ %.02132, %.lr.ph35 ], [ %18, %thread-pre-split.sink.split ]
  %.1.ph = phi i8 [ %.033, %.lr.ph35 ], [ 0, %thread-pre-split.sink.split ]
  %.pr = load i32, ptr %14, align 8, !tbaa !17
  br label %23

23:                                               ; preds = %17, %thread-pre-split
  %24 = phi i32 [ %.pr, %thread-pre-split ], [ %18, %17 ]
  %.122 = phi i32 [ %.122.ph, %thread-pre-split ], [ %18, %17 ]
  %.1 = phi i8 [ %.1.ph, %thread-pre-split ], [ 0, %17 ]
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %51, label %.preheader

.preheader:                                       ; preds = %23
  %26 = getelementptr inbounds i8, ptr %13, i64 64
  %27 = load i32, ptr %26, align 8, !tbaa !18
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %29 = getelementptr inbounds i8, ptr %13, i64 56
  br label %30

30:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %31 = load ptr, ptr %29, align 8, !tbaa !19
  %32 = getelementptr inbounds i32, ptr %31, i64 %indvars.iv
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = call zeroext i8 @result_to_dest(ptr noundef nonnull %1, ptr noundef nonnull %13, i32 noundef %33)
  %.not28 = icmp eq i8 %34, 0
  br i1 %.not28, label %39, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %29, align 8, !tbaa !19
  %37 = getelementptr inbounds i32, ptr %36, i64 %indvars.iv
  %38 = load i32, ptr %37, align 4, !tbaa !9
  call void @add_to_Astar_epsilon_space(ptr noundef nonnull %1, i32 noundef %38, ptr noundef nonnull %13)
  br label %39

39:                                               ; preds = %30, %35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %40 = load i32, ptr %26, align 8, !tbaa !18
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %indvars.iv.next, %41
  br i1 %42, label %30, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %39, %.preheader
  %43 = load ptr, ptr @lbfs_space_had, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 80
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %13, i64 80
  store ptr %45, ptr %46, align 8, !tbaa !11
  store ptr %13, ptr %44, align 8, !tbaa !11
  %47 = load ptr, ptr @lbfs_space_head, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 80
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = icmp eq ptr %49, null
  br i1 %50, label %._crit_edge36, label %.lr.ph35

51:                                               ; preds = %23
  %52 = call zeroext i8 @extract_plan(ptr noundef nonnull %13)
  br label %53

53:                                               ; preds = %._crit_edge36, %11, %51
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #5
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @Astar_epsilon_select_first() local_unnamed_addr #3

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

attributes #0 = { mustprogress 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 80}
!12 = !{!"_BfsNode", !13, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!13 = !{!"_State", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !10, i64 768}
!16 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !10, i64 768, !10, i64 772, !10, i64 776, !7, i64 780, !10, i64 784, !14, i64 788}
!17 = !{!12, !10, i64 40}
!18 = !{!12, !10, i64 64}
!19 = !{!12, !6, i64 56}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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