Skip to content

Simply create_alias_expression in code_contracts.cpp #5528

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

Closed
feliperodri opened this issue Oct 15, 2020 · 1 comment
Closed

Simply create_alias_expression in code_contracts.cpp #5528

feliperodri opened this issue Oct 15, 2020 · 1 comment
Assignees
Labels
aws Bugs or features of importance to AWS CBMC users Code Contracts Function and loop contracts

Comments

@feliperodri
Copy link
Collaborator

CBMC version: >5.15
Operating system: Ubuntu 18.04 or macOS Mojave 10.14.6
Exact command line resulting in the issue: N/A.
What behaviour did you expect: N/A.
What happened instead:

  1. Adds a Doxygen documentation;
  2. The implementation of create_alias_expression can be simplified by using and object of type exprt::operandst with each call to same_object doing operands.push_back(same_object(leftPtr, rightPtr); and then doing return disjunction(operands); at the very end.
@feliperodri feliperodri added the aws Bugs or features of importance to AWS CBMC users label Oct 15, 2020
@feliperodri feliperodri added the Code Contracts Function and loop contracts label Feb 5, 2021
@feliperodri feliperodri self-assigned this Feb 5, 2021
@feliperodri
Copy link
Collaborator Author

Fixed in #5538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users Code Contracts Function and loop contracts
Projects
None yet
Development

No branches or pull requests

1 participant