; 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._EhcNode = type { %struct._State, i32, i32, ptr, ptr }
%struct._PlanHashEntry = type { i32, %struct._State, i32, ptr, ptr }

@lehc_current_start = external dso_local global ptr, align 8
@gnum_plan_ops = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@gplan_states = external global [501 x %struct._State], align 16
@gplan_ops = external global [500 x i32], align 16

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hash_plan_state(ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @extract_plan_fragment(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [500 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca [500 x ptr], align 16
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 2000, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4000, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  %10 = load ptr, ptr @lehc_current_start, align 8, !tbaa !5
  store ptr %10, ptr %3, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %55, %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %59

14:                                               ; preds = %11
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._EhcNode, ptr %15, i32 0, i32 0
  %17 = call ptr @plan_state_hashed(ptr noundef %16)
  store ptr %17, ptr %8, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %37

19:                                               ; preds = %14
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._PlanHashEntry, ptr %20, i32 0, i32 3
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  store ptr %22, ptr %9, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %29, %19
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %33

26:                                               ; preds = %23
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._PlanHashEntry, ptr %27, i32 0, i32 2
  store i32 -1, ptr %28, align 8, !tbaa !14
  br label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._PlanHashEntry, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %9, align 8, !tbaa !5
  br label %23, !llvm.loop !15

33:                                               ; preds = %23
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._PlanHashEntry, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %35, align 8, !tbaa !14
  store i32 %36, ptr @gnum_plan_ops, align 4, !tbaa !9
  br label %59

37:                                               ; preds = %14
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 500
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 500)
  call void @exit(i32 noundef 1) #5
  unreachable

42:                                               ; preds = %37
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._EhcNode, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [500 x ptr], ptr %6, i64 0, i64 %46
  store ptr %44, ptr %47, align 8, !tbaa !5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._EhcNode, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !17
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !9
  %53 = sext i32 %51 to i64
  %54 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 %53
  store i32 %50, ptr %54, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %42
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._EhcNode, ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  store ptr %58, ptr %3, align 8, !tbaa !5
  br label %11, !llvm.loop !20

59:                                               ; preds = %33, %11
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %77, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = call ptr @plan_state_hashed(ptr noundef %63)
  store ptr %64, ptr %8, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %69, label %67

67:                                               ; preds = %62
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @exit(i32 noundef 1) #5
  unreachable

69:                                               ; preds = %62
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._PlanHashEntry, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !14
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %76

74:                                               ; preds = %69
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @exit(i32 noundef 1) #5
  unreachable

76:                                               ; preds = %69
  br label %77

77:                                               ; preds = %76, %59
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sub nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %117, %77
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = icmp sgt i32 %81, -1
  br i1 %82, label %83, label %120

83:                                               ; preds = %80
  %84 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 500
  br i1 %85, label %86, label %88

86:                                               ; preds = %83
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 500)
  call void @exit(i32 noundef 1) #5
  unreachable

88:                                               ; preds = %83
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [500 x ptr], ptr %6, i64 0, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = call ptr @hash_plan_state(ptr noundef %92, i32 noundef %94)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._PlanHashEntry, ptr %96, i32 0, i32 3
  store ptr %95, ptr %97, align 8, !tbaa !11
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._PlanHashEntry, ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  store ptr %100, ptr %8, align 8, !tbaa !5
  %101 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [501 x %struct._State], ptr @gplan_states, i64 0, i64 %103
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [500 x ptr], ptr %6, i64 0, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  call void @copy_source_to_dest(ptr noundef %104, ptr noundef %108)
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr @gnum_plan_ops, align 4, !tbaa !9
  %115 = sext i32 %113 to i64
  %116 = getelementptr inbounds [500 x i32], ptr @gplan_ops, i64 0, i64 %115
  store i32 %112, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %88
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr %7, align 4, !tbaa !9
  br label %80, !llvm.loop !21

120:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4000, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 2000, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @plan_state_hashed(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @copy_source_to_dest(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 48}
!12 = !{!"_PlanHashEntry", !10, i64 0, !13, i64 8, !10, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!"_State", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!12, !10, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !10, i64 32}
!18 = !{!"_EhcNode", !13, i64 0, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48}
!19 = !{!18, !6, i64 40}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !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"

%struct._State = type { ptr, i32, ptr, ptr }

@lehc_current_start = external dso_local local_unnamed_addr global ptr, align 8
@gnum_plan_ops = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@gplan_states = external global [501 x %struct._State], align 16
@gplan_ops = external local_unnamed_addr global [500 x i32], align 16

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hash_plan_state(ptr 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @extract_plan_fragment(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca [500 x i32], align 16
  %3 = alloca [500 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %3) #4
  %.02742 = load ptr, ptr @lehc_current_start, align 8, !tbaa !5
  %.not43 = icmp eq ptr %.02742, null
  br i1 %.not43, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %1, %11
  %indvars.iv = phi i64 [ %indvars.iv.next, %11 ], [ 0, %1 ]
  %.02745 = phi ptr [ %.027, %11 ], [ %.02742, %1 ]
  %4 = tail call ptr @plan_state_hashed(ptr noundef nonnull %.02745)
  %.not32 = icmp eq ptr %4, null
  br i1 %.not32, label %7, label %.preheader

.preheader:                                       ; preds = %.lr.ph
  %5 = trunc nuw nsw i64 %indvars.iv to i32
  %.0.in46 = getelementptr inbounds i8, ptr %4, i64 48
  %.047 = load ptr, ptr %.0.in46, align 8, !tbaa !9
  %.not3348 = icmp eq ptr %.047, null
  br i1 %.not3348, label %._crit_edge, label %.lr.ph50

.lr.ph50:                                         ; preds = %.preheader, %.lr.ph50
  %.049 = phi ptr [ %.0, %.lr.ph50 ], [ %.047, %.preheader ]
  %6 = getelementptr inbounds i8, ptr %.049, i64 40
  store i32 -1, ptr %6, align 8, !tbaa !13
  %.0.in = getelementptr inbounds i8, ptr %.049, i64 48
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !9
  %.not33 = icmp eq ptr %.0, null
  br i1 %.not33, label %._crit_edge, label %.lr.ph50, !llvm.loop !14

7:                                                ; preds = %.lr.ph
  %8 = icmp eq i64 %indvars.iv, 500
  br i1 %8, label %9, label %11

9:                                                ; preds = %7
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef 500)
  tail call void @exit(i32 noundef 1) #5
  unreachable

11:                                               ; preds = %7
  %12 = getelementptr inbounds [500 x ptr], ptr %3, i64 0, i64 %indvars.iv
  store ptr %.02745, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %.02745, i64 32
  %14 = load i32, ptr %13, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = getelementptr inbounds [500 x i32], ptr %2, i64 0, i64 %indvars.iv
  store i32 %14, ptr %15, align 4, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %.02745, i64 40
  %.027 = load ptr, ptr %16, align 8, !tbaa !5
  %.not = icmp eq ptr %.027, null
  br i1 %.not, label %.thread.loopexit, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph50, %.preheader
  %17 = getelementptr inbounds i8, ptr %4, i64 40
  %18 = load i32, ptr %17, align 8, !tbaa !13
  store i32 %18, ptr @gnum_plan_ops, align 4, !tbaa !18
  br label %29

.thread.loopexit:                                 ; preds = %11
  %19 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %1
  %.026.lcssa = phi i32 [ 0, %1 ], [ %19, %.thread.loopexit ]
  %20 = tail call ptr @plan_state_hashed(ptr noundef %0)
  %.not35 = icmp eq ptr %20, null
  br i1 %.not35, label %21, label %23

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

23:                                               ; preds = %.thread
  %24 = getelementptr inbounds i8, ptr %20, i64 40
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp eq i32 %25, -1
  br i1 %26, label %27, label %29

27:                                               ; preds = %23
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  tail call void @exit(i32 noundef 1) #5
  unreachable

29:                                               ; preds = %._crit_edge, %23
  %.02640 = phi i32 [ %5, %._crit_edge ], [ %.026.lcssa, %23 ]
  %.2 = phi ptr [ %4, %._crit_edge ], [ %20, %23 ]
  %30 = icmp sgt i32 %.02640, 0
  br i1 %30, label %.lr.ph55.preheader, label %._crit_edge56

.lr.ph55.preheader:                               ; preds = %29
  %31 = zext nneg i32 %.02640 to i64
  %.pre = load i32, ptr @gnum_plan_ops, align 4, !tbaa !18
  br label %.lr.ph55

.lr.ph55:                                         ; preds = %.lr.ph55.preheader, %36
  %32 = phi i32 [ %.pre, %.lr.ph55.preheader ], [ %50, %36 ]
  %indvars.iv63 = phi i64 [ %31, %.lr.ph55.preheader ], [ %indvars.iv.next64, %36 ]
  %.352 = phi ptr [ %.2, %.lr.ph55.preheader ], [ %40, %36 ]
  %33 = icmp eq i32 %32, 500
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph55
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef 500)
  tail call void @exit(i32 noundef 1) #5
  unreachable

36:                                               ; preds = %.lr.ph55
  %indvars.iv.next64 = add nsw i64 %indvars.iv63, -1
  %37 = getelementptr inbounds [500 x ptr], ptr %3, i64 0, i64 %indvars.iv.next64
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = add nsw i32 %32, 1
  %40 = tail call ptr @hash_plan_state(ptr noundef %38, i32 noundef %39)
  %41 = getelementptr inbounds i8, ptr %.352, i64 48
  store ptr %40, ptr %41, align 8, !tbaa !9
  %42 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !18
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [501 x %struct._State], ptr @gplan_states, i64 0, i64 %44
  %46 = load ptr, ptr %37, align 8, !tbaa !5
  tail call void @copy_source_to_dest(ptr noundef nonnull %45, ptr noundef %46)
  %47 = getelementptr inbounds [500 x i32], ptr %2, i64 0, i64 %indvars.iv.next64
  %48 = load i32, ptr %47, align 4, !tbaa !18
  %49 = load i32, ptr @gnum_plan_ops, align 4, !tbaa !18
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr @gnum_plan_ops, align 4, !tbaa !18
  %51 = sext i32 %49 to i64
  %52 = getelementptr inbounds [500 x i32], ptr @gplan_ops, i64 0, i64 %51
  store i32 %48, ptr %52, align 4, !tbaa !18
  %53 = icmp sgt i64 %indvars.iv63, 1
  br i1 %53, label %.lr.ph55, label %._crit_edge56, !llvm.loop !20

._crit_edge56:                                    ; preds = %36, %29
  call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %2) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @plan_state_hashed(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @copy_source_to_dest(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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, !6, i64 48}
!10 = !{!"_PlanHashEntry", !11, i64 0, !12, i64 8, !11, i64 40, !6, i64 48, !6, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_State", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!10, !11, i64 40}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !11, i64 32}
!17 = !{!"_EhcNode", !12, i64 0, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


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