File tree Expand file tree Collapse file tree 3 files changed +3
-134
lines changed Expand file tree Collapse file tree 3 files changed +3
-134
lines changed Original file line number Diff line number Diff line change 2
2
from hypothesis import given
3
3
4
4
import aiger
5
- from aiger import bv
6
- from aiger import bv_utils
7
5
from aiger import common
8
6
from aiger import hypothesis as aigh
9
7
@@ -17,16 +15,6 @@ def test_aig_to_aag(circ, data):
17
15
assert circ (test_input ) == circ2 (test_input )
18
16
19
17
20
- def test_aig_to_aag2 ():
21
- expr = abs (bv .BV (2 , 'x' ))
22
- circ = expr .aig
23
- circ2 = circ ._to_aag ()._to_aig ()
24
- assert circ .inputs == circ2 .inputs
25
- assert circ .outputs == circ2 .outputs
26
-
27
- bv_utils .simplify (expr ) # smoke test
28
-
29
-
30
18
def test_sink_aag ():
31
19
circ = aiger .common .sink (['x' , 'y' ])
32
20
assert len (circ ._to_aag ().inputs ) != 0
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
import aiger
7
7
from aiger import hypothesis as aigh
8
8
from aiger import utils as aigu
9
- from aiger .bv import BV
10
9
11
10
12
11
@given (aigh .Circuits )
@@ -41,8 +40,11 @@ def test_count_and(circ1, circ2):
41
40
assert count1 * count2 == count3
42
41
43
42
43
+ """
44
+ TODO: move to py-aiger-anaylsis.
44
45
@settings(max_examples=20, timeout=unlimited)
45
46
@given(st.integers(-8, 7))
46
47
def test_count_le(i):
47
48
circ = BV(4, 'x') < BV(4, i)
48
49
assert aigu.count(circ.aig) == i + 8
50
+ """
You can’t perform that action at this time.
0 commit comments