introduce output_aborter, and use it in ltlcross
* spot/twaalgos/alternation.cc, spot/twaalgos/alternation.hh, spot/twaalgos/complement.cc, spot/twaalgos/complement.hh, spot/twaalgos/determinize.cc, spot/twaalgos/determinize.hh, spot/twaalgos/minimize.cc, spot/twaalgos/minimize.hh, spot/twaalgos/postproc.cc, spot/twaalgos/postproc.hh, spot/twaalgos/powerset.cc, spot/twaalgos/powerset.hh, spot/twaalgos/product.cc, spot/twaalgos/product.hh: Use an output_aborter argument to abort if the output is too large. * bin/ltlcross.cc: Use complement() with an output_aborter so that ltlcross will not attempt to build complement larger than 500 states or 5000 edges. Add --determinize-max-states and --determinize-max-edges options. * tests/core/ltlcross3.test, tests/core/ltlcrossce2.test, tests/core/sccsimpl.test, tests/core/wdba2.test, tests/python/stutter-inv.ipynb: Adjust test cases. * NEWS: Document this. * bin/spot-x.cc: Add documentation for postprocessor's det-max-states and det-max-edges arguments. * doc/org/ltlcross.org: Update description.
This commit is contained in:
parent
5c3a33f720
commit
a85045091b
23 changed files with 568 additions and 287 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2014, 2015, 2018 Laboratoire de Recherche et
|
||||
// Copyright (C) 2014, 2015, 2018, 2019 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include <spot/misc/common.hh>
|
||||
#include <spot/twa/fwd.hh>
|
||||
#include <spot/twaalgos/powerset.hh>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
|
||||
|
|
@ -45,9 +46,13 @@ namespace spot
|
|||
/// "product-states" with type spot::product_states. This stores
|
||||
/// the pair of original state numbers associated to each state of
|
||||
/// the product.
|
||||
///
|
||||
/// If an \a aborter is given, the function will return nullptr
|
||||
/// whenever the resulting product would be too large.
|
||||
SPOT_API
|
||||
twa_graph_ptr product(const const_twa_graph_ptr& left,
|
||||
const const_twa_graph_ptr& right);
|
||||
const const_twa_graph_ptr& right,
|
||||
const output_aborter* aborter = nullptr);
|
||||
|
||||
/// \ingroup twa_algorithms
|
||||
/// \brief Intersect two automata using a synchronous product
|
||||
|
|
@ -68,11 +73,15 @@ namespace spot
|
|||
/// "product-states" with type spot::product_states. This stores
|
||||
/// the pair of original state numbers associated to each state of
|
||||
/// the product.
|
||||
///
|
||||
/// If an \a aborter is given, the function will return nullptr
|
||||
/// whenever the resulting product would be too large.
|
||||
SPOT_API
|
||||
twa_graph_ptr product(const const_twa_graph_ptr& left,
|
||||
const const_twa_graph_ptr& right,
|
||||
unsigned left_state,
|
||||
unsigned right_state);
|
||||
unsigned right_state,
|
||||
const output_aborter* aborter = nullptr);
|
||||
|
||||
/// \ingroup twa_algorithms
|
||||
/// \brief Sum two automata using a synchronous product
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue