Skip to content

Factor out program_only from bmct #2885

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 2 commits into from
Sep 3, 2018

Conversation

peterschrammel
Copy link
Member

@peterschrammel peterschrammel commented Sep 2, 2018

Based on #2883

Only review last two commits

Could also be moved to goto-symex

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Factoring this out is great - but as with show_vcc, I'd also suggest to move it to goto-symex instead (depends on its implementation details).

@peterschrammel
Copy link
Member Author

@tautschnig, moved.

/// Output of the program (SSA) constraints

#ifndef CPROVER_GOTO_CHECKER_SHOW_PROGRAM_H
#define CPROVER_GOTO_CHECKER_SHOW_PROGRAM_H
Copy link
Collaborator

Choose a reason for hiding this comment

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

The header guard needs fixing-up.


std::cout << "\n" << "Program constraints:" << "\n";
std::cout << "\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you're doing some cleanup work here, I'd suggest to replace all occurrences of "\n" by '\n' (single character instead of string).

void show_program(const namespacet &ns, const symex_target_equationt &equation)
{
unsigned count=1;
unsigned count = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be std::size_t.

@peterschrammel peterschrammel force-pushed the factor-out-program-only branch from e425337 to a889a16 Compare September 3, 2018 12:27
@peterschrammel
Copy link
Member Author

Yes, there's quite some cleanup and refactoring in the following PRs.

@tautschnig tautschnig merged commit de69684 into diffblue:develop Sep 3, 2018
@peterschrammel peterschrammel deleted the factor-out-program-only branch September 3, 2018 15:31
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.

2 participants