fix some incorrect AP registrations
* spot/ltsmin/ltsmin.cc: Do not forget to register dead. * spot/twa/twaproduct.cc: Use copy_ap_of() instead of register_all_propositions_of() because the latter does do update ap().
This commit is contained in:
parent
7f219f2738
commit
5a441e1b93
3 changed files with 14 additions and 8 deletions
8
NEWS
8
NEWS
|
|
@ -1,6 +1,12 @@
|
||||||
New in spot 2.3.0.dev (not yet released)
|
New in spot 2.3.0.dev (not yet released)
|
||||||
|
|
||||||
Nothing yet.
|
Bugs fixed:
|
||||||
|
|
||||||
|
- spot::otf_product() was incorrectly registering atomic
|
||||||
|
propositions.
|
||||||
|
|
||||||
|
- spot::ltsmin_model::kripke() forgot to register the "dead"
|
||||||
|
proposition.
|
||||||
|
|
||||||
New in spot 2.3 (2017-01-19)
|
New in spot 2.3 (2017-01-19)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2011, 2012, 2014, 2015, 2016 Laboratoire de Recherche et
|
// Copyright (C) 2011, 2012, 2014, 2015, 2016, 2017 Laboratoire de
|
||||||
// Développement de l'Epita (LRDE)
|
// Recherche et Développement de l'Epita (LRDE)
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
//
|
//
|
||||||
|
|
@ -1118,6 +1118,7 @@ namespace spot
|
||||||
// twa::ap() works.
|
// twa::ap() works.
|
||||||
for (auto ap: *to_observe)
|
for (auto ap: *to_observe)
|
||||||
res->register_ap(ap);
|
res->register_ap(ap);
|
||||||
|
res->register_ap(dead);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2009, 2011, 2012, 2014, 2015, 2016 Laboratoire de
|
// Copyright (C) 2009, 2011, 2012, 2014, 2015, 2016, 2017 Laboratoire
|
||||||
// Recherche et Développement de l'Epita (LRDE).
|
// de Recherche et Développement de l'Epita (LRDE).
|
||||||
// Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de
|
// Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de
|
||||||
// Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
|
// Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
|
||||||
// Université Pierre et Marie Curie.
|
// Université Pierre et Marie Curie.
|
||||||
|
|
@ -306,9 +306,8 @@ namespace spot
|
||||||
left_kripke_ = false;
|
left_kripke_ = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto d = get_dict();
|
copy_ap_of(left_);
|
||||||
d->register_all_propositions_of(&left_, this);
|
copy_ap_of(right_);
|
||||||
d->register_all_propositions_of(&right_, this);
|
|
||||||
|
|
||||||
assert(num_sets() == 0);
|
assert(num_sets() == 0);
|
||||||
auto left_num = left->num_sets();
|
auto left_num = left->num_sets();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue