count_operations: fix to not count integer expressions for addresses/constants as real operations
Compare changes
+ 11
− 5
@@ -10,7 +10,8 @@ from sympy.functions import Abs
@@ -10,7 +10,8 @@ from sympy.functions import Abs
@@ -445,7 +446,6 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
@@ -445,7 +446,6 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
@@ -455,16 +455,19 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
@@ -455,16 +455,19 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
@@ -515,6 +518,9 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
@@ -515,6 +518,9 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],