Research Article

A Coverage and Slicing Dependencies Analysis for Seeking Software Security Defects

Table 1

Definitions of different statements data dependencies.

Statement typeDefinition of left and right values Examples of statements Left and right linked lists

Assignment statement
 Definition declaration Left value is the linked list defining variables, and right value is null. Int , ; -> ->
 Direct assignment Left value is the linked list defining variables, and right value is null. = 10;
 Indirect assignmentLeft value is the assigned variable, and right value is the assigned value. = + ; ->
Control statement
 While Left value and right value are the same in these statements, which are variables involved in(). Left and right values of these statements are included in the left and right linked lists of all statements in the control domains. While ( > ) -> ->
 If elseIf ( > 10)
 ForFor ( = 1; < ; ++) -> ->
Console statementLeft value and right value are both null. return ; Null Null
Function call
 User-definedRelated to parameter types. Abs(* , ) Abs()
 Library function Left and right values are both null. Print f()NullNull