Skip to content

Introduce complex_imag_exprt and complex_real_exprt #2916

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

Conversation

danpoe
Copy link
Contributor

@danpoe danpoe commented Sep 7, 2018

No description provided.

@@ -1731,6 +1731,106 @@ inline void validate_expr(const complex_exprt &value)
}


/// \brief Real part
Copy link
Collaborator

Choose a reason for hiding this comment

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

part ... of what? (I'd say "Real part of the expression describing a complex number.")

PRECONDITION(expr.id() == ID_complex_real);
DATA_INVARIANT(
expr.operands().size() == 1,
"Real part retrieval operation must have one operand");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use lowercase for error messages (applies across this PR).



/// \brief Imaginary part
class complex_imag_exprt:public unary_exprt
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think clang-format wants spaces around :

@danpoe danpoe force-pushed the refactor/introduce-imag-and-real-expressions branch 2 times, most recently from bb6ad6d to 899fe03 Compare September 7, 2018 12:49
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: c76d96f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84129475
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: bb6ad6d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84132032
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Passed Diffblue compatibility checks (cbmc commit: 899fe03).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84142660

Copy link
Contributor

@chrisr-diffblue chrisr-diffblue left a comment

Choose a reason for hiding this comment

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

LGTM - this seems a lot cleaner.

@danpoe danpoe merged commit 15b9ec7 into diffblue:develop Sep 11, 2018
@danpoe danpoe deleted the refactor/introduce-imag-and-real-expressions branch June 2, 2020 17:18
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.

4 participants