Add a C++ translation of the closed form
- Literal transliteration of `Statement.closedForm` plus an equivalent summarised implementation - Borrowed input keys (`std::string_view` / `std::span`) and owned result keys (`std::string`) - Golden-vector test, differential/safety fuzzers, and a nanobench comparison The literal and summarised implementations agree on 40,000 Lean golden vectors, 18,971 sorted corpus cases, and the readable fuzzer; the raw fuzzer runs both implementations under ASan/UBSan. `build/` and the generated `oracle/golden.txt` are ignored.
This commit is contained in:
1 parent
6559cc582b
commit
e32e42d933
17 files changed
+8871
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "model.h"
|
||||
|
||||
namespace cr::fast {
|
||||
|
||||
// A summarised implementation of the same decision procedure as
|
||||
// `Statement.closedForm`. It is equivalent on readable inputs (and in fact
|
||||
// reproduces the same endpoints), but computes the result statistics once and
|
||||
// avoids the literal translation's repeated scans and allocations.
|
||||
ConflictRange closedForm(const RangeRead& r, const Result& res);
|
||||
|
||||
} // namespace cr::fast
|
||||
Reference in new issue
Block a user