Skip to content
Snippets Groups Projects
Commit fef8760e authored by Bhatu's avatar Bhatu
Browse files

Improve assert message for broadcasts in typeinfer

parent 378b347a
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ class InferType(ASTVisitor):
assert(len(shape) == len(exprType.shape))
for i in range(0,len(shape)):
assert(shape[i] <= exprType.shape[i])
assert shape[i] <= exprType.shape[i], " for {}".format(node.metadata)
node.type = Tensor(shape, exprType.bitlen, exprType.isSecret, exprType.taint)
return node.type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment