Add a Program argument to diffProgram to avoid a use of swapProgramIn.