rdaly525 / coreir

BSD 3-Clause "New" or "Revised" License
101 stars 24 forks source link

Unset corebit_term primitive expression lambda #831

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

term is being defined later on (see https://github.com/rdaly525/coreir/blob/e070dc0c57a964fd65ed8b46a10eb9916b54a49a/include/coreir/definitions/corebitVerilog.hpp#L128-L135) so it should not be a part of vmap. The redefinition of term removes the primitive type because it overrides the vjson, but the expression lambda is still set from the earlier logic. Term shouldn't be part of vmap because it's body doesn't match the "assign =" pattern used for the other primitives.