Program that mimicks the JVM as mergesort is executed