Skip to content

Commit 6a09655

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/smvlang/smv_typecheck.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,11 @@ 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+
// warn if non-empty graph is not a DAG
1786+
if (!definition_graph.empty())
1787+
warning() << "definiton graph is not a DAG";
1788+
17851789
for(define_mapt::iterator it = define_map.begin(); it != define_map.end();
17861790
it++)
17871791
{

0 commit comments

Comments
 (0)