Run sketch inside virtual machine on windows?

Beavis4ever:
I guess that a C++ emulator/simulator is more what I was looking for.

If all you want to do is verify that some complex logic works then you could just write a regular C++ program and compile it and run it on your PC. When it works it should not be difficult to port it to an Arduino - assuming you have kept the limitations of the Arduino in mind when writing the test program for the PC.

...R