Commit ed27dab3 authored by Ala-Eddine Ben-Salem's avatar Ala-Eddine Ben-Salem Committed by Alexandre Duret-Lutz
Browse files

Add an implementation of TGTA minimization

* src/ta/taexplicit.cc, src/ta/taexplicit.hh: Bug fix TGTA
* src/taalgos/minimize.cc,src/taalgos/minimize.hh: TGTA minimization
* src/taalgos/tgba2ta.cc: add a TGTA minimization command (uses -Rm)
* src/taalgos/minimize.cc, src/taalgos/minimize.hh
(minimize_tgbta): New function.
* src/taalgos/tgba2ta.cc: Set livelock-accepting flag of TGTA states
to false so they can be merged with other states.
* src/ta/taexplicit.cc (hash): Use id.
* src/ta/taexplicit.hh: Cosmetics.
parent c882eadd
......@@ -266,7 +266,9 @@ namespace spot
size_t
state_ta_explicit::hash() const
{
return wang32_hash(tgba_state_->hash());
//return wang32_hash(tgba_state_->hash());
return wang32_hash(tgba_state_->hash()) ^ wang32_hash(tgba_condition_.id());
}
state_ta_explicit*
......
......@@ -176,11 +176,11 @@ namespace spot
virtual state_ta_explicit*
clone() const;
virtual
void destroy() const
virtual void destroy() const
{
}
virtual
~state_ta_explicit()
{
......
This diff is collapsed.
......@@ -22,6 +22,7 @@
# define SPOT_TAALGOS_MINIMIZE_HH
# include "ta/ta.hh"
# include "ta/tgbta.hh"
# include "ta/taexplicit.hh"
namespace spot
......@@ -30,6 +31,9 @@ namespace spot
ta*
minimize_ta(const ta* ta_);
tgbta*
minimize_tgbta(const tgbta* tgbta_);
/// @}
}
......
......@@ -586,8 +586,9 @@ namespace spot
<< "***tgba_to_tgbta: POST if (state->is_livelock_accepting_state()) ... create_transition ***"
<< std::endl;
} else {
state->set_livelock_accepting_state(false);
}
//state->set_livelock_accepting_state(false);
}
if (state->compare(tgbta->get_artificial_initial_state()))
......
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