Program Call Display With Actual Argument Substitution
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Analyzing user programs with call instructions is challenging due to the need to replace dummy arguments with actual arguments, making it difficult to understand the hierarchical structure and execution flow, especially when programs are reused and composed of multiple subprograms.
Innovation Solution
An information processing device that receives user operations, holds user programs, and displays the content of subprograms in association with call instructions, reflecting actual arguments in dummy arguments to facilitate analysis, allowing for visual representation of argument usage and hierarchical structure.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If programs are made into parts and reused using call instructions, then program creation is facilitated, but program analysis becomes difficult
Solution Approach 1:
The patent displays the called program content nested within the call instruction context, showing the first program content between the call instruction and next step in the second program. This nesting approach allows users to see both the modular structure and the actual argument substitutions simultaneously, resolving the contradiction between program reusability and analyzability.
Solution Approach 2:
The patent introduces an intermediary display mechanism that substitutes dummy arguments with actual arguments when displaying called program content. This intermediary process maintains the modular program structure while enabling clear analysis by showing the concrete argument values used in each call context.
2Adaptability or versatility
If dummy arguments are used in subprograms, then program reusability is improved, but understanding actual argument usage becomes difficult
Solution Approach 1:
The patent applies local quality by maintaining dummy arguments in the subprogram definition for reusability, while locally substituting them with actual arguments only in the display of called content. This allows the subprogram to remain versatile while the specific call context shows concrete argument usage, preventing information loss.
Solution Approach 2:
The patent implements dynamics by making the argument display adaptive to the call context. When displaying called program content, the system dynamically substitutes dummy arguments with actual arguments based on the specific call instruction, allowing the same subprogram to be displayed with different argument values depending on how it is called.
Data Source
AI summary
The present invention provides an information processing device, a recording medium, and a support system. With respect to a second program having a call instruction that designates an actual argument and calls a first program defined by using a dummy argument, the content of the first program defined by using the dummy argument according to a user operation is associated with the call instruction in the second program, and the associated result is displayed. In this case, the actual argument designated in the call instruction to the dummy argument is reflected in the first program, and the reflected result is displayed.


