Return to Video

Forward Slice - Software Debugging

  • 0:00 - 0:04
    When there are backward slices, there are also forward slices.
  • 0:04 - 0:09
    A forward slice contains all statements that depend on a specific statement.
  • 0:09 - 0:13
    As an example, let's come up with a forward slice
  • 0:13 - 0:16
    of the initialization of the out variable.
  • 0:16 - 0:20
    Very obviously, the final return statement is part of the forward slice
  • 0:20 - 0:25
    because it reads from a variable which is set over here, namely, out;
  • 0:25 - 0:28
    therefore, it is data-dependent on this earlier statement.
  • 0:28 - 0:30
    And, therefore, it's part of the forward slice.
  • 0:30 - 0:32
    Now for the quiz:
  • 0:32 - 0:36
    Which other statements are contained in the forward slice of S?
  • 0:36 - 0:38
    Check all that apply.
タイトル:
Forward Slice - Software Debugging
Team:
Udacity
プロジェクト:
CS259 - Software Debugging
Duration:
0:39
Udacity Robot edited 英語(米国) subtitles for 04-26 Forward Slice
Udacity Robot edited 英語(米国) subtitles for 04-26 Forward Slice
Udacity Robot edited 英語(米国) subtitles for 04-26 Forward Slice
Udacity Robot edited 英語(米国) subtitles for 04-26 Forward Slice
Fran Ontanaya edited 英語(米国) subtitles for 04-26 Forward Slice
Amara Bot added a translation

English subtitles

改訂 Compare revisions