Repository navigation
Preserve floating-point limits in EDS object dictionaries - #689
Open
timothyanderson096-ocdealcheck wants to merge 1 commit into
Open
timothyanderson096-ocdealcheck wants to merge 1 commit into
timothyanderson096-ocdealcheck wants to merge 1 commit into
Conversation
Accept decimal floating-point limits for REAL32/REAL64 while retaining previously accepted integer literal forms and exact integer values. Preserve fractional values in existing warning-only bound diagnostics and describe the stored bound types accurately. Add import/export/reimport and diagnostic regressions. Prepared with OpenAI Codex assistance and independent inspection. Timothy Anderson — Spotted Ridge Engineering / OC Labs Independent software verification · GDN (Global Decision Network) timothyanderson096@gmail.com · https://github.com/timothyanderson096-ocdealcheck/gdn-engineering-benchmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
REAL32/REAL64
LowLimitandHighLimitvalues such as-1.5are currently discarded, even though floating defaults parse correctly. The existing sample EDS also loses its REAL32 lower bound of4.5.Parse limits with the existing integer grammar first, then decimal-float fallback. This preserves previously accepted integer values/types, including hex/octal forms and large exact integers, while retaining fractional limits through EDS/DCF export and reimport. Describe bounds as
int | float | Noneand keep fractional values intact in existing warning-only diagnostics.Related to the decimal-float guidance in #658; thanks to acolomb for that clarification. No IEEE bit-pattern reinterpretation or new range-enforcement behavior is introduced.
Validation on Linux / CPython 3.12.14 / pytest 8.4.2 / pytest-cov 5.0.0:
db_export/ canmatrix 1.3.3: 283 passed, zero skips.Supplemental mypy remains non-green: 45 baseline diagnostics versus 47 candidate diagnostics. The precise bound union expands two existing heterogeneous-input comparison reports at the same locations (
str < float/str > float); both runs also share the missing generated-version module diagnostic. No ignores or suppressions were added, and no full typing-pass claim is made.Exact tested head:
b95ec7f208c09a740d71bfddc0b22916b7bb8456, based on14b3336bc973023e82325426adf6d71046ebcf55. Hardware and hosted CI remain unverified.Prepared with OpenAI Codex assistance and independent inspection.
Timothy Anderson — Spotted Ridge Engineering / OC Labs
Independent software verification · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence