dve2: use the new translator class
* iface/dve2/dve2check.cc: Adjust. * iface/dve2/README: Some (unrelated) typos.
This commit is contained in:
parent
c5b7e8e1da
commit
9723738404
2 changed files with 15 additions and 25 deletions
|
|
@ -53,8 +53,8 @@ Usage with Spot
|
|||
The function load_dve2() defined in dve2.hh in this directory
|
||||
will accept "model.dve" or "model.dve2C" as file argument.
|
||||
In the former case, it will call "divine compile --ltsmin"
|
||||
if "model.dve2C" does not exist or is older. Then load
|
||||
"model.dve2C" dynamically.
|
||||
if "model.dve2C" does not exist or is older. Then it will
|
||||
load "model.dve2C" dynamically.
|
||||
|
||||
load_dve2() also requires a set of atomic propositions that should
|
||||
be observed in the model. These are usually the atomic propositions
|
||||
|
|
@ -100,7 +100,9 @@ Usage with Spot
|
|||
be enclosed in double quote.
|
||||
|
||||
Caveat: "P_0.j >= 2" and " P_0.j>=2" (watch the spaces!) are
|
||||
considered to be two atomic propositions with the same semantics.
|
||||
considered to be two distinct atomic propositions with the same
|
||||
semantics.
|
||||
|
||||
|
||||
Examples
|
||||
========
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (C) 2011, 2012 Laboratoire de Recherche et Developpement de
|
||||
// l'Epita (LRDE)
|
||||
// Copyright (C) 2011, 2012, 2013 Laboratoire de Recherche et
|
||||
// Developpement de l'Epita (LRDE)
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
#include "ltlenv/defaultenv.hh"
|
||||
#include "ltlast/allnodes.hh"
|
||||
#include "ltlparse/public.hh"
|
||||
#include "tgbaalgos/ltl2tgba_fm.hh"
|
||||
#include "tgbaalgos/translate.hh"
|
||||
#include "tgbaalgos/emptiness.hh"
|
||||
#include "tgbaalgos/reducerun.hh"
|
||||
#include "tgbaalgos/postproc.hh"
|
||||
|
|
@ -203,15 +203,15 @@ main(int argc, char **argv)
|
|||
if (exit_code)
|
||||
goto safe_exit;
|
||||
|
||||
tm.start("reducing formula");
|
||||
tm.start("translating formula");
|
||||
{
|
||||
spot::ltl::ltl_simplifier_options opt(true, true, true, true, true);
|
||||
spot::ltl::ltl_simplifier simp(opt);
|
||||
const spot::ltl::formula* r = simp.simplify(f);
|
||||
f->destroy();
|
||||
f = r;
|
||||
spot::translator trans(dict);
|
||||
if (deterministic)
|
||||
trans.set_pref(spot::postprocessor::Deterministic);
|
||||
|
||||
prop = trans.run(&f);
|
||||
}
|
||||
tm.stop("reducing formula");
|
||||
tm.stop("translating formula");
|
||||
|
||||
atomic_prop_collect(f, &ap);
|
||||
|
||||
|
|
@ -243,18 +243,6 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
tm.start("translating formula");
|
||||
prop = spot::ltl_to_tgba_fm(f, dict);
|
||||
tm.stop("translating formula");
|
||||
|
||||
if (deterministic)
|
||||
post.set_pref(spot::postprocessor::Deterministic);
|
||||
|
||||
tm.start("postprocessing A_f");
|
||||
prop = post.run(prop, f);
|
||||
tm.stop("postprocessing A_f");
|
||||
|
||||
if (output == DotFormula)
|
||||
{
|
||||
tm.start("dotty output");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue