×

Rule-based method for testing of programming segments

  • US 5,297,150 A
  • Filed: 06/17/1992
  • Issued: 03/22/1994
  • Est. Priority Date: 06/17/1992
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for determining a set of flow paths in a code listing as being the most likely ones to fail, the method comprising the steps of:

  • (a) converting said code listing to a directed acyclic graph (DAG) representation, said DAG including nodes and directed edges, each node representing a basic block of unconditional code statements, a basic block being a code listing that terminates at an exit point once commencing at a starting point, a said exit point being an exit code statement or a conditional code statement, each edge representing an action taken upon the occurrence of a condition in a said conditional code statement;

    (b) loading as facts into a knowledge base, said nodes and directed edges from said DAG and unconditional code statements from each said basic block'"'"'s code listing;

    (c) loading as rules into said knowledge base, conditional statements from said code listing and determined complexity indicator values for conditional and unconditional code statements;

    (d) assigning a weight in each node based upon a combination of complexity indicator values for conditional and unconditional code statements associated with a said node; and

    (e) determining a set of ranked flow paths through said code listing by employing said facts and rules, said flow paths ranked in order by analysis of each flow path'"'"'s nodal weights, those flow paths with weights indicating greater complexity being those most likely to fail.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×