When sim_api_t::getid(), peek(), or poke() is called with a path that doesn't map to a circuit element, it does an exit(0). This can leave the Java side hung inside Stream IO. Return -1 on getid() failure.
If we're going to exit prematurely, we should not claim it's a normal exit.
When sim_api_t::getid(), peek(), or poke() is called with a path that doesn't map to a circuit element, it does an exit(0). This can leave the Java side hung inside Stream IO. Return -1 on getid() failure. If we're going to exit prematurely, we should not claim it's a normal exit.