Skip to content

[depends: #1339] Get goto model #1285

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
wants to merge 7 commits into from
Closed

[depends: #1339] Get goto model #1285

wants to merge 7 commits into from

Conversation

kroening
Copy link
Member

This is a new and simpler way to arrive at a goto program.

@kroening kroening force-pushed the get-goto-model branch 2 times, most recently from ad06057 to 3b3ab2b Compare August 23, 2017 10:54
@@ -25,7 +25,6 @@ void goto_convert(

// confusing, will go away
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this comment still true?

<< messaget::eom;

if(read_goto_binary(filename, tmp_model, message_handler))
throw 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

How is the actual error going to be conveyed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Message handler!

{
messaget message(message_handler);

languaget *language=get_language_from_filename(filename);
Copy link
Collaborator

Choose a reason for hiding this comment

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

How is this not leaking memory?


if(!infile)
{
message.error() << "failed to open input file `"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this also do

   source_locationt location;
   location.set_file(filename);
   message.error().source_location=location;

as is done above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Contemplated it, but then we'd be sending out filenames that we know don't exist.

@kroening kroening force-pushed the get-goto-model branch 8 times, most recently from a757b6f to e95796f Compare August 23, 2017 14:02
goto_modelt goto_model;

// categorize
for(const auto & filename : cmdline.args)
Copy link
Member

Choose a reason for hiding this comment

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

no space after &

cbmc_solverst cbmc_solvers(
options,
goto_model.symbol_table,
ui_message_handler);
Copy link
Member

Choose a reason for hiding this comment

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

get_message_handler() ?

bmct bmc(
options,
goto_model.symbol_table,
ui_message_handler,
Copy link
Member

Choose a reason for hiding this comment

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

get_message_handler() ?


// add the library
link_to_library(symbol_table, goto_functions, ui_message_handler);
link_to_library(goto_model, ui_message_handler);
Copy link
Member

Choose a reason for hiding this comment

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

get_message_handler() ?


if(cmdline.isset("drop-unused-functions"))
{
// Entry point will have been set before and function pointers removed
status() << "Removing unused functions" << eom;
remove_unused_functions(goto_functions, ui_message_handler);
remove_unused_functions(goto_model, ui_message_handler);
Copy link
Member

Choose a reason for hiding this comment

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

get_message_handler() ?

@kroening kroening force-pushed the get-goto-model branch 4 times, most recently from faf2d0f to 33fe5fd Compare August 24, 2017 16:41
@tautschnig
Copy link
Collaborator

The failing CI tests indicate that there is work left to be done.

@kroening kroening force-pushed the get-goto-model branch 3 times, most recently from 2866ca0 to dd1ee91 Compare August 29, 2017 11:28
@kroening
Copy link
Member Author

kroening commented Sep 3, 2017

#1339 prepares this.

@tautschnig tautschnig changed the title Get goto model [depends: #1339] Get goto model Sep 4, 2017
@thomasspriggs
Copy link
Contributor

I am going to close this PR as it appears that work on it has been inactive for an extended period of time. This is not any judgement on how worthwhile this work is. This is part of an effort to reduce the number of open PRs which are not being actively worked on. If you still think it would be worthwhile to get this merged then the branch should be re-based on the latest version of develop and the PR re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants