Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
d80ca1fb
Commit
d80ca1fb
authored
Jan 18, 2017
by
Alexandre Duret-Lutz
Browse files
sat: reject alternating inputs
* spot/twaalgos/dtbasat.cc, spot/twaalgos/dtwasat.cc: Here.
parent
5939ca4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
spot/twaalgos/dtbasat.cc
View file @
d80ca1fb
// -*- coding: utf-8 -*-
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche
et
// Développement de l'Epita.
// Copyright (C) 2013, 2014, 2015
, 2016, 2017
Laboratoire de Recherche
//
et
Développement de l'Epita.
//
// This file is part of Spot, a model checking library.
//
...
...
@@ -715,9 +715,12 @@ namespace spot
dtba_sat_synthetize
(
const
const_twa_graph_ptr
&
a
,
int
target_state_number
,
bool
state_based
)
{
if
(
a
->
is_alternating
())
throw
std
::
runtime_error
(
"dtba_sat_synthetize() does not support alternating automata"
);
if
(
!
a
->
acc
().
is_buchi
())
throw
std
::
runtime_error
(
"dtba_sat() can only work with Büchi acceptance"
);
(
"dtba_sat
_synthetize
() can only work with Büchi acceptance"
);
if
(
target_state_number
==
0
)
return
nullptr
;
trace
<<
"dtba_sat_synthetize(..., states = "
<<
target_state_number
...
...
spot/twaalgos/dtwasat.cc
View file @
d80ca1fb
...
...
@@ -992,6 +992,9 @@ namespace spot
int
target_state_number
,
bool
state_based
,
bool
colored
)
{
if
(
a
->
is_alternating
())
throw
std
::
runtime_error
(
"dtwa_sat_synthetize() does not support alternating automata"
);
if
(
target_state_number
==
0
)
return
nullptr
;
trace
<<
"dtwa_sat_synthetize(..., nacc = "
<<
target_acc_number
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment