I was thinking of something of the sort:
Build a program (call this one fake user) that generates lots and lots and lots of data based on the usage of another program (call this one target) using stimuli and response. For example, if the target is a minesweeper, the fake user would play the game a carl sagan number of times, as well as try to click all buttons on all sorts of different situations, etc...
run a machine learning program (call this one the copier) designed to evolve a code that works as similar as possible to the target.
kablam, you have a "sufficiently nice" open source copy of the target.
Is this possible?
Is something else possible to achieve the same result, namely, to obtain a "sufficiently nice" open source copy of the original target program?