hdl.xfrm: Add Assert and Assume abstract methods for StatementVisitor, implement for children.

This commit is contained in:
William D. Jones 2018-12-30 05:17:39 -05:00 committed by whitequark
parent 2412650f56
commit f77dc40256
2 changed files with 39 additions and 0 deletions

View file

@ -297,6 +297,12 @@ class _StatementCompiler(StatementVisitor):
lhs(state, normalize(rhs(state), shape))
return run
def on_Assert(self, stmt):
raise NotImplementedError("Asserts not yet implemented for Simulator backend.") # :nocov:
def on_Assume(self, stmt):
pass # :nocov:
def on_Switch(self, stmt):
test = self.rrhs_compiler(stmt.test)
cases = []