We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e2166 commit 253008cCopy full SHA for 253008c
src/sage/features/sat.py
@@ -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
19
+ TESTS::
20
21
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