System and method for determining program code defects and acceptability for use - Patents.com

The system uses ML and AI to simulate and correct program code defects in real-time, addressing inefficiencies in existing methods by providing rapid and reliable verification and certification, especially for legacy code.

JP7562011B2Active Publication Date: 2024-10-04NORTHROP GRUMMAN SYSTEMS CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023550274
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-02-24
Filing Date
2022-01-17
Publication Date
2024-10-04
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

Existing methods for determining program code defects and acceptability are subjective, time-consuming, and inefficient, particularly for legacy code, and do not effectively utilize machine learning (ML) and artificial intelligence (AI) to ensure safety and reliability in real-time during software development.

Method used

A system and method utilizing ML and AI to evaluate program code for defects and acceptability by simulating code in a modeled environment, identifying errors and failures, and providing real-time correction solutions, allowing for continuous verification and certification of code during development.

Benefits of technology

Enables rapid, deterministic, and reliable evaluation of program code for safety and security, reducing certification time and costs, and supporting legacy code verification, while ensuring code quality and safety throughout the development lifecycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007562011000001
    Figure 0007562011000001
  • Figure 0007562011000002
    Figure 0007562011000002
  • Figure 0007562011000003
    Figure 0007562011000003
Patent Text Reader

Abstract

The code development engine can be programmed to evaluate the build code, which can represent the program code at a stage during or after software development of the program code, to identify and correct coding errors in the build code. The code run-time simulation engine can be programmed to simulate the build code in a modeled program code environment for the program code to identify and correct coding failures in the build code. The build code output module can be programmed to evaluate the build code to determine whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code in response to the coding errors and / or coding failures being corrected in the build code.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (Related Applications) This application claims priority to U.S. Patent Application No. 17 / 183,956, filed February 24, 2021, the entire contents of which are incorporated herein by reference.

[0002] FIELD OF THEINVENTION The present disclosure relates to determining the acceptability of program code defects and use of systems and methods. [Background technology]

[0003] Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining an application, framework, programmable logic device (microcode), or other software component. Software development can include everything that may be involved between the conception of the desired software and the final manifestation of the software, sometimes in a planned and structured process. Software development can include research, new development, prototyping, modification, reuse, redesign, maintenance, or any other activity that results in a software product. In some cases, software development can include adding new features or functions to the software and correcting discovered problems.

[0004] Program analysis is the process of analyzing the behavior of computer code, such as during development, for properties such as correctness, robustness, safety, liveness, and, in some cases, that the target software is developed for acceptable safety risk hazards. Program analysis focuses on program optimization and program correctness (e.g., ensuring that a program can operate in a safety-critical system). The former focuses on improving program performance while reducing resource usage, while the latter focuses on ensuring that a program does what it is supposed to do.

[0005] Machine learning (ML) is a subset of artificial intelligence (AI) in which computers use algorithms and statistical models to analyze learning or training data sets and then perform tasks accurately without explicitly coded instructions, relying in effect on patterns and inference to generalize from past experience. ML-based systems can solve problems not previously seen or considered that would be impossible to code for each individual case. Types of ML algorithms include supervised learning, unsupervised learning, and feature learning, among others. Types of ML models that can be trained with training data include artificial neural networks, decision trees, support vector machines, regression analysis models, Bayesian networks, genetic algorithms, principal component analysis, and cluster analysis. Summary of the Invention

[0006] The present disclosure relates to systems and methods for determining program code defects and acceptability for use.

[0007] In one example, the system can include a memory for storing machine-readable instructions and data. The data can include a build code that can represent the program code at a stage. The system can include one or more processors that can access the memory and execute the machine-readable instructions. The machine-readable instructions can include a code development engine, a code runtime simulation engine, and a build code output module. The code development engine can be programmed to evaluate the build code to determine whether the build code complies with a program code development standard for the program code to identify coding errors in the build code. The code development engine can be programmed to recommend an error correction solution for correcting the build code for the coding errors. The code runtime simulation engine can be programmed to simulate the build code in a modeled program code environment for the program code to identify coding failures in the build code. The code runtime simulation engine can be programmed to recommend a failure correction solution for correcting the build code for the coding failures. The build code output module can be programmed to evaluate the build code to determine whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code in response to the coding errors and / or coding failures being corrected in the build code.

[0008] In another example, a computer-implemented method may include providing a build code that may represent the program code at a stage during software development of the program code; evaluating the build code to identify coding errors in the build code based on a library of learned coding development standards that characterize rules and / or constraints for software development of the program code; recommending an error correction solution for correcting the coding errors based on the evaluation of the coding errors and a library of learned coding error solutions that characterize previous error correction solutions for the coding errors in the program code and / or the build code; updating the build code to correct the coding errors in the build code based on the error correction solution; and in response to correcting the coding errors in the build code, determining whether the build code is acceptable for use in a program code environment for the program code based on a level of acceptable risk for the build code.

[0009] In a further example, a computer-implemented method may include receiving build code, which may represent the program code at a stage during software development of the program code or after the software development, simulating the build code in a modeled program code environment of the program code for determining a behavior and / or performance of the build code, evaluating the behavior and / or performance of the build code to identify coding failures in the build code, identifying failure correction solutions for correcting the coding failures based on the evaluation of the coding failures and a library of learned coding failure solutions characterizing previous failure correction solutions for the coding failures in the program code and / or build code, and in response to correcting the coding failures in the build code, determining whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code. [Brief description of the drawings]

[0010] [Figure 1] 1 illustrates an example system for determining program code defects and acceptability for use. [Diagram 2] 1 illustrates an example of a code run-time simulation engine. [Diagram 3] 1 illustrates an example of a code development engine. [Figure 4] 1 shows an example of a build code output module. [Diagram 5] 1 illustrates an example method for program error correction and acceptability determination. [Figure 6] 1 illustrates an example method for program error correction and acceptability determination. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The present disclosure relates to systems and methods for determining program code defects and acceptability for use. Existing approaches for program code verification (or certification) rely on a subjective human evaluation of software development rationale to determine whether the program code is acceptable for use in an intended system (e.g., a safety-critical system, a mission-critical system, a security-critical system, etc.). Program code verification involves using one or more practices, tests, and / or standards to determine the acceptability of the program code. In some cases, program code verification can include evaluating artifacts (or rationale) for the program code (e.g., risk assessments (e.g., risks posed by the program code), types of computing systems on which the program should run, use cases, unified modeling language (UML) diagrams, classification diagrams, images used in developing the program code, software documentation (e.g., documents describing properties or attributes of the program code), meeting notes, prototypes, etc.).

[0012] Depending on the type of program and / or corresponding computing environment in which the program code is to be used, different program code verification methods have been developed for program code acceptability evaluation to determine whether the program code is acceptable. Program code identified (or flagged) as acceptable may correspond to program code determined to comply with program code testing criteria (e.g., a given level of correctness, coding errors, safety, and / or reliability, etc.) and / or prescribed software development standards. In some cases, program code verification involves using software testing tools and / or software metrics to determine whether the program code is acceptable for use. For example, in aviation applications, DO-178 (e.g., DO-178B or DO-178C) is employed to evaluate the acceptability of program code. The Federal Aviation Administration (FAA) applies DO-178 as a baseline and guidance (e.g., standard) on which safety-critical program code is based to verify and determine whether it will function safely in an aviation environment.

[0013] However, using humans to evaluate large amounts of evidence in conjunction with developing program code and determining whether the program code is acceptable can result in a superficial, incomplete, and / or unacceptably lengthy evaluation. Furthermore, using humans for evaluation is time consuming and subjective. As a result, proving software and / or programmable logic device (microcode) as acceptable can be time consuming, analysis-intensive, test-intensive, documentation-intensive, manual, and subjective to the evaluator's opinion, which can result in uncertainty as to whether the program code is acceptable (e.g., safe or not).

[0014] Furthermore, existing program code verification methods are not easily applicable to legacy program code, since current evaluation methods are designed for newer program code development standards. For example, existing program code verification methods used to establish program code as acceptable are based on a "stage-of-involvement" approach (or process). This means that certain assurance tasks must be performed at very specific points in the software development cycle. However, this is problematic for legacy code, because the "stage-of-involvement" process creates the need to either rewrite the legacy code or be forced to accept the legacy code "as is." In addition, existing legacy code is poorly documented, and therefore redesigning the legacy code is usually not a viable option.

[0015] Furthermore, existing program code verification methods used to evaluate safety-critical program code employing ML and / or AI are based on static software imaging techniques (e.g., deterministic program code testing techniques). Thus, these methods cannot provide assurance that new directions of self-modifying code found in supervised and unsupervised environments will be acceptable for safe use as epics change the code form that is the initial release of the program code. In addition, existing program code verification methods require that the program code be complete (e.g., fully developed and ready for verification) and / or that a reasoned process be completed (e.g., verification is fully completed to a sufficient level) before determining whether the program code is acceptable.

[0016] Described herein are systems and methods for evaluating program code during different stages of development (e.g., planning, analysis, design, implementation, and / or testing and integration) to determine whether the program code is acceptable and therefore safe for use. The systems and methods described herein can monitor the software development lifecycle of the program code and determine (e.g., calculate) whether a current state or version of the program code is acceptable for use (e.g., safe for use). As a computer program is being developed (e.g., one or more modules are being updated, improved, etc.), the systems and methods described herein can monitor (e.g., continuously) the development of the program code to identify defects (e.g., faults, errors, and failures) in the program code and quantify the acceptability of the program code, which corresponds to a value indicative of a level of safety of the program code. In some examples, the systems and methods described herein can be programmed to identify or provide recommendations to a user (e.g., a developer), or in some examples, can be programmed to provide suggestions for correcting identified defects. Thus, as a user is developing program code, the systems and methods described herein can inform the user of coding defects and, in some instances, provide solutions for correcting the coding defects.

[0017] In some examples, the code development engine can be programmed to evaluate the build code, which can represent the program code at a stage during or after software development of the program code, to identify and correct coding errors in the build code. The code development engine can be programmed to evaluate the build code and provide recommendations for correcting the coding errors or update the build code to comply with code development standards for the program code. The code development engine can be programmed to communicate with a build code output module, which can be programmed to evaluate the build code to determine whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code in response to the coding errors being corrected in the build code.

[0018] In some examples, the code runtime simulation engine can be programmed to simulate the build code in a modeled program code environment for the program code to identify and correct coding failures in the build code. The code runtime simulation engine can be programmed to receive the build code during and / or after software development of the program code, process the build code, and simulate the performance of the build code under nominal, off-nominal, and stress conditions to identify coding failures in the build code. The code runtime simulation engine can be programmed to evaluate the build code to determine, by the build code output module, whether each build of the program code is acceptable (e.g., safe for use). As a further example, the code runtime simulation engine can be programmed to model a program code environment for the program code (e.g., in which the program code is used) and simulate the build code in the modeled program code environment to verify the behavior and / or performance of the build code (e.g., to identify potential unsafe behaviors corresponding to actions of the build code that may lead to system failures and / or personnel losses). The code development engine can be programmed to communicate with a build code output module, which can be programmed to, in response to the failure error being corrected in the build code, evaluate the build code to determine whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code.

[0019] Thus, the systems and methods described herein provide a deterministic approach for program code verification that eliminates the use of humans for subjective evaluation of large amounts of evidence for program code verification and allows for improved (e.g., faster) deployment of program code. Furthermore, the systems and methods described herein allow legacy program code to be verified to determine whether the legacy program code is acceptable. Furthermore, the systems and methods described herein may be used to employ ML and / or AI algorithms to certify such program code to ensure that the program code is safe for use in a corresponding program application environment. Because the systems and methods described herein can evaluate program code as it is being developed, the acceptability of the program code can be evaluated in tandem with program code development, and thus the program code does not need to be fully developed (e.g., as is currently required) before determining whether the program code is acceptable.

[0020] FIG. 1 illustrates an example of a system 100 for determining program code defects and acceptability for use. The system 100 can be implemented on a server, a cloud environment, a computer, such as a laptop computer, a desktop computer, a tablet computer, a workstation, a server, and the like. The system 100 can include one or more processors 102 and a memory 104. The memory 104 can store machine-readable instructions that can be retrieved and executed by the one or more processors 102 for program code evaluation and modification for acceptable use in the program code environment. The program code environment can correspond to a computing environment in which the program code is to be employed. As an example, the computing environment can correspond to a computing system such as that employed in an aircraft. Thus, in some examples, the system 100 can be used to determine whether the program code 106 complies with safety-critical application guidelines as defined by DO-178 and is therefore acceptable for use (e.g., safe for use).

[0021] By way of example, memory 104 may be implemented as a non-transitory computer storage medium, such as, for example, a volatile memory (e.g., random access memory), a non-volatile memory (e.g., a hard disk drive, a solid state drive, a flash memory, etc.), or a combination thereof. One or more processors 102 may be implemented as, for example, one or more processor cores. In this example, the components of system 100 are shown as being implemented on the same system, but in other examples, the components may be distributed across different systems (e.g., computers, devices, etc.) and communicate, for example, via a network (e.g., a wireless and / or wired network). In some examples, system 100 may be implemented as a plug-in and incorporated into a computer program (e.g., a software application). As an example, the computer program may correspond to an integrated development environment (IDE). In other examples, system 100 may be programmed to monitor one or more IDEs (e.g., a software application) and / or other software development tools as a developer or group of developers collaborate to develop program code 106.

[0022] In the example of FIG. 1, the memory 104 can include a code input module 108. In some examples, the code input module 108 can be programmed to receive or receive the program code 106 (e.g., a module, a software unit, a computer software configuration item (CSCI), microcode, and / or the like) as the program code 106 is being developed. In other examples, the program code 106 can be represented by or as a program code model 110 as the program code 106 is being developed. For example, a software modeling tool can be employed to generate the program code model 110. The code input module 108 can be programmed to retrieve or receive the program code model 110. In some examples, the code input module 108 can be programmed to provide build code 112 based on the program code model 110. In other examples, the build code 112 can correspond to the program code 106. In some examples, the program code 106 can include or correspond to legacy program code. As a further example, the program code 106 can include ML and / or AI algorithms. In some examples, the system 100 can be employed to evaluate each build of the program code 106 during software development so that the program code 106 can be deployed for early use in a program code environment.

[0023] In some examples, the build code 112 may correspond to a version of the program code 106 as the program code 106 is being developed by one or more users. Thus, in some examples, the program code model 110 may reflect changes or updates to the program code 106 as the program code 106 is being developed. As the program code 106 is being developed from an initial program code build to a final program code build (e.g., ready for use or certification), and thus, in some cases, to production quality code (e.g., program code that meets or satisfies requirements for use in a corresponding program code application, referred to in some examples as released program code), the program code model 110 may be updated to reflect the corresponding program code build. Thus, as the program code 106 transitions and changes throughout its software development life, the program code model 110 may be updated to capture the transitions and / or changes and thus describe the current version of the program code 106. Thus, in some examples, as the program code 106 is being updated, the program code model 110 of the program code 106 may also be updated, which the code entry module 108 may use to update the build code 112. The build code 112 may be continually updated by the code entry module 108 to reflect updates to the program code 106 or the program code model 110. Thus, the build code 112 may represent a version of the program code 106 or the program code model 110 at a stage during the software development cycle.

[0024] In some examples, the memory 104 can include a code development engine 114 that can be programmed to evaluate the build code 112 to determine whether the program code 106 meets a code development standard for the program code 106. The code development engine 114 can be programmed to find coding errors and faults (collectively referred to herein as "coding errors") in the program code 106 based on an evaluation of the build code 112 against the coding development standard. The code development engine 114 can be programmed to evaluate the build code 112 and provide recommendations for correcting the coding errors or update the build code 112 to comply with the code development standard for the program code 106.

[0025] For example, the code development engine 114 can be programmed to alert a user on an output device 116 (e.g., on a display) that the program code 106 contains a coding error and provide a recommendation for correcting the coding error. As a further example, if the coding error corresponds to a global variable conflict (e.g., one developer working on the program code 106 uses a given global variable value and a different developer working on the program code 106 uses the same global variable value), the warning can identify the global variable conflict and a solution for correcting the global variable conflict (e.g., recommending using a different global variable value).

[0026] In another example, the code development engine 114 can be programmed to update the build code 112 to correct the coding errors and provide an updated build code 118, thereby automatically correcting the build code 112. The updated build code 118 can be employed by the build code output module 120 stored in the memory 104 to update the program code model 110 or the program code 106. Thus, when one or more coding errors are corrected by the code development engine 114, the build code output module 120 can be programmed to update the program code model 110 or the program code 106 to correct the corresponding coding errors in the program code 106.

[0027] In some examples, the build code output module 120 can be programmed to evaluate the updated build code 118 to determine whether the respective build of the program code 106 is acceptable. The level of acceptable risk can be defined by a user and / or entity of the program code 106. In some examples, the level of acceptable risk can correspond to a safety risk of the program code 106. The build code output module 120 can be programmed to calculate a risk probability (e.g., provide a reliability) of the updated build code 118 with respect to the code usage requirements. For example, the safety code usage requirements defined by the corresponding standard can be employed to calculate the risk probability. As an example, the safety code usage requirements can be provided based on the MIL-STD-882E standard (e.g., software hazard risk in Table VI of the MIL-STD-882E standard with respect to the degree of completion of tasks of the corresponding rigor level that have been completed). In some examples, the code usage requirements can correspond to a safety requirement or objective of the program code 106. The safety requirement or objective can be specified by one or more users, entities, and / or organizations. In some examples, safety requirements or objectives may include objectives that the code must be designed to be fail-safe, that all failures of the code must be detectable, and / or that safety-critical functions must be implemented using arbitrated active / active redundant processing paths.

[0028] The build code output module 120 can be programmed to evaluate the risk probability against a level of tolerable risk defined by a user and / or entity to determine whether the updated build code is acceptable. In some examples, the build code output module 120 can be programmed to alert a user on the output device 116 that the updated build code 118 is acceptable. In some examples, the build code output module 120 can be programmed to provide a risk probability on the output device 116 that indicates to a user the safety risk of the respective build of the program code 106. For example, the safety risk can indicate that the updated build code 118 has achieved an assurance state that the updated build code 118 is sufficiently reliable based on a level of tolerable risk. In some examples, the acceptability of the updated build code 118 can be application specific, and thus the safety risk can be application driven. As an example, after simulating the build code 112 (e.g., by running multiple simulations) and no functional anomalies are detected, the safety risk can indicate that the updated build code 118 has achieved an assurance state.

[0029] In some examples, the memory can include a code runtime simulation engine 122. The code runtime simulation engine 122 can execute simultaneously with the code development engine 114 or after the program code development. The code runtime simulation engine 122 can be programmed to simulate the build code 112 to find coding faults (e.g., weaknesses, anomalies, defects, and / or the like) in the build code 112. The code runtime simulation engine 122 can be programmed to receive the build code 112 during the development lifecycle of the program code 106, process the build code 112, and simulate the performance of the build code 112 under nominal, off-nominal, and stress conditions to identify coding faults in the build code 112. The code runtime simulation engine 122 can be programmed to evaluate the build code 112 for a determination by the build code output module 120 as to whether the respective build of the program code 106 is acceptable (e.g., safe for use). As a further example, the code runtime simulation engine 122 may be programmed to model a program code environment for the program code 106 (e.g., in which the program code 106 is used) and simulate the build code 112 in the modeled program code environment to verify the behavior and / or performance of the build code 112 (e.g., to identify potential unsafe behaviors corresponding to actions of the build code 112 that may lead to system failures and / or personnel losses). In some examples, the modeled program code environment may include an operating system, application layers, and board support packages.

[0030] In some examples, the code runtime simulation engine 122 can be programmed to communicate with the build code output module 120 in response to a given number of simulations of the build code 112. In some examples, after each simulation of the build code 112, the code runtime simulation engine 122 can be programmed to update the build code 112 by correcting coding failures identified during each simulation to provide an updated build code 118. In a further example, the build code output module 120 can be programmed to employ the updated build code 118 to update the program code 106 and / or the program code model 110 to correct failures in the program code 106. In some examples, the code runtime simulation engine 122 can be programmed to cause the build code output module 120 to calculate a risk probability of the updated build code 118 as described herein. In some examples, the risk probability of the updated build code 118 can be calculated after each simulation of the build code 112 and displayed on the output device 116 to provide a user with a continuous update on the safety risk posed by the updated build code 118 corresponding to each build of the program code 106.

[0031] In some examples, the code development engine 114 and the code runtime simulation engine 122 can be configured to cooperate to provide updated build code 118. For example, the code development engine 114 can be programmed to update the build code 112 to correct coding errors, and the code runtime simulation engine 122 can be programmed to update the build code 112 to correct coding failures. The system 100 can be configured to provide updated build code 118 in which coding errors and / or coding failures (e.g., failures, error conditions, undesirable behaviors, etc.) have been corrected.

[0032] In some examples, the updated program code or updated build code 118 may be employed in a program code environment. By way of example, the program code environment may correspond to a system, such as a computing system, which may be part of a larger system, such as an aircraft. Once deployed in the program code environment, the system 100 may employ the environment interface module 124 to receive an executed version of the updated program code or updated build code 118. In some examples, the performance (e.g., behavior) of the updated program code or updated build code 118 may change, such as in examples where the updated program code employs an ML or AI algorithm. Because the performance of the updated program code or updated build code 118 may change when the updated program code or updated build code 118 is executed, the safety risk of the updated program code or updated build code 118 may change.

[0033] The environment interface module 124 can be programmed to receive or retrieve an executed version of updated program code or updated build code 118 corresponding to the released program code 126. The environment interface module 124 can be programmed to provide the released program code 126 to the code runtime simulation engine 122 for simulation to determine whether the released program code 126 includes coding faults (e.g., faults that reduce the acceptability of a post-release version of the program code 126). In some examples, the environment interface module 124 can include a decompiler to convert the released program code 126 from machine code to programming language code for processing by the code runtime simulation engine 122.

[0034] In some examples, coding failures in the released program code 126 can be corrected by the code runtime simulation engine 122 to provide updated released program code in the same or similar manner as described herein with respect to the build code 112. The build code output module 120 can be programmed to evaluate the updated released program code in the same or similar manner as described herein with respect to the updated build code 118 to determine whether the updated released program code is acceptable for use (e.g., in the program code environment).

[0035] The build code output module 120 can be programmed to alert a user on the output device 116 whether the updated released program code is acceptable. The build code output module 120 can be programmed, for example, to update the program code model 110 and / or the program code 106 in response to determining that the updated field program code is acceptable for use to employ the updated released program code to reflect corrections of one or more coding failures in the released program code 126 made by the code runtime simulation engine 122. In some examples, the build code output module 120 can be programmed to communicate with a computing system on which the released program code 126 is stored for execution and update the released program code 126. Thus, in some examples, the system 100 can update the released program code 126 to correct failures identified by the code runtime simulation engine 122 when the released program code 126 resides on a computing system (e.g., of an aircraft).

[0036] In some examples, the build code output module 120 can be programmed to generate graphical user interface (GUI) data for display on the output device 116 performance parameters that can be aggregated to calculate and display a current confidence level corresponding to a risk probability that the updated build code 118 can achieve an acceptably safe CSCI with an acceptable risk. The performance parameters can be calculated by the system 100, such as based on performance data provided by each of the code development engine 114 and / or the code runtime simulation engine 122 as these engines are executing.

[0037] The types of performance parameters displayed on the output device 116 can be based on the corresponding build or program code and / or the application in which such code is employed. For example, the performance parameters can include a number of successful simulations (e.g., implemented by the code runtime simulation engine 122), a distribution of nominal and off-nominal simulations, a number of defects found in the build code 112, a type of defect in the build code 112, decision points requiring user input with respect to the build code 112 (e.g., to eliminate dead code or to prove that there is no jump to dead code but preserve decoding), an assessment of the risk that the build code 112 will execute as specified, an assessment of the risk that the build code 112 will not execute as specified or will create a harmful or dangerous situation, an estimate of the amount of time that may be required to achieve a user-defined risk level, and / or hazard risk drivers (e.g., memory constraints, throughput, excess dead code, excess code standard violations, etc.). Additionally, the build code output module 120 can be programmed to display assurance compliance metrics at different levels of code development, including the unit level, computer software unit level, and computer software configuration unit (CSCU) on the output device 116. Thus, an individual user or team can visualize safety performance metrics indicative of reliability in any particular code that the individual or team has been assigned to develop.

[0038] Accordingly, the system 100 may be employed to evaluate the program code 106 during different stages of development (e.g., planning, analysis, design, implementation, and / or testing and integration stages) to verify or certify that the program code 106 is acceptable (e.g., safe for use). The system 100 may be configured to evaluate the program code 106 for coding errors, correct the coding errors or alert a user on an output device 116 regarding the coding errors, and in some examples provide solutions for correcting the coding errors. In some examples, the system 100 may be configured to simulate the program code 106 during or after program code development to identify coding failures in the program code 106. The system 100 may be configured to correct the coding failures or alert a user on an output device 116 regarding the coding failures, and in some examples provide solutions for correcting the coding failures.

[0039] Thus, the system 100 allows a user to evaluate program code 106 for acceptability (e.g., safety risk) at any time during development. Thus, a user can field subject target computer software configuration items (CSCIs) during development at any time. Thus, the system 100 allows incremental quantitative assessment of real-time program code. Thus, the system 100 can reduce software certification time (e.g., to deterministically quantify the confidence that the code will execute as intended in a safe manner) and cost, improve the accuracy and confidence that program code is acceptable, reduce the amount of time for recertifying program code after changes and / or modifications, certify legacy code as acceptable, and certify program code employing ML / AI techniques.

[0040] FIG. 2 illustrates an example of a code runtime simulation engine 200. In some examples, the code runtime simulation engine 200 may be employed within the system 100 and thus may correspond to the code runtime simulation engine 122 as shown in FIG. 1. Thus, in some examples, reference may be made to the example of FIG. 1 in the following description of the example of FIG. 2. The code runtime simulation engine 122 may be programmed to simulate a build code 202 (e.g., the build code 112 as shown in FIG. 1) to discover code failures (e.g., weaknesses, anomalies, defects, and / or the like) in the build code 202 corresponding to a respective build of the program code 106. The code runtime simulation engine 200 may be programmed to receive the build code 202 during or after the development lifecycle of the program code, process the build code 202, and simulate the performance of the build code 202 under nominal, off-nominal, and stress conditions to determine the acceptability of the program code 106.

[0041] In some cases, it is desirable for the program code 106 to be readily available for use, but the program code 106 may not have been formally certified (e.g., via an existing evidence-based process for program code certification), and thus it is unclear how acceptable and therefore safe the program code is for use in the respective program code environment. Users, entities, and / or organizations may not want to employ uncertified program code in certain computing systems due to legal risks that such program code may pose to the users and / or entities, or due to a lack of assurance that uncertified program code is safe for use. For example, in some commercial and military flight applications, it may be desirable to use the program code 106 before it has been formally certified as acceptable and therefore safe for use in safety-critical systems. However, because a user or entity does not have a level of assurance that the program code 106 is acceptable until it has been formally certified according to an existing program code certification standard, which is a time-consuming and subjective process, the program code 106 cannot be employed in the corresponding flight application (e.g., in a fighter aircraft) until the formal certification process is complete.

[0042] To overcome these challenges, the code runtime simulation engine 200 may be employed to evaluate the program code 106 prior to and / or during a formal certification process to determine whether each build of the program code 106 is acceptable. The code runtime simulation engine 200 may be programmed to simulate the build code 202 to determine whether each build of the program code 106 complies with a level of acceptable risk defined for the program code 106. Thus, the code runtime simulation engine 200 may be programmed to provide a level of assurance that the program code 106 complies with the amount of risk that a user and / or entity has determined to be permissible. In response, a user and / or entity may readily employ each build of the program code 106 in a program code application, such as an aviation application, while being assured that each build of the program code 106 is acceptable and therefore safe to use (e.g., will not cause failures that result in harm to property and / or human life).

[0043] In some examples, the code run-time simulation engine 200 may include a code run-time process and control (CRC) module 204. The CRC module 204 may be programmed to control a nominal simulation module 206, a stress simulation module 208, and a non-nominal simulation module 210 to simulate (e.g., in real-time) the performance of the build code 202. Each module 206, 208, and 210 may be programmed to model a respective program code environment for simulating the build code 202 to evaluate the behavior and / or performance of the build code 202. In some examples, the number of simulations for each of the modules 206, 208, and 210 may be determined by the CRC module 204 (e.g., based on user input information at an input device). In further examples, the type of simulation of the build code 202 may be determined by the CRC module 204.

[0044] As an example, the CRC module 204 can be programmed to provide the build code 202 to each of the simulation modules 206, 208, and 210 for simulation of the build code 202 and thus a respective build of the program code 106. Each simulation module 206, 208, and 210 can be programmed to simulate the build code 202 in a respective simulation environment (e.g., a modeled program code environment in which the program code 106 is used or being used) to determine or identify coding failures in the build code 202. The respective simulation environments modeled by each simulation module 206, 208, and 210 can be based on respective simulation parameter data 212, 214, and 216. Each simulation environment can correspond to a target or intended environment in which the program code 106 is to be employed. For example, if the program code 106 is used in a safety-critical system (e.g., an aircraft, a car, a weapons system, a medical device, a nuclear power plant, etc.), the simulation modules 206, 208, and 210 may model the safety-critical system and simulate the build code 202 in the modeled safety-critical system. Each of the simulation modules 206, 208, and 210 may be programmed to generate simulation result data 218, 220, and 222.

[0045] By way of example, the simulation result data 218, 220, and 222 may include the number of successful simulations, the distribution of nominal and off-nominal simulations, the number of defects found, the type of defects, decision points requiring user input with respect to the build code 202 (e.g., to eliminate dead code or to prove that decodes are preserved but there are no jumps to dead code), an assessment of the risk that the build code 202 will execute as specified, an assessment of the risk that the build code 202 will not execute as specified or will create harmful or dangerous conditions, an estimate of the amount of time that may be required to achieve a user-defined risk level, and / or hazard risk drivers (e.g., memory constraints, throughput, excess dead code, excess code standard violations, etc.). The simulation result data 218, 220, and 222 may be provided to the CRC module 204.

[0046] The CRC module 204 can be programmed to evaluate the simulation result data 218, 220, and 222 to identify coding failures in the build code 202, thereby identifying the respective builds of the program code 106. For example, when the build code 302 is subjected to runtime conditions (e.g., simulated by modules 206, 208, and / or 210), the CRC module 204 can be programmed to monitor the runtime conditions and predict potential anomalies based on the simulation result data 218, 220, and 222. As an example, if during runtime, slow or stale variable updates are discovered, the CRC module 204 can be programmed to identify the anomaly corresponding to the coding failure and the cause of the anomaly (e.g., slow or stale variable updates). In some examples, the CRC module 204 can be programmed to do one of automatically correcting the identified anomaly or requesting that a user correct the identified anomaly. In some examples, if the reason the variable updates are slow or stale is because the update task is set to a low priority, the CRC module 202 can be programmed (e.g., based on human-like learned history) to recommend a higher priority for the update task, such as based on recommendations from the coding failure update module 230, as described herein.

[0047] In some examples, the modeling resolution can be specified based on the modeling specificity data 224. The modeling specificity data 224 can identify a level of modeling detail for modeling the respective simulation environment that may cause one or more coding failures identified by the CRC module 204. Thus, in some examples, the resolution level of the modeled simulation environment can be based on the modeling specificity data 224. As an example, if the modeling specificity data 224 indicates that the aircraft's environment control system (ECS) is not modeled when validating the build code 202 in the aircraft environment, then at least one of the simulation modules 206, 208, and 210 can be programmed to model the aircraft environment with a safety-critical system for executing the program code without the ECS. In some examples, each of the simulation modules 206, 208, and 210 can be programmed to model its respective simulation environment according to a different degree of specificity based on the modeling specificity data 224.

[0048] In some examples, the CRC module 204 can be programmed to have the simulation modules 206, 208, and 210 simulate the build code 202 in a sequential or looped configuration, and following each module simulation, correct one or more coding failures identified by the respective simulation module prior to the subsequent module simulation. For example, if the CRC module 204 identifies a first set of coding failures in the build code 202 based on the simulation result data 218 provided by the nominal simulation module 206, the first set of coding failures in the build code 202 can be corrected prior to simulation of the build code 202 by the stress simulation module 208. In some examples, if the CRC module 204 identifies a second set of failures in the build code 202 based on the simulation result data 220 provided by the stress simulation module 208, the second set of failures in the build code 202 can be corrected prior to simulation of the build code 202 by the stress simulation module 206. In a further example, if the CRC module 204 identifies a third set of failures in the build code 202 based on the simulation result data 222 provided by the non-nominal simulation module 210, this third set of failures in the build code 202 may be corrected prior to simulation of the build code 202 by the nominal simulation module 206 in the same or similar manner as described herein.

[0049] As an example, the nominal simulation module 206 can be programmed to simulate the build code 202 in a respective modeled environment based on the nominal simulation parameter data 212. The nominal simulation parameter data 212 can be provided by an ML simulation parameter algorithm 226. The ML simulation parameter algorithm 226 can be programmed to provide (e.g., recommend) simulation parameters for each module 206, 208, and 210 to configure a respective simulation environment for the simulation of the build code 202. The ML simulation parameter algorithm 226 can be trained based on the simulation parameter training data.

[0050] In some examples, the nominal simulation parameter data 212 may include nominal condition data and / or parameters to model the respective environment according to the nominal conditions (e.g., normal operating conditions of the program code) under which the program code is to be simulated. In some examples, the nominal simulation parameter data 212 may characterize elements of the respective environment (e.g., aircraft application) such that elements of the system operate as designed and operational and environmental factors are as planned and predicted.

[0051] In some examples, the ML simulation parameter algorithm 226 can be programmed to determine the nominal simulation parameter data 212 based on a library of learned simulation parameters 228. The library of learned simulation parameters 228 can correspond to a library of simulation parameter knowledge developed based on previous simulation results. Thus, the library of learned simulation parameters can characterize previous simulation parameters (e.g., previous nominal, stress, and / or non-nominal simulation parameters) to constitute parameters of the modeled program code environment and simulation result data (e.g., whether previous simulation parameters recommended by the ML simulation parameter algorithm 226 resulted in a coding failure in the simulated program code).

[0052] Following each simulation (e.g., epic) by the nominal simulation module 206 based on the nominal simulation parameter data 212, the CRC module 204 can be programmed to store the simulation result data 218 and the nominal simulation parameter data 212 as part of a library of learned simulation parameters 228 so that for subsequent simulations, the ML simulation parameter algorithm 226 can provide updated nominal simulation parameter data. Thus, following each simulation, the CRC module 204 can be programmed to associate each identified failure with the nominal simulation parameter data 212 and store the association in or as part of the library of learned simulation parameters 228 so that the ML simulation parameter algorithm 226 can be re-implemented via unsupervised learning.

[0053] The ML simulation parameter algorithm 226 can be programmed to employ the re-implemented library of learned simulation parameters for subsequent determination (e.g., recommendations) of simulation parameters, which may be provided by the CRC module 204 to the nominal simulation module 206 as updated nominal simulation parameter data. The nominal simulation module 206 can be programmed to model the respective environment and simulate the build code 202 based on the updated nominal simulation parameter data to determine whether additional coding failures exist in the build code 202. If additional failures are found (e.g., by the CRC module 204), they can be handled in the same or similar manner as described herein. Thus, subsequent simulations in the nominal simulation module 206 can be modified based on previously learned events, such that the ML simulation parameter algorithm 226 can be programmed to identify nominal simulation parameters that are more likely to lead to further coding failures in the build code 202 in the nominal simulation module 206.

[0054] As a further example, the stress simulation module 208 can be programmed to simulate the build code 202 in each modeled environment based on the stress simulation parameter data 214. The stress simulation parameter data 214 can be provided by the ML simulation parameter algorithm 226. The stress simulation parameter data 214 can correspond to stress condition data and / or parameters (e.g., stress tests to create different scenarios that can be ramped up and monitored to ensure that timing requirements are still preserved for each code) for modeling each environment according to stress-affecting conditions under which the build code 202 is to be simulated. In some examples, the stress simulation parameter data 214 can characterize stress conditions that may act in each environment, some of which may affect the performance or behavior of the build code 202.

[0055] In some examples, the ML simulation parameter algorithm 226 can be programmed to determine the stress simulation parameter data 214 based on the library of learned simulation parameters 228. Following each simulation (e.g., epic) by the stress simulation module 208 based on the stress simulation parameter data 214, the CRC module 204 can be programmed to store the simulation result data 220 as part of the library of learned simulation parameters 228, so that for subsequent simulations, the ML simulation parameter algorithm 226 can provide updated stress simulation parameter data. Thus, following each simulation, the CRC module 204 can be programmed to associate each identified failure with the stress simulation parameter data 214 and store the association in or as part of the library of learned simulation parameters 228 so that the ML simulation parameter algorithm 226 can be re-run via unsupervised learning.

[0056] The ML simulation parameter algorithm 226 can be programmed to employ the re-implemented library of learned simulation parameters for subsequent determination (e.g., recommendations) of stress simulation parameters, which can be provided by the CRC module 204 to the stress simulation module 208 as updated stress simulation parameter data. The stress simulation module 208 can be programmed to simulate the build code 202 modeling the respective environment based on the updated stress simulation parameter data to determine whether additional coding failures exist in the build code 202. If additional coding failures are found (e.g., by the CRC module 204), they can be handled in the same or similar manner as described herein. Thus, subsequent simulations in the stress simulation module 208 can be modified based on previously learned events such that the ML simulation parameter algorithm 226 can be programmed to select or identify stress simulation parameters that are more likely to lead to further failures in the build code 202.

[0057] As a further example, the non-nominal simulation module 210 can be programmed to simulate the build code 202 in a respective modeled environment based on the non-nominal simulation parameter data 216. The non-nominal simulation parameter data 216 can be provided by the ML simulation parameter algorithm 226. The non-nominal simulation parameter data 216 can correspond to off-nominal data and / or parameters for modeling the respective environment according to random conditions that may affect the build code 202 during the simulation. In some examples, the non-nominal simulation parameter data 216 can characterize elements of the respective environment (e.g., aircraft application) such that elements of the system are operating as designed, but the operating and environmental factors are not as planned or predicted. For example, the off-nominal data and / or parameters can correspond to a negative attitude, and if a negative attitude is found as a result of the simulation, the code runtime simulation engine 200 can flag this as an off-nominal condition. Initial rules about what is off-nominal or non-nominal can be generated based on a library of learned simulation parameters 228. However, as the code runtime simulation engine 200 is exposed to more and more simulations where reports are provided to the user, and as the user defines additional off-nominal conditions, the code runtime simulation engine 200 can learn from this experience. Thus, the code runtime simulation engine 200 can conclude that if a negative altitude is abnormal, then a negative airspeed should also be abnormal, and a negative compass heading should also be an off-nominal abnormality.

[0058] In some examples, the ML simulation parameter algorithm 226 can be programmed to determine the non-nominal simulation parameter data 216 based on the library of learned simulation parameters 228. Following each simulation (e.g., EPIC) by the non-nominal simulation module 210 based on the non-nominal simulation parameter data 216, the CRC module 204 can be programmed to store the simulation result data 222 as part of the library of learned simulation parameters 228, such that for subsequent simulations, the ML simulation parameter algorithm 226 can be programmed to provide updated non-nominal simulation parameter data. Thus, following each simulation, the CRC module 204 can be programmed to associate each identified failure with the non-nominal simulation parameter data 216 and store the association within or as part of the library of learned simulation parameters 228 such that the ML simulation parameter algorithm 226 is re-performed via unsupervised learning.

[0059] In some examples, the ML simulation parameter algorithm 226 can be programmed to employ the reimplemented library of learned simulation parameters for subsequent determination (e.g., recommendations) of non-nominal simulation parameters, which may be provided by the CRC module 204 to the non-nominal simulation module 210 as updated non-nominal simulation parameter data. The non-nominal simulation module 210 can be programmed to simulate the build code 202 modeling the respective environment based on the updated non-nominal simulation parameter data to determine whether additional coding failures exist in the build code 202. If additional failures are found (e.g., by the CRC module 204), they can be handled in the same or similar manner as described herein. Thus, subsequent simulations in the non-nominal simulation module 210 can be modified based on previously learned events such that the ML simulation parameter algorithm 226 can be programmed to select or identify non-nominal simulation parameters that are more likely to lead to further coding failures in the build code 202 in the non-nominal simulation module 210.

[0060] While in the examples described herein a single ML simulation parameter algorithm and corresponding library of learned simulation parameters are employed for simulation parameter recommendations, in other examples a respective ML simulation parameter algorithm and library may be employed for each simulation module 206, 208, and 210. Thus, in some examples a first ML simulation parameter algorithm and a first library of learned simulation parameters may be employed to provide nominal simulation parameter data 212 for nominal simulation module 206, a second ML simulation parameter algorithm and a second library of learned simulation parameters may be employed to provide stress simulation parameter data 214 for stress simulation module 208, and a third ML simulation parameter algorithm and a third library of learned simulation parameters may be employed to provide non-nominal simulation parameter data 216 for non-nominal simulation module 210.

[0061] In some examples, if at least one failure is found by the CRC module 204 based on the respective simulation result data 218, 220, or 222, the CRC module 204 can be programmed to communicate with a code failure update (CFU) module 230. In some examples, the CFU module 230 can be programmed to communicate with a library of learned coding failure solutions 232. The library of learned coding failure solutions 232 can correspond to a library of developed code update knowledge. Thus, the library of learned coding failure solutions 232 can characterize previous code failure solutions (e.g., corrections, modifications, fixes, etc.) implemented by the CFU module 230. The library of learned coding failure solutions 232 can identify one or more previous coding failures in one or more previous build codes (e.g., associated with the program code 106 or other program code, the build code 202, and / or other build codes) and associated updates (e.g., solutions) to implement to correct the found failures.

[0062] The CFU module 230 can be programmed to query the library of learned coding failure solutions 232 based on the discovered failure to identify a failure correction solution for correcting the discovered failure. The CFU module 230 can be programmed to update the build code 202 to correct the discovered failure and provide an updated build code 234 based on the failure correction solution. Thus, in some examples, the discovered failure in the build code 202 can be updated by the CFU module 230 based on the library of learned coding failure solutions 232. In some examples, if the discovered failure is a new failure and therefore was not identified by the library of learned coding failure solutions 232, the CFU module 230 can be programmed to alert the user on the output device 116 (e.g., on a display accessible to the user) for manual correction of the discovered failure.

[0063] As a further example, the library of learned coding failure solutions 232 can be in communication with an ML code failure correction (ML-CFC) algorithm 236. In some examples, the ML-CFC algorithm 236 can include the library of learned coding failure solutions 232. The ML-CFC algorithm 236 can be programmed to identify corrections (e.g., solutions) for coding failures in the build code 202 based on the library of learned coding failure solutions 232. In some examples, the ML-CFC algorithm 236 can be programmed to identify failure correction solutions for correcting the discovered failures based on the library of learned coding failure solutions 232 to provide an updated build code 234.

[0064] In some examples, following each simulation by the corresponding simulation module 206, 208, and 210, the CFU module 230 can be programmed to provide an updated build code 234 to the CRC module 204 for a subsequent simulation by the corresponding simulation module 206, 208, and 210 or a different simulation module 206, 208, and 210. In some examples, the CRC module 204 can be programmed to evaluate the corresponding simulation result data 218, 220, and 222 to determine whether the coding failures have been corrected. The CFU module 230 can be programmed to update the library of learned coding failure solutions 232 to re-implement the ML-CFC algorithm 236 via unsupervised learning based on an evaluation of whether the failures have been corrected based on the failure correction solutions. In some examples, following each simulation by a corresponding simulation module 206, 208, and 210, the CFU module 230 can be programmed to provide an updated build code 234 to the CRC module 204 for subsequent simulation by the corresponding simulation module 206, 208, and 210 or a different simulation module 206, 208, and 210. Thus, the build code 202 can be updated to correct the coding failures, and the updated build code 234 can be simulated by the corresponding simulation module 206, 208, and 210 for additional coding failures based on updated simulation parameters provided by the ML simulation parameter algorithm 226.

[0065] In some examples, the CFU module 230 can be programmed to generate a code update request 238. The code update request 238 can identify the discovered failures. The code update request 238 can be provided to a user (e.g., on the output device 116) for manual updating (e.g., correcting) the build code 202 to provide an updated build code 234. For example, the CFU module 230 can include a GUI generator that can be programmed to provide GUI output data along with the code update request 238 on the output device 116. The GUI output data can include elements with which a user can interact to correct the discovered failures.

[0066] In some examples, the CRC module 204 can be programmed to generate code failure correction result data 240. The code failure correction result data 240 can indicate the types of coding failures and the numerical coding failures that have been corrected and / or not corrected in the build code 202. The CRC module 204 can be programmed to communicate the code failure correction result data 240 to the build code output module 120 for further processing, such as determining the acceptability of the updated build code 234 and thus the program code 106. Thus, the code runtime simulation engine 200 can be programmed to correct coding failures in the program code 106 during or after software development of the program code 106.

[0067] FIG. 3 illustrates an example of a code development engine 300. In some examples, the code development engine 300 may be employed within the system 100 and thus may correspond to the code development engine 114 illustrated in FIG. 1. Accordingly, in the following description of the example of FIG. 3, reference may be made to the examples of FIGS. 1-2. The code development engine 300 may be programmed to evaluate the program code 106 during development to determine whether the program code 106 meets development standards defined for the program code 106. Thus, based on the program code application (e.g., whether the program code 106 is to be used in a safety-critical environment such as an aircraft, a security-critical environment such as a banking system, etc.), the code development engine 300 may be programmed to evaluate the program code 106 during development and provide recommendations to one or more users or, in some examples, update the program code 106 to comply with the development standards.

[0068] In some examples, the code development engine 300 can be programmed to receive build code 302 for a respective build of the program code 106. The code development engine 300 can employ a code evaluation module 304. The code evaluation module 304 can be programmed to communicate with an ML development standard (ML-DS) algorithm 306. The ML-DS algorithm 306 can be trained based on development standard training data to determine whether the build code 302 complies with the build code development standard. In some examples, the ML-DS algorithm 306 is trained based on a build code standard for an entity, a group of users (e.g., developers), or a build code environment (e.g., aircraft application). The ML-DS algorithm 306 can be programmed to determine whether the build code 302 complies with the build code development standard based on a learned library of code development standards 308. The learned library of code development standards 308 can characterize the build code development standard. In some examples, the learned library of code development standards 308 can characterize best coding practices, which may include a set of rules for the development of the program code 106. Thus, in some examples, the build code development standards defined by the library of learned code development standards 306 can include specifications for the program code 106, one or more practices, tests, and / or standards for developing the program code 106. In additional examples, the build code development standards defined by the library of learned code development standards 306 can include correct, preferred, and / or software development practices related to reliability, robustness, security, and / or safety of the program code 106.

[0069] The ML-DS algorithm 306 can be programmed to evaluate the build code 302 for coding errors in the build code 302 based on the learned library of code development standards 306. The coding errors can include syntax errors, runtime errors, logic errors, merge errors, arithmetic errors, resource errors, interface errors, function errors, collisions, race conditions, variable assignment errors, buffer overruns, and the like. In some examples, the coding errors can include other software errors that may affect the safety of the build code 302 and thus the program code 106. The ML-DS algorithm 306 can be programmed to evaluate the build code 302 for known historical errors and / or undesirable characteristics based on the learned library of code development standards 308. For example, as learning increases, knowledge of undesirable characteristics can be increased. The build code 302 can be optimized to allow as much additional bandwidth as possible for CPU utilization. By way of example, code modules with more than one input and / or output may be undesirable. In some examples, user-modified configurable parameters related to safety-critical functions should not be permitted and may be undesirable unless privilege restrictions are established. The ML-DS algorithm 306 can be programmed to communicate each identified (e.g., discovered) coding error to the code evaluation module 304 for correction.

[0070] In some examples, the code evaluation module 304 can be programmed to communicate with a code update correction (CUC) module 310. The CUC module 310 can be programmed to receive coding error information identifying each discovered coding error in the build code 302. The CUC module 310 can be programmed to communicate with a ML code error correction (ML-CEC) algorithm 316. In some examples, the ML-CEC algorithm 316 can be in communication with a library of learned coding error solutions 312. The library of learned coding error solutions 312 can correspond to a library of developed code correction knowledge. Thus, the library of learned coding error solutions 312 can characterize previous error correction solutions (e.g., updates, modifications, fixes, etc.) for coding errors in the program code and / or the build code.

[0071] In some examples, the ML-CEC algorithm 316 can be programmed to identify (e.g., recommend) an error correction solution for correcting each discovered coding error in the build code 302 based on the library of learned coding corrections 312 to provide an updated build code 314. The CUC module 310 can be programmed to update the build code 302 to correct each discovered error and provide an updated build code 314 based on the identified error correction solution. Thus, the discovered coding errors in the build code 302 can be updated by the CUC module 310 based on the error correction solution recommended by the ML-CEC algorithm 316.

[0072] In some examples, if the discovered code error is a new coding error and therefore not identified by the library of learned coding error solutions 312, the CUC module 310 can be programmed to alert the user (e.g., on the output device 116) for manual correction of the new coding error. In some examples, the CUC module 310 can be programmed to alert the user on the output device 116 of an error correction solution for the discovered error, and the user can evaluate the error correction solution to determine whether to use the error correction solution to correct the discovered error or to employ an alternative error correction solution. In some examples, the code evaluation module 304 can be programmed to provide an updated build code 314 to the ML-DS algorithm 306. The ML-DS algorithm 306 can be programmed to evaluate the updated build code 314 for additional coding errors. In some examples, the corrected discovered error may cause the updated build code 314 to present additional coding errors. The ML-DS algorithm 306 can be programmed to discover additional coding errors for correction in the same or similar manner as described herein.

[0073] In some examples, the code evaluation module 304 can be programmed to provide an indication to the CUC module 310 of whether the discovered coding error was corrected. For example, if the ML-DS algorithm 306 does not identify the discovered error in evaluating the updated build code 314 for additional coding errors, the CUC module 310 can be programmed to enhance the training of the ML-CEC algorithm 316 for future coding error corrections. The CUC module 310 can be programmed to update the library of learned coding error solutions 312 to include error correction solutions for the discovered coding errors as the ML-CEC algorithm 316 is re-implemented via unsupervised learning.

[0074] In some examples, the code evaluation module 304 can be programmed to communicate the build code 302 to a static code testing module 318. The static code testing module 318 can be programmed to apply static analysis techniques to examine the build code 302 (e.g., without executing the build code 302). The static code testing module 318 can be programmed to evaluate the build code 302 to determine whether the build code 302 contains programming errors, whether it violates coding standards (e.g., whether the build code 302 violates coding formats defined for the build code 302, such as the number of indentations in various constructs, the use of spaces / tabs, and / or the like), whether it has undefined values, syntax violations, security vulnerabilities, and / or the like.

[0075] The static code testing module 318 can be programmed to communicate static code evaluation coding error information to the code evaluation module 304 that characterizes coding errors in the build code 302 identified based on the static code analysis. The coding errors in the build code 302 identified based on the static code analysis can be referred to as statically identified coding errors. The code evaluation module 304 can be programmed to update the library of learned code development standards 308 based on the static code evaluation coding error information such that the library of learned code development standards 308 is re-implemented via unsupervised learning. Thus, the library of learned code development standards 308 can be updated to include static code testing rules based on the statically identified coding errors such that the ML-DS algorithm 306 can be programmed to identify (e.g., find) the statically identified coding errors in subsequent build code standard development evaluations.

[0076] In some examples, the code evaluation module 304 can be programmed to communicate the statically identified coding errors to the CUC module 310. The CUC module 310 can be programmed to employ an ML-CEC algorithm 316 to identify an error correction solution based on the library of learned coding error solutions 312 to provide an updated build code 314. The CUC module 310 can be programmed to update the build code 302 to correct the statically identified coding errors in the build code 302 based on the error correction solution and provide the updated build code 314. In some examples, the CUC module 310 can be programmed to alert a user on the output device 116 regarding the statically identified coding errors and allow the user to correct the build code 302 to correct the statically identified coding errors, such that an updated build code 314 is provided. In a further example, the CUC module 310 can be programmed to output the error correction solution on an output device to assist the user in correcting the statically identified coding errors.

[0077] In some examples, the code evaluation module 304 can be programmed to provide an indication to the CUC module 310 of whether the statically identified coding errors in the build code 302 have been corrected. For example, if the ML-DS algorithm 306 does not identify the statically identified coding errors in a subsequent evaluation of the updated build code 314 (e.g., for coding errors), the CUC module 310 can be programmed to enhance the training of the ML-CEC algorithm 316. The CUC module 310 can be programmed to update the library of learned coding error solutions 312 to include the statically identified coding errors such that the training of the ML-CEC algorithm 316 is re-performed via unsupervised learning.

[0078] In some examples, the code evaluation module 304 can be programmed to communicate the build code 302 to the code coverage testing module 320. The code coverage testing module 320 can be programmed to apply code coverage analysis techniques to examine the build code 302 based on the test cases and determine the amount of the build code 302 that was or was not exercised during execution of the build code 302. Each test case can be stored in a library of learned test cases 322. Each test case stored in the library of learned test cases 322 can identify inputs, execution conditions, test procedures, and / or expected outcome specifications for the build code 302 to achieve a test objective (e.g., to exercise a particular program path or to verify compliance with a specification requirement). In some examples, the library of learned test cases can include formally defined test cases to verify that requirements of the build code 302 are met and / or informally defined test cases to verify that the build code 302 is operating as expected as a similar class of build code.

[0079] The code coverage testing module 320 can be programmed to evaluate (e.g., monitor) the build code 302 during execution according to respective test cases from the library of learned test cases 322. The code coverage testing module 320 can be programmed to provide code coverage report data. The code coverage report data may include function coverage information (e.g., how many functions in the build code 302 were executed), statement coverage information (e.g., how many statements in the build code 302 were executed), branch coverage information (e.g., how many branches in the build code 302 were executed), condition coverage information (e.g., how many Boolean expressions in the build code 302 were tested for true and false values), line coverage information (e.g., how many lines of code in the build code 302 were tested), modified condition / decision coverage (MCDC), edge coverage (e.g., how many edges of a control flow graph were executed), and the like.

[0080] The code coverage testing module 320 can be programmed to communicate the code coverage report data to the code evaluation module 304. The code evaluation module 304 can be programmed to identify a first set of anomalies (e.g., one or more anomalies) in the build code 302 based on the code coverage report data. The first set of anomalies can be evaluated by the code evaluation module 304 against an error anomaly database to identify coding errors that cause the anomalies in the build code 302. The coding errors that cause the anomalies in the build 302 can be referred to as code coverage identified coding errors.

[0081] As an example, the code evaluation module 320 can be programmed to perform a continuous "statement coverage" assessment of the build code 302 during development or at any point in the evaluation process where a user makes a request to the system for risk assessment. When the code evaluation module 320 performs a continuous "statement coverage" assessment of the build code 320, dead code can be discovered. The CUC module 310 can be programmed to remove the dead code followed by a simulation to ensure there is no functional impact. In some examples, the code evaluation module 320 can be programmed to choose to ensure there are no jumps to dead code. The code evaluation module 320 can be programmed to report to the user via the output device 116 the choice of either removing the dead code or keeping the dead code based on the confidence that all jumps to the dead code have been eliminated. The code evaluation module 320 can be programmed to remember the user decision and store it in the library of learned coding error solutions 312. When evaluating future dead code evaluations via statement coverage, the code evaluation module 320 learns that the user prefers to remove the dead code rather than retain the code with the confidence that the jumps have been removed. Thus, the code evaluation module 320 now knows to detect and eliminate dead code as the program code 106 changes (e.g., evolves).

[0082] The coding anomaly database can identify anomalies and respective coding errors that may cause the identified anomalies. The code evaluation module ↓ 304 can be programmed to update the learned library of code development standards 308 to include code coverage test rules based on the code coverage identified coding errors so that the learned library of code development standards 308 is re-implemented via unsupervised learning. Thus, the ML-DS algorithm 306 can be programmed to identify (e.g., find) code coverage identified coding errors in the build code (e.g., of the program code or a different program code) based on the code coverage test rules.

[0083] In some examples, the code evaluation module 304 can be programmed to communicate the code coverage identified coding errors to the CUC module 310. The CUC module 310 can be programmed to employ an ML-CEC algorithm 316 to identify error correction solutions to the code coverage identified coding errors based on a library of learned coding corrections 312 to provide an updated build code 314. In some examples, the CUC module 310 can be programmed to alert a user on the output device 116 regarding the code coverage identified coding errors and allow the user to correct the build code 302 to correct the code coverage identified coding errors, thus providing an updated build code 314. In a further example, the CUC module 310 can be programmed to output the error correction solutions on the output device 116 to assist the user in correcting the code coverage identified coding errors.

[0084] In some examples, the code evaluation module 304 can be programmed to provide an indication to the CUC module 310 of whether the code coverage identified coding errors in the build code 302 have been corrected. For example, if the ML-DS algorithm 306 does not identify the code coverage identified coding errors in a subsequent evaluation of the updated build code 314 (e.g., for coding errors), the CUC module 310 can be programmed to enhance the training of the ML-CEC algorithm 316. The CUC module 310 can be programmed to update the library of learned coding error solutions 312 to include the code coverage identified coding errors such that the training of the ML-CEC algorithm 316 is re-performed via unsupervised learning.

[0085] In some examples, the code evaluation module 304 can be programmed to test the behavior of the build code 302 to identify (e.g., find) coding anomalies in the build code 302. For example, if the code evaluation is for, e.g., safety-critical code, the determinism and timing of the output can be considered by the code evaluation module 304. As a result, the code evaluation module 304 can be programmed to apply tests and evaluate the results of each test to ensure that the deterministic aspects of the code output are guaranteed. In another example, if the objective of the code is target acquisition, the accuracy can be considered by the code evaluation module 304. As a result, the code evaluation module 304 can be programmed to ensure that the target acquisition has a low level of ambiguity and that the confidence of the accurate target is at an acceptable level.

[0086] In some examples, the behavior of the build code 302 can be tested by the code evaluation module 304 based on test cases from the library of learned test cases 322. Based on the ML, the code evaluation module 304 can be programmed to understand which tests must be performed to provide the user with confidence that the SW is acceptably secure. When presented with new code being evaluated that is associated with target acquisition, the code evaluation module 304 knows, based on the ML history (e.g., the library of learned test cases 322), that the target acquisition system will typically be exposed to a set of tests. The code evaluation module 304 can be programmed to determine that additional tests are necessary to obtain a required level of confidence, and then add these additional tests to the library of learned test cases 322.

[0087] The code evaluation module 304 can be programmed to generate test case result data that characterizes a behavior of the build code 302 according to at least one test case. The code evaluation module 304 can be programmed to evaluate the test case result data to identify a second set of anomalies (e.g., one or more anomalies) in the build code 302 based on the test case result data. The second set of anomalies can be evaluated by the code evaluation module 304 against an error anomaly database to identify coding errors that cause the anomalies in the build code 302. The coding errors caused by the second set of anomalies can be referred to as test case identified coding errors.

[0088] For example, once a test is introduced and executed, subsequent simulations are performed by the code evaluation module 304 to determine the effectiveness of the test. If the evolution of the test successfully eliminates some of the detections, the code evaluation module 304 can know the effectiveness of the test and can apply it as a learned epic and add it to the library of learned test cases 322. If other tests provide no or little benefit, the code evaluation module 304 can be programmed to place these tests at a lower priority. As a result, the code evaluation module 304 can be programmed to learn that certain tests provide a large benefit and should be run at a higher priority than tests that provide a lower benefit. In some examples, the code evaluation 304 is programmed to run the highest priority tests first to reduce risk as much as possible and report the results to the user on the output device 116. In some examples, if the user desires more assurance reliability, lower priority tests can be run to eliminate corner case anomalies.

[0089] The code evaluation module 304 can be programmed to update the library of learned code development standards 308 based on the test case identified coding error information as the library of learned code development standards 308 is re-implemented via unsupervised learning. Thus, the library of learned code development standards 308 can be updated to include test case rules based on the test case identified coding errors such that the ML-DS algorithm 306 can be programmed to identify (e.g., find) the test case identified coding errors in a subsequent build code standards development evaluation.

[0090] In some examples, the code evaluation module 304 can be programmed to communicate the test case identified coding errors to the CUC module 310. The CUC module 310 can be programmed to employ an ML-CEC algorithm 316 to identify error correction solutions to the test case identified coding errors based on a library of learned coding corrections 312 to provide an updated build code 314. In some examples, the CUC module 310 can be programmed to alert a user on the output device 116 regarding the test case identified coding errors and allow the user to correct the build code 302 to correct the test case identified coding errors, thus providing an updated build code 314. In a further example, the CUC module 310 can be programmed to output the error correction solutions on the output device 116 to assist the user in correcting the test case identified coding errors.

[0091] In some examples, the code evaluation module 304 can be programmed to provide an indication to the CUC module 310 of whether the test case identified coding errors in the build code 302 have been corrected. For example, if the ML-DS algorithm 306 does not identify the test case identified coding errors in a subsequent evaluation of the updated build code 314 (e.g., for coding errors), the CUC module 310 can be programmed to enhance the training of the ML-CEC algorithm 316. The CUC module 310 can be programmed to update the library of learned coding error solutions 312 to include the test case identified coding errors such that the training of the ML-CEC algorithm 316 is re-performed via unsupervised learning.

[0092] In some examples, the code evaluation module 304 can be programmed to communicate with the ML test case generator 324. The ML test case generator 324 can be programmed to recommend test cases for testing the behavior of the build code 302 based on the library of learned test cases 322. The ML test case generator 324 can be programmed to provide test cases to the code evaluation module 304 for testing the behavior of the build code 302 as described herein. Thus, the code evaluation module 304 can be programmed to generate test case data characterizing the behavior of the build code data 302 according to each test case recommended by the ML test case generator 324. The test cases identified by the ML test case generator 324 can be employed to test the behavior of the build code 302 to discover coding anomalies in the build code 302 as described herein. The ML test case generator 324 can be enhanced to identify tests that are more likely to lead to further anomalies in the build code 302. Thus, the test recommendation quality of the ML test case generator 324 can improve following each test recommendation to more effectively identify tests that are more likely to lead to anomalies in the build code 302, thereby increasing the level of acceptability of the program code.

[0093] As a further example, the code evaluation module 304 can be programmed to generate code error correction result data 326. The code error correction result data 326 can indicate the types and numeric coding errors that were corrected and / or uncorrected in the build code 302. The code evaluation module 304 can be programmed to communicate the code error correction data 326 to the build code output module 120 for further processing, such as determining the acceptability of the updated build code 314, and thus the program code 106, as described herein.

[0094] Thus, the code development engine 300 can be programmed to correct coding errors during development of the program code 106. In some examples, the code development engine 300 can alert a user on the output device 116 regarding the coding errors and provide an error correction solution for correcting the coding errors in the program code 106. The coding development engine 300 can be configured to assist a user (e.g., a developer) of the program code 106 to ensure that the program code 106 complies with development standards defined for the program code 106, thereby improving the coding quality of the program code 106. Furthermore, correcting coding errors in the program code 106 during development allows for earlier deployment of the program code 106.

[0095] FIG. 4 illustrates an example of a build code output module 400. In some examples, the build code output module 400 may correspond to the build code output module 120 as shown in FIG. 1. Therefore, in the following description of the example of FIG. 4, reference may be made to the examples of FIGS. 1 to 3. The build code output module 400 may include an acceptability determination module 402 and a program code update module 404. The acceptability determination module 402 may be programmed to receive code failure correction result data 406 and code error correction result data 408. The code failure correction result data 406 may correspond to the code failure correction result data 240 illustrated in FIG. 2. The code error correction result data 408 may correspond to the code failure error result data 326 illustrated in FIG. 3.

[0096] The acceptability determination module 402 can be programmed to evaluate the updated build code 410 to determine whether the updated build code 410 is acceptable for deployment (e.g., safer for use). The updated build code 410 can correspond to the updated build code 118, as shown in FIG. 1. Thus, in some examples, the updated build code 410 can include changes to the build code 112 made by the code development engine 114 and / or the code runtime simulation engine 122, as shown in FIG. 1. In some examples, the updated build code 410 can correspond to the updated build code 234, as shown in FIG. 2, or the updated build code 314, as shown in FIG. 3. The acceptability determination module 402 can be programmed to receive acceptable risk data 412. The acceptable risk data 412 can indicate a level of risk that a user has determined to be acceptable for the updated build code 410. For example, the risk level can correspond to a value or probability that a user has deemed acceptable for the updated build code 410.

[0097] In some examples, the acceptability determination module 402 can be programmed to update the code acceptability criteria thresholds based on the type of coding defect found (e.g., failures and / or errors) and whether the identified coding defects in the build code 202 were corrected based on the code failure correction data 406 and / or the code error correction data 408. The acceptability determination module 402 can be programmed to evaluate the type of coding defect against the coding defect condition list 414 to identify a respective coding defect value. The acceptability determination module 402 can be programmed to update the code acceptability criteria thresholds based on the respective code defect values. In some examples, the coding defect condition list 414 can include categories for the type of coding defect and associate each category coding defect with a coding defect value.

[0098] By way of example, the coding fault condition list 414 may include a catastrophic failure category, a dangerous failure category, a major failure category, a minor failure category, and / or a non-consequential failure category. The catastrophic failure category may correspond to a catastrophic failure in the respective build code that may cause a crash or loss of life. The dangerous failure category may correspond to a dangerous failure in the respective build code that may degrade the ability of the system (e.g., an aircraft) or the operator of the system to operate properly, thus affecting the safety or at least performance of the system. The major failure category may correspond to a major failure in the respective build code that may have less impact than a dangerous failure, but is critical in nature or at least may significantly degrade the functionality of the system. The minor failure category may correspond to a minor failure in the corresponding build code that may have less impact on the system than a major failure, but is noticeable in the performance of the system. The non-consequential failure category may correspond to a non-consequential failure that does not affect the safety of the system, the operation of the system, or the workload of the system operator.

[0099] As discussed above, each category failure type is associated with a coding defect value. A failure category having a greater impact on the safety of a system (e.g., an aircraft) may have a greater defect value than a failure category having a reduced impact on the safety of the system. For example, a coding defect value for a catastrophic failure category may be greater than a coding defect value for a major failure category, which may be greater than a coding defect value for a hazardous failure category. A major failure category may have a greater coding defect value than a minor category failure, which has a greater coding defect value than a non-impact failure category. In some examples, the coding defect condition list 414 may include a logic error failure category, a syntax failure category, a semantic error category, a run-time failure category, and / or similar error coding categories, each of which may be associated with a respective coding defect value.

[0100] In some examples, the acceptability determination module 402 can be programmed to update the code acceptability criteria threshold to a new value based on the coding defect value from the coding defect condition list 414. This updating of the code acceptability criteria threshold can include multiplying, dividing, subtracting, or adding the coding defect value to the code acceptability criteria threshold to provide an updated code acceptability criteria threshold. For example, once catastrophic, dangerous, and / or severe failures in the build code 112 are corrected to provide an updated build code 410, the code acceptability criteria threshold can be updated to reflect the acceptability of the updated build code 410. In some examples, the code acceptability criteria threshold can be equal to or greater than a level of risk that a user has determined to be acceptable for the updated build code 410 as defined by the acceptable risk data 412. The acceptability determination module 402 can be programmed to provide acceptability indication data 416 indicating that the updated build code 410 is acceptable for use in a program code environment, such as a safety-critical application. The acceptability determination module 402 can be programmed to communicate acceptability indication data 416 to the output device 116 to alert a user that the updated build code 410 corresponding to the respective build of the program code 106 is acceptable for use (e.g., safer for use).

[0101] In some examples, the acceptability determination module 402 can be programmed to receive safety goal data 418. The acceptability determination module 402 can be programmed to calculate a risk probability that the updated build code 410 complies with a safety requirement or goal of the program code 106 based on the safety goal data 418. In some examples, the acceptability determination module 402 can be programmed to evaluate the updated build code 410 for compliance with a safety or goal for the program code 106 based on the safety goal data 418. The acceptability determination module 402 can be programmed to evaluate the risk probability against a level of acceptable risk defined by a user and / or entity to determine whether the updated build code 410 is acceptable. In some examples, the acceptability determination module 402 can be programmed to alert a user on the output device 116 that the updated build code 410 is acceptable for the respective build of the program code 106. In some examples, the acceptability determination module 402 can be programmed to provide the risk probability as acceptability display data 416 on the output device 116 to provide a user with an indication of the safety risk of the updated build code 410.

[0102] In some examples, the acceptability determination module 402 can be programmed to communicate with the program code update module 404 to modify the program code 106 to provide an updated program code 410. The program code update module 404 can be programmed to employ the updated build code 410 to update the program code model 110 or the program code 106. Thus, once the coding errors are corrected by the code development engine 114 to provide an updated build code 410, the program code update module 404 can be programmed to update the program code model 110 or the program code 106 to correct these coding errors in the program code 106. In some examples, once the coding failures are corrected by the code runtime simulation engine 122 to provide an updated build code 410, the program code update module 404 can be programmed to update the program code model 110 or the program code 106 to correct the program code 106 for these coding failures in the program code 106. In some examples, the program code update module 404 can be programmed to provide (e.g., to a user) the updated build code 410 as updated program code 410. Thus, the program code update module 404 can be programmed to interface with a development system to provide the updated program code 410.

[0103] In response, the build code output module 400 can be programmed to determine whether the updated build code 410 is acceptable and therefore, in some examples, safer for use in a safety-critical application. In some examples, the build code output module 400 can be programmed to update the program code 106 as one or more users are developing the program code 106 to correct defects (e.g., failures and / or errors) in the program code 106 identified by the code development engine 114 and / or the code runtime simulation engine 122, thereby improving the program code quality (e.g., the functional and structural quality of the program code 106).

[0104] With the foregoing structural and functional features in mind, the exemplary method may be better appreciated with reference to Figures 5-6. For purposes of simplicity of explanation, the exemplary method of Figures 5-6 is shown and described as being performed sequentially, however, it should be understood and appreciated that the exemplary method is not limited by the order shown, as some operations may, in other examples, occur in different orders, multiple times, and / or in parallel with those shown and described herein.

[0105] FIG. 5 illustrates an example of a method 500 for program error correction and acceptability determination. The method 500 may be implemented by the system 100 as shown in FIG. 1. Accordingly, in the following description of the example of FIG. 5, reference may be made to the examples of FIGS. 1-3. The method 500 may begin at 502 by providing a build code (e.g., build code 112 as shown in FIG. 1) that may represent the program code (e.g., program code 106 as shown in FIG. 1) at a stage during software development of the program code. At 504, the build code may be evaluated (e.g., by the coding development engine 114 as shown in FIG. 1) based on a library of learned coding development standards (e.g., library of learned coding development standards 308 as shown in FIG. 3) to identify coding errors in the build code. The library of learned coding development standards may characterize rules and / or constraints for software development of the program code.

[0106] At 506, an error correction solution for correcting the coding error may be recommended (e.g., by the ML-CEC algorithm 316 as shown in FIG. 3) based on the evaluation of the coding error and a library of learned coding error solutions (e.g., the library of learned coding error solutions 312 as shown in FIG. 3). The library of learned coding error solutions may characterize previous error correction solutions for the coding error in the program code and / or the build code. At 508, based on the error correction solution, the build code may be updated (e.g., by the CUC module 310 as shown in FIG. 3) to correct the coding error in the build code. At 510, in response to correcting the coding error in the build code, a determination may be made (e.g., by the acceptability determination module 402 as shown in FIG. 4) as to whether the build code is acceptable for use in the program code environment for the program code based on a level of acceptable risk for the build code (e.g., as defined by the acceptable risk data 412 as shown in FIG. 4).

[0107] FIG. 6 illustrates an example of a method 600 for program error correction and acceptability determination. The method 600 may be implemented by the system 100 as shown in FIG. 1. Thus, in the following description of the example of FIG. 6, reference may be made to the examples of FIGS. 1-4. The method 600 may begin at 602 by receiving (e.g., in the code runtime simulation engine 122 as shown in FIG. 1) a build code that may represent the program code at a stage during software development of the program code or after software development (e.g., the program code 106 as shown in FIG. 1). The build code may correspond to the build code 112 as shown in FIG. 1. At 604, the build code may be simulated (e.g., by at least one of the nominal simulation module 206, the stress simulation module 208, and / or the non-nominal simulation module 210) in a modeled program code environment of the program code environment for the program code to determine behavior and / or performance of the build code.

[0108] At 606, behavior and / or performance of the build code may be evaluated (e.g., by CRC module 204 as shown in FIG. 1 ) to identify coding failures in the build code. At 608, a failure correction solution for correcting the coding failure may be identified (e.g., by ML-CFC algorithm 236 as shown in FIG. 2 ) based on the evaluation of the coding failure and a library of learned coding failure solutions characterizing previous failure correction solutions for the coding failures in the program code and / or build code. The library of learned coding failure solutions may correspond to library of learned coding failure solutions 232 as shown in FIG. 2 . At 610, the method 600 may include, in response to correcting the coding failures in the build code, determining (e.g., via acceptability determination module 402 as shown in FIG. 4 ) whether the build code is acceptable for use in the program code environment based on a level of acceptable risk for the build code (e.g., as defined by acceptable risk data 412 as shown in FIG. 4 ).

[0109] The above description is an example. Of course, it is not possible to describe every conceivable combination of components or methods, but one skilled in the art will recognize that many further combinations and permutations are possible. Accordingly, this disclosure is intended to embrace all such changes, modifications, and variations that are within the scope of this application, including the appended claims. As used herein, the term "comprises" means including, but not limited to, and the term "comprising" means including, but not limited to. The term "based on" means based at least in part on. Furthermore, when the disclosure or claims refer to "a," "an," "first," or "another" element, or the like, it should be construed as including one or more such elements, and does not require or exclude two or more such elements. The inventions disclosed herein include the following: [Aspect 1] 1. A system comprising: a memory for storing machine-readable instructions and data, said data including build code representing program code at a certain stage; one or more processors for accessing the memory and executing the machine-readable instructions, the machine-readable instructions comprising: a code development engine programmed to evaluate the built code to determine whether the built code complies with a program code development standard for the program code and to identify coding errors in the built code, the code development engine being programmed to recommend an error correction solution for correcting the built code for the coding errors; a code run-time simulation engine programmed to simulate the build code in a modeled program code environment for the program code to identify coding faults in the build code, and programmed to recommend fault-correction solutions for correcting the build code for the coding faults; and and a build code output module that is programmed to, in response to the coding errors and / or coding failures being corrected in the build code, evaluate the build code to determine whether the build code is acceptable for use in a program code environment based on a level of acceptable risk for the build code. [Aspect 2] Coding development engine, a machine learning development standards (ML-DL) algorithm programmed to identify the coding errors in the build code based on a library of learned coding development standards that characterize rules and / or constraints for software development of the program code; a ML-Code Error Correction (ML-CEC) algorithm programmed to recommend the error correction solution for correcting the coding error based on a library of learned coding error solutions characterizing previous error correction solutions to the coding error in the program code and / or build code; and a code update and correction (CUC) module programmed to correct the coding error in the build code based on the error correction solution. [Aspect 3] 3. The system of claim 2, wherein the coding development engine further comprises a static code testing module programmed to apply static analysis techniques to evaluate the build code to determine whether the build code contains a second coding error, the coding error being a first coding error, the ML-CEC algorithm programmed to recommend a second error correction solution for correcting the second coding error based on an evaluation of the second coding error and the learned library of coding error solutions, and the CUC module programmed to correct the second coding error in the build code based on the second error correction solution. [Aspect 4] said coding development engine comprising: a code coverage testing module programmed to apply code coverage analysis techniques to evaluate the build code based on test cases to determine an amount of the build code that has been exercised or not exercised during execution of the build code, and provide code coverage report data; and a code evaluation module programmed to identify anomalies in the build code based on the code coverage report data, and further programmed to identify a third coding error in the build code based on an evaluation of the identified anomalies and an error anomaly database. [Aspect 5] The system of aspect 4, wherein the ML-CEC algorithm is programmed to recommend a third error correction solution for correcting the third coding error based on the learned library of coding error solutions, and the CUC module is programmed to correct the third coding error in the build code based on the third error correction solution. [Aspect 6] The system of aspect 5, wherein the coding development engine further comprises an ML test case generator trained based on test case training data characterizing previous test cases employed to test behavior of previous program code and / or build code, the ML test case generator being programmed to provide the test cases. [Aspect 7] The code runtime simulation engine comprises at least one simulation module, the at least one simulation module comprising: generating a modeled program code environment of the program code environment for the program code based on simulation parameters; simulating the build code in the modeled program code environment; and 7. The system of claim 6, further comprising: a programmable logic unit configured to: output simulation result data characterizing behavior and / or performance of the build code based on the simulation of the build code in the modeled program code environment. [Aspect 8] the code runtime simulation engine comprises an ML simulation parameter algorithm programmed to recommend the simulation parameters for the at least one simulation module for configuring the modeled program code environment for simulation based on a library of learned simulation parameters, the library of learned simulation parameters characterizing prior simulation parameters for configuring the modeled program code environment; 8. The system of claim 7, wherein the code runtime simulation engine further comprises a code runtime process and control module programmed to evaluate simulation result data generated by the at least one simulation module to identify the coding failures in the build code. [Aspect 9] The code runtime simulation engine, a ML-Code Failure Correction (ML-CFC) algorithm programmed to recommend the failure correction solution for correcting the coding failure based on a library of learned coding failure solutions characterizing previous failure correction solutions to coding failures in the program code and / or build code; 9. The system of claim 8, further comprising: a code failure updating (CFU) module programmed to correct the coding failures in the build code based on the failure correction solutions. [Aspect 10] The system of aspect 9, wherein one of the code runtime process and control module and the code evaluation module is programmed to generate code defect correction result data indicative of types of coding defects and numerical coding defects that have been corrected and / or uncorrected in the built code, and wherein the build code output module comprises an acceptability determination module programmed to evaluate the code defect correction result data based on the level of acceptable risk of the built code to determine whether the built code is acceptable for use in the program code environment. [Aspect 11] the build code is one of evaluated by the coding development engine and simulated by the code run-time simulation engine as the program code is being developed; the build code is one of evaluated by the coding development engine and simulated by the code run-time simulation engine based on user-defined changes to the program code; and 11. The system of embodiment 10, wherein the program code is one of: corresponding to legacy program code. [Aspect 12] 12. The system of claim 11, wherein the machine-readable instructions further include an environment interface module programmed to receive or retrieve released program code corresponding to an acceptable version of the build code, the code runtime simulation engine programmed to simulate the released program code in the modeled program code environment to identify further coding faults in the build code, the code runtime simulation engine programmed to recommend another fault correction solution for correcting the released program code for other coding faults, and the build code output module programmed to evaluate the released program code to determine whether the released program code is acceptable for use in the program code environment. [Aspect 13] 1. A computer-implemented method comprising: providing build code representing a program code at a stage during software development of the program code; evaluating the build code based on a library of learned coding development standards characterizing rules and / or constraints for the software development of the program code to identify coding errors in the build code; recommending an error correction solution for correcting the coding error based on an evaluation of the coding error and a library of learned coding error solutions characterizing previous error correction solutions for coding errors in the program code and / or build code; updating the build code based on the error correction solution to correct the coding error in the build code; and in response to correcting the coding error in the build code, determining whether the build code is acceptable for use in a program code environment for the program code based on a level of acceptable risk for the build code. [Aspect 14] 14. The computer-implemented method of claim 13, wherein determining whether the built code is acceptable for use in the program code environment includes evaluating code error correction result data based on the level of acceptable risk for the built code to determine whether the built code is acceptable for use in the program code environment, the code error correction result data indicating types of coding errors and numeric coding errors that have been corrected and / or not corrected in the built code. [Aspect 15] applying static analysis techniques to evaluate the built code to determine whether the built code includes a second coding error, wherein the coding error is a first coding error; and recommending a second error correction solution for correcting the second coding error based on an evaluation of the second coding and the learned library of coding error solutions, the error correction solution being the first error correction solution; and 15. The computer-implemented method of claim 14, further comprising: updating the build code based on the second error correction solution to correct the second coding error in the build code. [Aspect 16] applying a code coverage analysis technique to evaluate the build code based on test cases to determine an amount of the build code that was exercised or not exercised during execution of the build code to provide code coverage report data; identifying anomalies in the build code based on the code coverage report data; identifying a third coding error in the build code based on an evaluation of the identified anomalies and an error anomaly database; recommending a third error correction solution for correcting the third coding error based on an evaluation of the third coding error and the learned library of coding error solutions; and

[0023] Aspect 16. The computer-implemented method of aspect 15, further comprising: updating the build code based on the third error correction solution to correct the third coding error in the build code. [Aspect 17] simulating the build code in a modeled program code environment for the program code based on simulation parameters, the simulation parameters being recommended by an ML simulation parameter algorithm based on a library of learned simulation parameters, the library of learned simulation parameters characterizing prior simulation parameters for configuring parameters of the modeled program code environment; outputting simulation result data characterizing behavior and / or performance of the build code based on the simulation of the build code in the modeled program code environment; evaluating the simulation result data to identify coding errors in the build code; 17. The computer-implemented method of claim 16, further comprising: using the ML technique to identify a failure-correction solution for correcting the coding failure based on an evaluation of the coding failure and a library of learned coding failure solutions characterizing previous failure-correction solutions for coding failures in the program code and / or build code, wherein the determination of whether the build code is acceptable for use in the program code environment is in response to correcting the coding errors and coding failures in the build code. [Aspect 18] 1. A computer-implemented method comprising: receiving build code representing a program code at a stage during or after software development of the program code; simulating the build code in a program code environment modeled after a program code environment for the program code to determine behavior and / or performance of the build code; evaluating the behavior and / or performance of the build code to identify coding failures in the build code; identifying a failure correction solution for correcting the coding failure based on an evaluation of the coding failure and a library of learned coding failure solutions characterizing previous failure correction solutions for the coding failure in the program code and / or build code; and in response to correcting the coding failure in the built code, determining whether the built code is acceptable for use in the program code environment based on a level of acceptable risk for the built code. [Aspect 19] 20. The computer-implemented method of claim 18, wherein the modeled program code environment is generated based on simulation parameters recommended by an ML simulation parameter algorithm, the ML simulation parameter algorithm being programmed to recommend the simulation parameters based on a library of learned simulation parameters, the library of learned simulation parameters characterizing prior simulation parameters for configuring the modeled program code environment. [Aspect 20] 20. The computer-implemented method of claim 18, wherein determining whether the built code is acceptable for use in the program code environment includes evaluating code failure correction result data based on the level of acceptable risk for the built code to determine whether the built code is acceptable for use in the program code environment, wherein the code failure correction result data indicates types of coding failures and numeric coding failures that are corrected and / or uncorrected in the built code.

Claims

1. 1. A system comprising: a memory for storing machine-readable instructions and data, said data including build code representing program code at a certain stage; one or more processors for accessing the memory and executing the machine-readable instructions, the machine-readable instructions comprising: a code development engine programmed to evaluate the built code to determine whether the built code complies with a program code development standard for the program code and to identify coding errors in the built code, the code development engine being programmed to recommend an error correction solution for correcting the built code for the coding errors; a code run-time simulation engine programmed to simulate the build code in a modeled program code environment for the program code to identify coding faults in the build code, and programmed to recommend fault-correction solutions for correcting the build code for the coding faults; and and a build code output module that is programmed to, in response to the coding errors and / or coding failures being corrected in the build code, evaluate the build code to determine whether the build code is acceptable for use in a program code environment based on a level of acceptable risk for the build code.

2. Coding development engine, a machine learning development standard (ML-DL) algorithm programmed to identify the coding errors in the build code based on a library of learned coding development standards that characterize rules and / or constraints for software development of the program code; an ML-CEC algorithm programmed to recommend an error correction solution for correcting a coding error based on a library of learned coding error solutions characterizing previous error correction solutions to the coding error in a program code and / or a build code; 2. The system of claim 1, comprising: a code update and correction (CUC) module programmed to correct the coding errors in the build code based on the error correction solution.

3. 3. The system of claim 2, wherein the coding development engine further comprises a static code testing module programmed to apply static analysis techniques to evaluate the built code to determine whether the built code contains a second coding error, the coding error being a first coding error, the ML-CEC algorithm programmed to recommend a second error correction solution for correcting the second coding error based on the evaluation of the second coding error and the learned library of coding error solutions, and the CUC module programmed to correct the second coding error in the built code based on the second error correction solution.

4. said coding development engine comprising: a code coverage testing module programmed to apply code coverage analysis techniques to evaluate the build code based on test cases to determine an amount of the build code that has been exercised or not exercised during execution of the build code, and provide code coverage report data; 4. The system of claim 3, further comprising: a code evaluation module programmed to identify anomalies in the build code based on the code coverage report data, and further programmed to identify a third coding error in the build code based on an evaluation of the identified anomalies and an error anomaly database.

5. 5. The system of claim 4, wherein the ML-CEC algorithm is programmed to recommend a third error correction solution for correcting the third coding error based on the learned library of coding error solutions, and the CUC module is programmed to correct the third coding error in the build code based on the third error correction solution.

6. 6. The system of claim 5, wherein the coding development engine further comprises an ML test case generator trained based on test case training data characterizing previous test cases employed to test behavior of previous program code and / or build code, the ML test case generator being programmed to provide the test cases.

7. The code run-time simulation engine comprises at least one simulation module, the at least one simulation module comprising: generating a modeled program code environment of the program code environment for the program code based on simulation parameters; simulating the build code in the modeled program code environment; and 7. The system of claim 6, programmed to output simulation result data characterizing behavior and / or performance of the build code based on the simulation of the build code in the modeled program code environment.

8. the code runtime simulation engine comprises an ML simulation parameter algorithm programmed to recommend the simulation parameters for the at least one simulation module for configuring the modeled program code environment for simulation based on a library of learned simulation parameters, the library of learned simulation parameters characterizing prior simulation parameters for configuring the modeled program code environment; 8. The system of claim 7, wherein the code runtime simulation engine further comprises a code runtime process and control module programmed to evaluate simulation result data generated by the at least one simulation module to identify the coding failures in the build code.

9. The code runtime simulation engine, an ML-Code Failure Correction (ML-CFC) algorithm programmed to recommend the failure correction solution for correcting the coding failure based on a library of learned coding failure solutions characterizing previous failure correction solutions to coding failures in the program code and / or build code; 10. The system of claim 8, further comprising: a code failure update (CFU) module programmed to correct the coding failures in the build code based on the failure correction solutions.

10. 10. The system of claim 9, wherein one of the code runtime process and control module and the code evaluation module is programmed to generate code defect correction result data indicative of types of coding defects and numerical coding defects that have been corrected and / or uncorrected in the built code, and the built code output module comprises an acceptability determination module programmed to evaluate the code defect correction result data based on the level of acceptable risk of the built code to determine whether the built code is acceptable for use in the program code environment.

11. the build code is one of evaluated by the coding development engine and simulated by the code run-time simulation engine as the program code is being developed; the build code is one of evaluated by the coding development engine and simulated by the code run-time simulation engine based on user-defined changes to the program code; and The system of claim 10 , wherein the program code is one of: corresponding to legacy program code.

12. 12. The system of claim 11, wherein the machine-readable instructions further include an environment interface module programmed to receive or retrieve released program code corresponding to an acceptable version of the build code, the code runtime simulation engine programmed to simulate the released program code in the modeled program code environment to identify additional coding faults in the build code, the code runtime simulation engine programmed to recommend another fault correction solution for correcting the released program code for other coding faults, and the build code output module programmed to evaluate the released program code to determine whether the released program code is acceptable for use in the program code environment.

13. 1. A computer-implemented method, comprising: receiving build code representing a program code at a stage during or after software development of the program code; simulating the build code in a program code environment modeled after a program code environment for the program code to determine behavior and / or performance of the build code; evaluating the behavior and / or performance of the build code to identify coding failures in the build code; identifying a failure correction solution for correcting the coding failure based on an evaluation of the coding failure and a library of learned coding failure solutions characterizing previous failure correction solutions for the coding failure in the program code and / or build code; and in response to correcting the coding failure in the built code, determining whether the built code is acceptable for use in the program code environment based on a level of acceptable risk for the built code.

14. 14. The computer-implemented method of claim 13, wherein the modeled program code environment is generated based on simulation parameters recommended by an ML simulation parameter algorithm, the ML simulation parameter algorithm being programmed to recommend the simulation parameters based on a library of learned simulation parameters, the library of learned simulation parameters characterizing prior simulation parameters for configuring the modeled program code environment.

15. 14. The computer-implemented method of claim 13, wherein determining whether the built code is acceptable for use in the program code environment comprises evaluating code failure correction result data based on the level of acceptable risk for the built code to determine whether the built code is acceptable for use in the program code environment, the code failure correction result data indicating types of coding failures and numeric coding failures that are corrected and / or uncorrected in the built code.

Citation Information

Patent Citations

  • Result product review support device

    JP2011081496A

  • Method and apparatus for porting source code

    JP2015026365A

  • Automatic correction device

    JP2018163432A

  • Test case generation device, test case generation method, and test case generation program

    WO2019142266A1