1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff --git a/logicmin/assign.py b/logicmin/assign.py
index b0a4478..75e2a69 100644
--- a/logicmin/assign.py
+++ b/logicmin/assign.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
from fsm import *
class StateAssign:
@@ -18,14 +20,14 @@ class StateAssign:
hist[solcost] = hist[solcost] + 1;
if solcost < mincost:
mincost = solcost
- print "i",i,"cost",solcost
+ print("i",i,"cost",solcost)
fsm.PrintSol()
i = i + 1
#
- print "total solutions=",i-1
+ print("total solutions=",i-1)
for k in range(1000):
if hist[k]>0:
- print k,"=",hist[k]
+ print(k,"=",hist[k])
|