import isystem.connect as ic
winidea_id = ''
def test_runUntilAddress():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
execCtrl = ic.CExecutionController(connMgr)
addCtrl = ic.CAddressController(connMgr)
mainAddress = addCtrl.getFunctionAddress("main").getAddress()
execCtrl.reset()
print(f"Running CPU to address {hex(mainAddress)} (function 'main') with 1 sec timeout...")
execCtrl.runUntilAddress(0, mainAddress)
if __name__ == "__main__":
test_runUntilAddress()