spot 2.16
Loading...
Searching...
No Matches
mutation.hh
1// -*- coding: utf-8 -*-
2// Copyright (C) by the Spot authors, see the AUTHORS file for details.
3//
4// This file is part of Spot, a model checking library.
5//
6// Spot is free software; you can redistribute it and/or modify it
7// under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 3 of the License, or
9// (at your option) any later version.
10//
11// Spot is distributed in the hope that it will be useful, but WITHOUT
12// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14// License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19#pragma once
20
21#include <spot/tl/formula.hh>
22#include <vector>
23
24namespace spot
25{
29 {
31 Mut_Ap2Const = 1U << 0,
43 Mut_Remove_Ops = 1U << 3,
47 Mut_Split_Ops = 1U << 4,
53 Mut_Rewrite_Ops = 1U << 5,
57 Mut_All = -1U
58 };
59
67 SPOT_API
68 std::vector<formula> mutate(formula f,
69 unsigned opts = Mut_All,
70 unsigned max_output = -1U,
71 unsigned mutation_count = 1,
72 bool sort = true);
73}
Main class for temporal logic formula.
Definition formula.hh:847
LTL/PSL formula interface.
std::vector< formula > mutate(formula f, unsigned opts=Mut_All, unsigned max_output=-1U, unsigned mutation_count=1, bool sort=true)
Generate mutations of a formula.
mut_opts
Types of mutations supported by mutate().
Definition mutation.hh:29
@ Mut_Split_Ops
Split syntactic sugar into simpler forms.
Definition mutation.hh:47
@ Mut_Remove_Ops
Remove operators.
Definition mutation.hh:43
@ Mut_Remove_One_Ap
Replace one atomic proposition by another one.
Definition mutation.hh:55
@ Mut_Ap2Const
Convert atomic propositions to constants.
Definition mutation.hh:31
@ Mut_Simplify_Bounds
Simplify bounds of bounded operators.
Definition mutation.hh:36
@ Mut_Rewrite_Ops
Rewrite some operators.
Definition mutation.hh:53
@ Mut_All
Attempt every mutation possible.
Definition mutation.hh:57
@ Mut_Remove_Multop_Operands
Remove operands from n-ary operators.
Definition mutation.hh:38
Definition automata.hh:26

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.8