An Input-Centric Paradigm for Program Dynamic Optimization