construct the maps between instructions and input-related memory addresses.