一个很不错的程序切片工具,希望大家来讨论以下,对测试人员很有帮助
源代码在线查看: control.h
#ifndef _control_h #define _control_h # define CONTROL_SCCS_ID " @(#)control.h 1.1 8/10/95 " # include /* *********************************************************************** * * * codes for defining control structure * * * * General form: * * STMT (CTRL-FROM,CTRL-TO,STMT-FROM,STMT-TO) Comments * * * * STMT identifies type of control statement * * CTRL- identifies controling nodes * * STMT- identifies statements controled * * * * An IF_THEN_ELSE has two sets of controled statements * * * *********************************************************************** */ #define IF_CTRL 1 #define IF_THEN_ELSE_CTRL 2 #define DO_CTRL 3 #define WHILE_CTRL 4 #define FOR_CTRL 5 #define SWITCH_CTRL 6 FILE *ctrl_file; #endif /* _control_h */