Executable Line Tester Module for Source Code Debugging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Debugging large software programs is challenging due to the difficulty in identifying and isolating errors in executable lines, as existing methods do not effectively distinguish between executable and non-executable code lines.

Innovation Solution

A system and method that includes a tester module to identify and test only executable lines of source code, excluding declarations, definitions, function prototypes, and empty lines, while generating test information such as coverage and consumption data to help users quickly identify and fix errors.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If a tester module tests each executable line of source code to generate test information, then error identification speed improves, but system complexity increases

Engineering Contradiction:
Improveerror identification timeVSAvoidtesting system complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The source code is segmented into executable lines and non-executable lines. The tester module specifically identifies and tests only executable lines (those containing condition statements or action statements) while excluding non-executable lines (declarations, definitions, function prototypes, and empty lines). This segmentation allows the system to focus testing efforts where errors are most likely to occur, reducing overall testing complexity while improving error identification speed.

Inventive Principle:
Principle #1Segmentation

2Productivity

If the source code is modified with instructions to generate test information for each executable line, then debugging efficiency improves, but code modification complexity increases

Engineering Contradiction:
Improvedebugging efficiencyVSAvoidcode modification complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent extracts only the executable lines from the source code for testing purposes. By using regular expressions to identify and extract lines containing condition statements (if, while, for loops) and action statements (function calls, variable assignments), the system isolates the critical testing portions from the entire codebase. This extraction approach improves debugging efficiency by focusing on executable code while avoiding the complexity of modifying or testing non-executable lines.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS9003379B2Methods and systems for generating test information from a source code
Publication Date: 2015.04.07 ZYNGA INC
  • US9003379B2 patent drawing
  • US9003379B2 patent drawing
  • US9003379B2 patent drawing

AI summary

Systems and methods for generating test information from a source code are described. One of the methods includes accessing the source code. The method further includes receiving a modification of the source code to generate a modified source code. The modification includes one or more instructions that do not affect functions performed by executing the source code. The modification further includes one or more instructions for generating test information regarding each executable line of the source code.