Files
cs249r_book/book/tools/audit/spurious_zero.py
Vijay Janapa Reddi 41707f6451 Organize fmt notation audit tools under book/tools/audit/fmt.
Centralize spurious-.0 detection, batch HTML render, and chapter workflow docs so vol1/vol2 audits reuse one lane with backward-compatible wrappers at the old paths.
2026-05-24 11:57:45 -04:00

23 lines
700 B
Python

"""Backward-compat re-export — prefer ``book.tools.audit.fmt.spurious_zero``."""
from __future__ import annotations
import importlib.util
from pathlib import Path
_path = Path(__file__).resolve().parent / "fmt" / "spurious_zero.py"
_spec = importlib.util.spec_from_file_location("_fmt_spurious_zero", _path)
assert _spec is not None and _spec.loader is not None
_mod = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_mod)
SPURIOUS_ZERO = _mod.SPURIOUS_ZERO
is_spurious_zero_false_positive = _mod.is_spurious_zero_false_positive
find_spurious_zeros = _mod.find_spurious_zeros
__all__ = [
"SPURIOUS_ZERO",
"is_spurious_zero_false_positive",
"find_spurious_zeros",
]