At least on macOS 14.2.1 (Apple clang version 15.0.0) Release build crashes with any input. As a result all tests fail as well.
The segfault happens in make_sparse function, at the first iteration of evaluating ost.total == best_cost.total.
The issue is probably related to the way clang optimizes uninitialized structs and subsequent operations on uninitialized fields.
Anyways the fix is very simple and I don't think would affect build or execution or any other platform.
At least on macOS 14.2.1 (Apple clang version 15.0.0)
Release
build crashes with any input. As a result all tests fail as well. The segfault happens inmake_sparse
function, at the first iteration of evaluatingost.total == best_cost.total
.The issue is probably related to the way
clang
optimizes uninitialized structs and subsequent operations on uninitialized fields.Anyways the fix is very simple and I don't think would affect build or execution or any other platform.