Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SMTLib2 syntax for floating-point conversions #190

Merged
merged 8 commits into from
Apr 11, 2019
Merged

Conversation

robdockins
Copy link
Contributor

The bugfix for SMTLib syntax is contained in 6ee9bcb.

The remainder of this pull request is basically about adding enough support to crucible-syntax and crucible proper to execute a test case verifying the bugfix. This involves adding a syntax for the floating-point types, rounding modes, and a selection of the floating-point cast operations.

Further floating-point operations ought to be easier to add in the future, given this infrastructure.

…lues.

These cannot use the ordinary `fresh` construct because the base type
underlying the interpreted floating point values is not known at
CFG construction time, as it depends on the symbolic backend.
some of the conversions to and from floating point types.
…ntax.

It simply appends a newline to the string to be printed.
… if/then/else, show),

and improve error messages for float casts that fail type-checking.
proof obligation, and print the result (PROVED, COUNTEREXAMPLE, or UNKNOWN).

Fix up the test golden files to match.

In addition, add a test exercising floating-point conversions.
@robdockins robdockins requested a review from kquick April 10, 2019 19:02
@robdockins
Copy link
Contributor Author

Shouldn't be anything too controversial in here, I think.

Copy link
Member

@kquick kquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a small error message fix and a question more for my own edification, but I don't see anything significant needing to be modified.

@robdockins robdockins merged commit 530fe5f into master Apr 11, 2019
@langston-barrett langston-barrett deleted the rwd/bugfix branch April 11, 2019 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants