Intermediate Result Display for Program Code Evaluation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Users of technical computing environments face challenges in understanding how program code operates step-by-step, as they can only view overall results without intermediate results, making it difficult to debug or understand the execution process.
Innovation Solution
A system that allows users to view intermediate results and their correspondence to specific portions of program code, enabling step-by-step understanding and debugging by providing indicators that link intermediate results with the code segments that generate them.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If only overall results of evaluating program code are provided, then the system output is simple and clear, but users cannot understand the step-by-step execution process or debug effectively
Solution Approach 1:
The patent segments the program code into multiple portions and evaluates each portion separately to generate intermediate results. This segmentation allows users to see the execution process step-by-step for each code portion while maintaining system manageability through modular evaluation.
Solution Approach 2:
The patent implements a nested structure where intermediate results of individual code portions are nested within the overall evaluation results. This nested organization preserves detailed intermediate information while maintaining a hierarchical structure that prevents system complexity from becoming unmanageable.
2Ease of operation
If intermediate results of each code portion are provided, then users can understand execution process and debug effectively, but the system becomes more complex
Solution Approach 1:
The patent provides feedback to users by displaying intermediate results corresponding to each evaluated code portion. This feedback mechanism enables users to understand the execution process and debug effectively, while the systematic organization of feedback information prevents overwhelming complexity.
Solution Approach 2:
The patent introduces an intermediary evaluation process that bridges the gap between raw code execution and user understanding. This intermediary system generates and organizes intermediate results, making the execution process visible and understandable without requiring fundamental changes to the underlying system architecture.
3Loss of information
If multiple intermediate results are displayed, then comprehensive execution information is available, but information overload may occur
Solution Approach 1:
The patent applies local quality by providing detailed intermediate results specifically for selected code portions rather than uniformly for all code. This targeted approach ensures comprehensive execution information is available where needed while avoiding information overload in areas where detailed intermediate results are not necessary.
Data Source
AI summary
A device may receive an indication to evaluate a portion of program code. The device may cause the portion of program code to be evaluated based on receiving the indication to evaluate the portion of program code. The device may determine an intermediate result used to generate an overall result of evaluating the portion of program code based on causing the portion of program code to be evaluated. The intermediate result may be determined by evaluating a sub-portion of program code included in the portion of program code. The device may receive information that identifies a granularity level for displaying the intermediate result. The granularity level may indicate whether the intermediate result is to be provided for display. The device may selectively provide the intermediate result for display based on the granularity level.


