Can you write this comment here: 
For each superstep, there is either a "regular" master trace (saved in master_reg_stp_i.tr files), or an "exception" master trace (saved in master_err_stp_i.tr files). We first check to see if a regular master trace is available. If not, then we check to see if an exception master trace is available.