Skip to content
Snippets Groups Projects
Commit 40d720a9 authored by Martin Bauer's avatar Martin Bauer
Browse files

No automatic simplify in SympyAssignment astnode

parent e55c5d8a
Branches
Tags
No related merge requests found
Pipeline #18624 passed with stages
in 3 minutes and 17 seconds
...@@ -503,7 +503,7 @@ class SympyAssignment(Node): ...@@ -503,7 +503,7 @@ class SympyAssignment(Node):
def __init__(self, lhs_symbol, rhs_expr, is_const=True): def __init__(self, lhs_symbol, rhs_expr, is_const=True):
super(SympyAssignment, self).__init__(parent=None) super(SympyAssignment, self).__init__(parent=None)
self._lhs_symbol = lhs_symbol self._lhs_symbol = lhs_symbol
self.rhs = sp.simplify(rhs_expr) self.rhs = sp.sympify(rhs_expr)
self._is_const = is_const self._is_const = is_const
self._is_declaration = self.__is_declaration() self._is_declaration = self.__is_declaration()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment