Skip to content

Commit

Permalink
Merge pull request #143 from viktormalik/freed-ptr-fix
Browse files Browse the repository at this point in the history
Handle comparison of freed pointers in assertions
  • Loading branch information
peterschrammel authored May 13, 2020
2 parents 477e225 + 1e37fa7 commit 615a853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/2ls/preprocessing_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ void twols_parse_optionst::handle_freed_ptr_compare(goto_modelt &goto_model)
{
Forall_goto_program_instructions(i_it, f_it->second.body)
{
if(i_it->is_goto())
if(i_it->is_goto() || i_it->is_assert())
{
auto &guard=i_it->guard;
make_freed_ptr_comparison_nondet(
Expand Down

0 comments on commit 615a853

Please sign in to comment.