@@ -14,7 +14,7 @@ def __init__(self, r, random_seed=16):
14
14
15
15
def zero_blocks (self , f ):
16
16
"""divides the zero set of f into blocks
17
- >>> from brial import *
17
+ >>> from sage.rings.polynomial.pbori. brial import *
18
18
>>> r = declare_ring(["x", "y", "z"], dict())
19
19
>>> e = CNFEncoder(r)
20
20
>>> e.zero_blocks(r.variable(0)*r.variable(1)*r.variable(2))
@@ -78,7 +78,7 @@ def get_val(var):
78
78
79
79
def clauses (self , f ):
80
80
"""
81
- >>> from brial import *
81
+ >>> from sage.rings.polynomial.pbori. brial import *
82
82
>>> r = declare_ring(["x", "y", "z"], dict())
83
83
>>> e = CNFEncoder(r)
84
84
>>> e.clauses(r.variable(0)*r.variable(1)*r.variable(2)) # doctest:+ELLIPSIS
@@ -102,7 +102,7 @@ def clauses(self, f):
102
102
103
103
def polynomial_clauses (self , f ):
104
104
"""
105
- >>> from brial import *
105
+ >>> from sage.rings.polynomial.pbori. brial import *
106
106
>>> r = declare_ring(["x", "y", "z"], dict())
107
107
>>> e = CNFEncoder(r)
108
108
>>> e.polynomial_clauses(r.variable(0)*r.variable(1)*r.variable(2))
@@ -141,7 +141,7 @@ def get_sign(val):
141
141
142
142
def dimacs_encode_polynomial (self , p ):
143
143
"""
144
- >>> from brial import *
144
+ >>> from sage.rings.polynomial.pbori. brial import *
145
145
>>> d=dict()
146
146
>>> r = declare_ring(["x", "y", "z"], d)
147
147
>>> e = CNFEncoder(r)
@@ -156,7 +156,7 @@ def dimacs_encode_polynomial(self, p):
156
156
157
157
def dimacs_cnf (self , polynomial_system ):
158
158
r"""
159
- >>> from brial import *
159
+ >>> from sage.rings.polynomial.pbori. brial import *
160
160
>>> r = declare_ring(["x", "y", "z"], dict())
161
161
>>> e = CNFEncoder(r)
162
162
>>> e.dimacs_cnf([r.variable(0)*r.variable(1)*r.variable(2)])
@@ -182,7 +182,7 @@ class CryptoMiniSatEncoder(CNFEncoder):
182
182
183
183
def dimacs_encode_polynomial (self , p ):
184
184
r"""
185
- >>> from brial import *
185
+ >>> from sage.rings.polynomial.pbori. brial import *
186
186
>>> d=dict()
187
187
>>> r = declare_ring(["x", "y", "z"], d)
188
188
>>> e = CryptoMiniSatEncoder(r)
@@ -216,7 +216,7 @@ def dimacs_encode_polynomial(self, p):
216
216
217
217
def dimacs_cnf (self , polynomial_system ):
218
218
r"""
219
- >>> from brial import *
219
+ >>> from sage.rings.polynomial.pbori. brial import *
220
220
>>> r = declare_ring(["x", "y", "z"], dict())
221
221
>>> e = CryptoMiniSatEncoder(r)
222
222
>>> e.dimacs_cnf([r.variable(0)*r.variable(1)*r.variable(2)])
0 commit comments