Skip to content

Commit

Permalink
Removed assertion, but added another check
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaveaux committed Sep 12, 2024
1 parent ac2ed26 commit fbe52dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ static void rewrite_star(pbes_expression& result,
if (it != mapping.end())
{
structure_graph::index_type index = it->second;
assert(G.decoration(index) != structure_graph::d_true && G.decoration(index) != structure_graph::d_false);

std::unordered_set<structure_graph::index_type> todo = {index};
std::unordered_set<structure_graph::index_type> done;

Expand Down
5 changes: 5 additions & 0 deletions libraries/pbes/include/mcrl2/pbes/tools/pbessolve.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ class pbessolve_tool
<< "Warning: the PBES has counter example information, but no witness will be generated due to lack of --file"
<< std::endl;
}

if (options.optimization >= 0)
{
throw mcrl2::runtime_error("Counter example PBES can not be solved with --long-strategy greater than 0.");
}
}
else if ((!lpsfile.empty() || !ltsfile.empty()))
{
Expand Down

0 comments on commit fbe52dc

Please sign in to comment.