Loading a CoreIR c++ module and trying to do autocomplete on it in the terminal when it doesn't have a definition causes the below crash. (Note that this code depends on the import_generator function in this pull request https://github.com/leonardt/pycoreir/pull/32)
>>> from coreir.context import *
>>> from magma.backend.coreir_ import CoreIRBackend
>>> from magma import *
>>> c = Context()
>>> cirb = CoreIRBackend(c)
>>> dehydrate = cirb.context.import_generator("aetherlinglib", "dehydrate")(hydratedType = cirb.get_type(Array(3, Array(5, BitIn)), True))
>>> dehydrate.Assertion failed: (m->hasDef() && "Does not have def!"), function DirectedModule, file directedview.cpp, line 42.
Abort trap: 6
Loading a CoreIR c++ module and trying to do autocomplete on it in the terminal when it doesn't have a definition causes the below crash. (Note that this code depends on the import_generator function in this pull request https://github.com/leonardt/pycoreir/pull/32)