Skip to content

Commit 41a1395

Browse files
committed
Warning about graph not being a DAG only if non-empty
1 parent f9a799b commit 41a1395

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/smvlang/smv_typecheck.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,12 @@ void smv_typecheckt::convert_defines(exprt::operandst &invar)
17811781
{
17821782
// in case no topological order exists, fall back on starting with any
17831783
// defined symbol
1784-
warning() << "definiton graph is not a DAG";
1784+
1785+
1786+
// warn if non-empty graph is not a DAG
1787+
if(!definition_graph.empty())
1788+
warning() << "definiton graph is not a DAG";
1789+
17851790
for(define_mapt::iterator it = define_map.begin(); it != define_map.end();
17861791
it++)
17871792
{

0 commit comments

Comments
 (0)