Skip to content

Commit 253008c

Browse files
author
Matthias Koeppe
committed
src/sage/features/sat.py: New
1 parent 31e2166 commit 253008c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/sage/features/sat.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# sage_setup: distribution = sagemath-environment
2+
r"""
3+
Feature for testing the presence of SAT solvers
4+
"""
5+
6+
class Kissat(Executable):
7+
r"""
8+
A :class:`~sage.features.Feature` describing the presence of the
9+
:ref:`Kissat SAT solver <spkg_kissat>`.
10+
11+
EXAMPLES::
12+
13+
sage: from sage.features.kissat import Kissat
14+
sage: Kissat().is_present() # optional - kissat
15+
FeatureTestResult('kissat', True)
16+
"""
17+
def __init__(self):
18+
r"""
19+
TESTS::
20+
21+
sage: from sage.features.kissat import Kissat
22+
sage: isinstance(Kissat(), Kissat)
23+
True
24+
"""
25+
Executable.__init__(self, name="kissat", executable="kissat",
26+
spkg="kissat", type="optional")
27+
28+
29+
def all_features():
30+
return [Kissat()]

0 commit comments

Comments
 (0)