Skip to content

Print binary values of floats #5322

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

Merged
merged 10 commits into from
May 7, 2020

Conversation

thk123
Copy link
Contributor

@thk123 thk123 commented Apr 24, 2020

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • [na] My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@thk123 thk123 force-pushed the print-binary-values-of-floats branch from 1e0457c to 38f321c Compare May 1, 2020 17:25
Copy link
Contributor Author

@thk123 thk123 left a comment

Choose a reason for hiding this comment

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

Just leaving it here, happy to do it if others think it is of any use

<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="binary" type="xs:string"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

⛏️ this could be made more precise using a XSD type where we limit this to be only [01]+

@thk123 thk123 marked this pull request as ready for review May 1, 2020 17:27
@thk123 thk123 force-pushed the print-binary-values-of-floats branch from 38f321c to 98f8882 Compare May 1, 2020 17:30
Thomas Kiley and others added 9 commits May 6, 2020 10:24
Applied modern coding standards to pulled out code

Co-authored-by: Peter Schrammel <[email protected]>
This is a precise representation of the floats, which can be useful
Also updat the LaTeX and markdown documentation to include the new
attribute
Includes dependencies for builing the xml_spec LaTeX, as well as running
the trace through the specification.
The links were not relative, so updated to be relative. Mentioned that
you can find more in the readme.
@thk123 thk123 force-pushed the print-binary-values-of-floats branch from 5b20585 to cdb0b78 Compare May 6, 2020 09:25
@thk123
Copy link
Contributor Author

thk123 commented May 6, 2020

@peterschrammel comments addressed and squashed

Copy link
Contributor

@NlightNFotis NlightNFotis left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -348,4 +350,3 @@ comes with a small set of definitions, which includes functions such as

We also have a [list of interesting applications of
CBMC](http://www.cprover.org/cbmc/applications/).

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't there be a newline here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was auto-removed on save, because there are two new lines at the end of the file

@thk123
Copy link
Contributor Author

thk123 commented May 6, 2020

Failure is real - on Windows the complex variable name is prefixed with a _ , I guess this is to do with the name of the variable being reserved on windows so I'll just change the name as not part of the test

complex is renamed in the trace to _complex on Windows. Therefore adapt
the test to use a non-reserved name since not important to the test.
@thk123
Copy link
Contributor Author

thk123 commented May 6, 2020

clang format was an apt get failure - restared

@thk123 thk123 merged commit 768eafc into diffblue:develop May 7, 2020
@thk123 thk123 deleted the print-binary-values-of-floats branch May 7, 2020 09:20
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.

3 participants