You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: drop the legacy 0+0 equation from lookup-table detection #608
A standalone lookup table (a graphical function with no input expression) is stored with an empty equation.
Projects saved before #606 stored it with the equation 0+0 instead, so lookup-table detection still accepts 0+0 as well as an empty equation.
This issue is about removing that 0+0 case once no saved project needs it.
0+0 has a second, unrelated use that stays: the MDL importer gives it to a variable whose right-hand side is empty, so it evaluates to 0.
The two are told apart by whether the variable has a graphical function.
Why it matters
Cleanup only; the current code is correct.
The cost of keeping it is one comparison and one overloaded constant.
Fix
Removing it safely means first rewriting every saved project that has a lookup table with equation 0+0 to the empty form.
There is no migration tooling for the stored projects today.
Cheaper alternative: normalize 0+0 plus a graphical function to the empty equation when a project is loaded from protobuf, then drop the case from detection.
Or leave it as is.
changed the title [-]engine: remove legacy "0+0" LOOKUP_SENTINEL read-shim from lookup-only detection (gated on datamodel migration)[/-][+]engine: drop the legacy 0+0 equation from lookup-table detection[/+]on Oct 12, 2026
The shim is one comparison. Removing it needs a migration of stored projects, and no tooling for that exists. A load-time normalization would only move the shim, not remove it.
Activity
[-]engine: remove legacy "0+0" LOOKUP_SENTINEL read-shim from lookup-only detection (gated on datamodel migration)[/-][+]engine: drop the legacy 0+0 equation from lookup-table detection[/+]bpowers commentedon Oct 12, 2026
Closing as won't fix.
The shim is one comparison. Removing it needs a migration of stored projects, and no tooling for that exists. A load-time normalization would only move the shim, not remove it.