Commit 97237384 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

dve2: use the new translator class

* iface/dve2/ Adjust.
* iface/dve2/README: Some (unrelated) typos.
parent c5b7e8e1
......@@ -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
// 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 = r;
spot::translator trans(dict);
if (deterministic)
prop =;
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)
tm.start("postprocessing A_f");
prop =, f);
tm.stop("postprocessing A_f");
if (output == DotFormula)
tm.start("dotty output");
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