Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/LTL/Structures/CompoundStateSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ namespace LTL { namespace Structures {
assert(this->_states.exists(stateid).first);
return this->_states[stateid];
}

private:
stateid_t _parent = 0;
};
Expand Down
14 changes: 8 additions & 6 deletions src/LTL/Algorithm/TarjanModelChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace LTL {
if (stateid == std::numeric_limits<idx_t>::max()) {
continue;
}

if constexpr (SaveTrace) {
if (isnew) {
seen.set_history(stateid, successorGenerator.fired());
Expand Down Expand Up @@ -270,9 +270,11 @@ namespace LTL {
// either way update the component ID of the state we came from.
cstack[from]._lowlink = cstack[to]._lowlink;
if constexpr (T::save_trace()) {
_loop_state = cstack[to]._stateid;
_loop_trans = successorGenerator.fired();
cstack[to]._lowsource = from;
if (_violation) {
_loop_state = cstack[to]._stateid;
_loop_trans = successorGenerator.fired();
cstack[to]._lowsource = from;
}
}
}
}
Expand Down Expand Up @@ -334,8 +336,8 @@ namespace LTL {
p = cstack[p]._lowsource;
}
}
if(!had_deadlock && _loop_trans < _net.numberOfTransitions())
{

if(!had_deadlock && _loop_trans < _net.numberOfTransitions()) {
assert(_loop_trans < _net.numberOfTransitions());
_trace.push_back({_loop_trans});
}
Expand Down
Loading