SCAN: an Approach to Label and Relate Execution Trace Segments