Data-flow simulator