Heap Refactor: Remove Stored Callbacks, Add Type-Specific Operations via Macro
Heap Refactor: Remove Stored Callbacks, Add Type-Specific Operations via Macro: a task in LegoFlow-SWE (Harbor dataset). The current heap implementation stores function pointers (comparison and update callbacks) inside the heap structure. This prevents certain forms of stack analysis. The heap…
The task
The current heap implementation stores function pointers (comparison and update callbacks) inside the heap structure. This prevents certain forms of stack analysis. The heap must be refactored to eliminate stored callbacks while still supporting different ordering policies (e.g., min-heap vs. max-heap) and an…
Part of Lego-X/LegoFlow-SWE.