in reply to Whether this concept of comparing two different output from same input file will work
Assuming you actually have some code, you could always T.I.T.S. Or, Try It To See..
HTH,