Commit 79f4c8e0 authored by Alexandre GBAGUIDI AISSE's avatar Alexandre GBAGUIDI AISSE
Browse files

twaalgos: Help sat_build to ignore unuseful transitions

* spot/twaalgos/dtbasat.cc: Fix static sat_build.
* spot/twaalgos/dtwasat.cc: Fix static sat_build.
parent dfd500a5
...@@ -646,6 +646,10 @@ namespace spot ...@@ -646,6 +646,10 @@ namespace spot
if (t != satdict.revtransid.end()) if (t != satdict.revtransid.end())
{ {
// Ignore unuseful transitions because of reduced cand_size.
if (t->second.src >= satdict.cand_size)
continue;
// Skip (s,l,d2) if we have already seen some (s,l,d1). // Skip (s,l,d2) if we have already seen some (s,l,d1).
if (seen_trans.insert(src_cond(t->second.src, if (seen_trans.insert(src_cond(t->second.src,
t->second.cond)).second) t->second.cond)).second)
......
...@@ -1041,6 +1041,10 @@ namespace spot ...@@ -1041,6 +1041,10 @@ namespace spot
if (t != satdict.revtransid.end()) if (t != satdict.revtransid.end())
{ {
// Ignore unuseful transitions because of reduced cand_size.
if (t->second.src >= satdict.cand_size)
continue;
// Skip (s,l,d2) if we have already seen some (s,l,d1). // Skip (s,l,d2) if we have already seen some (s,l,d1).
if (seen_trans.insert(src_cond(t->second.src, if (seen_trans.insert(src_cond(t->second.src,
t->second.cond)).second) t->second.cond)).second)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment