Patent ID: 8769498

Claim:
A method for warning of source code assignment errors, the method comprising the steps of: a computer locating a program instruction in source code calling a program or process external to the source code; the computer determining whether a program instruction in the source code modifies a register or storage area and comes prior to the program instruction calling the program or process in an execution sequence; responsive to the computer determining that there is a program instruction in the source code that modifies the register or storage area and is prior to the program instruction calling the program or process in the execution sequence, the computer determining whether a program instruction in the source code restores the register or storage area and comes subsequent to the program instruction calling the program or process in the execution sequence; and responsive to the computer determining that there is not a program instruction in the source code that restores the register or storage area and comes subsequent to the program instruction calling the external program or process in the execution sequence, the computer displaying a warning message of a potential assignment error.