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
copilot-bluespec: Special floating-point values are translated to syntactically invalid Bluespec code #696
copilot-bluespec currently generates syntactically invalid Bluespec code for special floating-point values, such as negative zero, infinity, and NaN values. For instance, it compiles infinity values to Infinity, which is not a valid Bluespec floating-point value.
Type
Bug: incorrect generated code.
Additional context
None.
Requester
Ryan Scott (Galois)
Method to check presence of bug
Take the following Copilot specification, which defines a stream containing an infinity value:
The solution proposed produces the expected result. Details:
The following dockerfile and associated files check that a spec that uses negative zero, infinite and other special Double floating point values generates code that compiles, and runs producing valid values (evaluated by visual inspection), after which it prints the message "Success":
Activity
ivanperez-keera commentedon Nov 28, 2025
Change Manager: Modified description to clarify proposed solution.
ivanperez-keera commentedon Nov 28, 2025
Change Manager: Confirmed that the issue exists.
ivanperez-keera commentedon Nov 28, 2025
Technical Lead: Confirmed that the issue should be addressed.
ivanperez-keera commentedon Dec 2, 2025
Technical Lead: Issue scheduled for fixing in Copilot 4.6.1.
Fix assigned to: @tkann-galois.
EDIT (2026-01-08): Modified to adjust the actual version of Copilot after release.
fix for copilot-bluespec issue Copilot-Language#696 - fixing Expr::co…
2 remaining items
tkann-galois commentedon Jan 7, 2026
Implementor: Solution implemented, review requested.
fix for copilot-bluespec issue Copilot-Language#696 - fixing Expr::co…
copilot-bluespec: Fix translation of constant floating-point values. …
copilot-bluespec: Document changes in CHANGELOG. Refs Copilot-Languag…
ivanperez-keera commentedon Jan 8, 2026
Change Manager: Verified that:
The code proposed compiles and passes all tests. Details:
Build log: https://app.travis-ci.com/github/Copilot-Language/copilot/builds/277188372
The solution proposed produces the expected result. Details:
The following dockerfile and associated files check that a spec that uses negative zero, infinite and other special Double floating point values generates code that compiles, and runs producing valid values (evaluated by visual inspection), after which it prints the message "Success":
Command (substitute variables based on new path after merge):
New auxiliary functions and code include comments.
Updates not needed; change fixes existing bug.
Bump not needed; change does not affect existing API.
ivanperez-keera commentedon Jan 8, 2026
Change Manager: Implementation ready to be merged.
Merge branch 'develop-bluespec-special-constfp'. Close Copilot-Langua…
Merge branch 'fix-697-bluespec-special-floats'. Close #697.
Merge branch 'develop-tab'. Close #755.