SCAN: An Approach to Label and Relate Execution Trace Segments