How Does MIL-STD-882E Handle Software Safety?
· Updated: · Go Komura · Software Safety, System Safety, MIL-STD-882E, Risk Assessment, Formal Verification, SPARK, Equipment Control
Revision history (first version, published Nov 14, 2026)
- First published
When you build software that drives equipment, it is hard to decide how far you need to examine each function. Analyzing every function to the same depth is not realistic, yet you also need grounds for deciding which ones can be examined less deeply.
MIL-STD-882E, the U.S. Department of Defense’s standard for system safety, has a way of deciding this. Instead of estimating the probability that software fails, it decides the depth of analysis and testing required from how much control the software has and from how severe the harm would be if a mishap occurred.
This article reads section 4.4 and Appendix B of MIL-STD-882E, which deal with software, and explains how to read the tables. The current version is Change 1, dated September 27, 2023. The content of section 4.4, Tables IV through VI and Appendix B covered in this article is substantively unchanged from the May 11, 2012 edition. What changed is that the reference for risk acceptance authority went from “DoDI 5000.02” to “the applicable DoDI 5000 series”, and that the definition numbers shifted by one. Section and definition numbers in this article are those of the 2012 edition.1 The content is a summary based on reading the published standard; the author has no hands-on experience performing safety assessments under this standard.
The eight elements of system safety
The title of MIL-STD-882E is “System Safety”. According to section 1, it is a standard that sets out the Department of Defense’s systems engineering approach for eliminating hazards where possible and minimizing risk where they cannot be eliminated. It covers hazards in systems, products, equipment and infrastructure, including both hardware and software, across the whole life from design to disposal.2
Section 4.3 divides the system safety process into eight elements.
The eight are: document the system safety approach; identify and document hazards; assess and document risk; identify and document risk mitigation measures; reduce risk; verify, validate and document risk reduction; accept risk and document; and manage life-cycle risk.
The standard lists these eight in order in Figure 1, and the text notes that iteration between steps may be necessary.3
flowchart TB
accTitle: The eight elements of system safety in MIL-STD-882E
accDescr: Shows the eight elements in order: document the approach, identify hazards, assess risk, identify mitigation measures, reduce risk, verify the reduction, accept risk, and manage it through the life cycle.
A["1. Document the approach"] --> B["2. Identify hazards"]
B --> C["3. Assess risk"]
C --> D["4. Identify mitigation measures"]
D --> E["5. Reduce risk"]
E --> F["6. Verify the reduction"]
F --> G["7. Accept risk"]
G --> H["8. Manage through the life cycle"]
Figure 1: The system safety process consists of eight elements.
In the diagram a solid line marks a relation that always holds and a dashed line marks a conditional one (the conditions are given per relation on the detail page). The full list of relations (4 in total, with evidence and certainty) and the definitions of the main concepts are collected on the knowledge map detail page (in Japanese). Data: JSON-LD / Turtle
Risk is expressed as a combination of severity and probability
The risk of a system as a whole, including its hardware, is expressed as a combination of the severity and the probability of a mishap. The severity categories are in Table I.4
| Severity | Category | Mishap result criteria (summary) |
|---|---|---|
| Catastrophic | 1 | Death, permanent total disability, irreversible significant environmental impact, monetary loss of $10M or more |
| Critical | 2 | Permanent partial disability, hospitalization of at least three personnel, reversible significant environmental impact, monetary loss of $1M or more but less than $10M |
| Marginal | 3 | Injury or illness resulting in one or more lost work days, reversible moderate environmental impact, monetary loss of $100K or more but less than $1M |
| Negligible | 4 | Injury or illness not resulting in a lost work day, minimal environmental impact, monetary loss of less than $100K |
The probability levels are in Table II: five levels from Frequent (A) to Improbable (E), plus Eliminated (F), which means the hazard no longer exists. A combination of severity and probability is a risk assessment code, and the risk assessment matrix in Table III assigns each one a risk level of High, Serious, Medium or Low. For example, Catastrophic and Frequent is High, and Negligible and Remote is Low.
flowchart TB
accTitle: How the risk of a system including hardware is determined
accDescr: Shows that the mishap severity category and the probability level are combined into a risk assessment code, and that the risk assessment matrix then gives a risk level of High, Serious, Medium or Low.
A["Severity category (Table I)"] --> C["Risk assessment code"]
B["Probability level (Table II)"] --> C
C --> D["Risk assessment matrix (Table III)"]
D --> E["Risk level: High, Serious, Medium, Low"]
Figure 2: The risk of a system is determined by combining severity and probability.
The probability of software failure is not estimated
For software, this method is not used as is. Section 4.4 says the following. Assessing the risk of software, and of the systems that software controls, cannot rely solely on severity and probability. Determining the probability of failure of a single software function is difficult at best and cannot be based on historical data. Software is generally application-specific, and its reliability parameters cannot be estimated in the same way as those of hardware.5
The standard therefore requires a different approach: one that considers the severity of a potential mishap and the degree of control the software exercises over the hardware.
flowchart TB
accTitle: The approach to assessing software's contribution to risk
accDescr: Shows that because the probability of a software function failing is hard to determine and cannot be based on historical data, the degree of software control is used instead of probability and combined with severity for the assessment.
A["The probability of software failure is hard to determine"] --> B["Use the degree of control instead of probability"]
C["Mishap severity"] --> D["Combine severity with the degree of control"]
B --> D
Figure 3: For software, the degree of control is used instead of probability.
Software control categories
The degree of control is divided into five levels by the “software control categories” (SCC) in Table IV. In summary, the definitions are as follows.6
| Level | Name | Description (summary) |
|---|---|---|
| 1 | Autonomous | Exercises autonomous control over safety-significant hardware, with no opportunity for predetermined safe detection and intervention to prevent a mishap |
| 2 | Semi-Autonomous | Exercises control over safety-significant hardware, but there is time for an independent safety mechanism to detect and intervene. Or, displays safety-significant information that requires the operator to take a predetermined action immediately |
| 3 | Redundant Fault Tolerant | Issues commands to safety-significant hardware, but completing a command requires action by a control entity. There are redundant, independent, fault-tolerant mechanisms for each hazardous condition. Or, generates safety-critical information used for critical decisions, with redundant, independent mechanisms |
| 4 | Influential | Generates safety-related information that an operator uses for decisions, but no operator action is required to avoid a mishap |
| 5 | No Safety Impact | Neither commands nor controls safety-significant hardware, and provides no safety-significant information |
The standard divides the terms into three. Anything related to a Catastrophic or Critical mishap is “safety-critical”, anything related to a Marginal or Negligible mishap is “safety-related”, and the two together are “safety-significant”. This article uses safety-critical, safety-related and safety-significant in these senses.
The difference between levels 1 and 2 is whether, when the software errs, there is time for an independent mechanism to detect it and stop it. Level 3 is the case where, for each hazardous condition, there is a redundant mechanism independent of the software, and action by a control entity comes in between. Software that generates safety-critical information used for critical decisions also falls into level 3 if there are redundant, independent mechanisms. The standard does not define a control entity. This article reads it as referring to an operator or a higher-level control mechanism. Level 4 is the case where the software only gives people safety-related information and no operator action is needed to avoid a mishap. A display where a mishap occurs unless the operator immediately takes a predetermined action falls into level 2.
When the author summarizes Table IV and arranges the levels from the strongest degree of control downward, the result is the following figure.
flowchart TB
accTitle: The five levels of software control categories
accDescr: Arranges the software control categories from the strongest degree of control downward, showing that at level 1 neither an independent mechanism nor a person has room to intervene, at level 2 an independent safety mechanism or the operator can respond, at level 3 there are redundant independent mechanisms, at level 4 the software only provides safety-related information, and at level 5 it neither controls anything safety-significant nor provides such information.
A["Level 1: no room for an independent mechanism or a person to intervene"] --> B["Level 2: an independent safety mechanism or the operator can respond"]
B --> C["Level 3: redundant independent mechanisms exist"]
C --> D["Level 4: only provides safety-related information"]
D --> E["Level 5: no safety-significant control or information"]
Figure 4: The higher the level number, the less safety-significant control the software holds.
Deciding the depth of analysis and testing from severity and control category
The “software safety criticality matrix” (SSCM) in Table V takes the control categories as rows and severity as columns, and assigns a “software criticality index” (SwCI) to each combination.7
| Control category | Catastrophic (1) | Critical (2) | Marginal (3) | Negligible (4) |
|---|---|---|---|---|
| 1 | SwCI 1 | SwCI 1 | SwCI 3 | SwCI 4 |
| 2 | SwCI 1 | SwCI 2 | SwCI 3 | SwCI 4 |
| 3 | SwCI 2 | SwCI 3 | SwCI 4 | SwCI 4 |
| 4 | SwCI 3 | SwCI 4 | SwCI 4 | SwCI 4 |
| 5 | SwCI 5 | SwCI 5 | SwCI 5 | SwCI 5 |
Each SwCI has a set of tasks to perform. The standard calls these “Level of Rigor (LOR) tasks”. LOR is the depth and breadth of analysis and verification needed to gain confidence that a safety-significant software function performs as required.
| SwCI | LOR tasks |
|---|---|
| SwCI 1 | Perform requirements, architecture, design and code analysis, and in-depth safety-specific testing |
| SwCI 2 | Perform requirements, architecture and design analysis, and in-depth safety-specific testing |
| SwCI 3 | Perform requirements and architecture analysis, and in-depth safety-specific testing |
| SwCI 4 | Perform safety-specific testing |
| SwCI 5 | Once the safety team assesses it as “Not Safety”, no safety-specific analysis or verification is required |
Only SwCI 1 requires analysis all the way down to the code. The analysis goes as far as the design at SwCI 2 and as far as the architecture at SwCI 3, and at SwCI 4 there is only testing.
The standard states clearly that this table is not a risk assessment. It looks like a risk assessment matrix, but what the SSCM decides is the minimum set of tasks needed to assess the software’s contribution to risk. Appendix B also says that, unlike the hardware risk index, a low index number does not imply that a design is unacceptable. What a low number indicates is that more resources must go into analysis and testing.8
flowchart TB
accTitle: How LOR tasks are determined from severity and control category
accDescr: Shows that the mishap severity and the software control category are applied to the software safety criticality matrix to determine the software criticality index, and that the LOR tasks set for that index are then performed.
A["Mishap severity"] --> C["Software safety criticality matrix (Table V)"]
B["Software control category (Table IV)"] --> C
C --> D["Software criticality index (SwCI)"]
D --> E["LOR tasks: scope of analysis and testing"]
Figure 5: The combination of severity and control category determines the scope of analysis and testing.
What happens when the tasks are not done
Table VI covers what happens when the specified LOR tasks are not performed. If the LOR tasks for SwCI 1 are not specified or not completed, the contribution to system risk is documented as High and referred to the program manager for a decision. The program manager’s role is to decide whether to commit resources to perform the tasks or to prepare a formal risk assessment for accepting the High risk, and to document that decision. For SwCI 2 it is Serious, for SwCI 3 Medium, and for SwCI 4 Low.9
You can skip analysis or testing, but what you skip is recorded as risk and referred for a decision on whether to accept it. It is a mechanism in which nothing can be skipped silently.
flowchart TB
accTitle: What happens when LOR tasks are not done
accDescr: Shows that if the LOR tasks are complete their results are used to manage risk, and if not they are documented as a risk level according to the software criticality index, after which the program manager decides whether to perform the tasks or to prepare a formal assessment toward accepting the risk, and documents that decision.
A["Are the LOR tasks complete?"] -->|"Complete"| B["Use the results to manage risk"]
A -->|"Not complete"| C["Document as a risk level according to the SwCI"]
C --> D["The program manager decides"]
D --> E["Perform the tasks"]
D --> F["Prepare an assessment to accept the risk"]
Figure 6: Whatever tasks are skipped are recorded as risk, and the person responsible decides.
How to proceed within development
Appendix B is guidance on the requirements of section 4.4. It is not a mandatory part of the standard. It describes how to proceed within development.10
The first step is a functional hazard analysis (FHA), which identifies the safety-significant functions (SSF). Next, each SSF is assigned a software control category, and together with severity, a SwCI. The last step is to perform the LOR tasks that correspond to the SwCI on the safety-significant software.
Each SSF is mapped to the software configuration items and code modules that implement it so that it can be traced. A SwCI is assigned to each safety-significant software function and to each of the requirements related to it. The appendix says that giving requirements that are not safety-significant a value of “Not Safety” as well creates a record that the safety team has assessed that function.
These criteria are supposed to be written into the Software Development Plan (SDP) and the Software Test Plan (STP) early in development. As covered in the article on the history of MIL standards (in Japanese), the development plan is the document in which the developer describes how the work will proceed and reaches agreement with the acquirer.
flowchart TB
accTitle: How Appendix B proceeds within development
accDescr: Shows that a functional hazard analysis identifies the safety-significant functions, each function is assigned a software control category, a software criticality index is assigned together with severity, and the LOR tasks for that index are written into the development plan and the test plan and performed.
A["Identify safety-significant functions with a functional hazard analysis"] --> B["Assign a control category to each function"]
B --> C["Assign a SwCI together with severity"]
C --> D["Write the LOR tasks into the development and test plans"]
D --> E["Perform the LOR tasks"]
Figure 7: Identify the safety-significant functions and decide the depth of work for each one.
Appendix B also gives examples of requirements and tasks to consider.
- Design requirements: fault-tolerant design, fault detection, isolation, annunciation and recovery, redundancy, independence, functional partitioning, physical partitioning, and so on
- Process tasks: design reviews, code walkthroughs, independent design and code reviews, SSF traceability, SSF code reviews, and so on
- Test tasks: SSF testing, functional thread testing, regression testing, failure modes and effects testing, out-of-bounds testing, safety-significant interface testing, commercial software input/output testing, and so on
The results of the tasks become the evidence that determines the software’s contribution to risk. Appendix B says that if the evidence is insufficient, or if there is evidence that the software safety program was not adequately performed, that should be assessed as risk.
Table B-I in Appendix B gives example criteria for determining the risk level of hazards caused by software. One of the criteria is the number of independent safeguards remaining before a mishap. When a software defect occurs, if no independent interlock is working to prevent a Catastrophic or Critical mishap, the level is High; if only one independent interlock or human action remains, it is Serious; if two remain, Medium; and if three remain, Low. Alongside these are the criteria that a defect leading directly to a Catastrophic or Critical mishap is High, and a defect leading directly to a Marginal or Negligible mishap is Serious.11
flowchart TB
accTitle: Risk levels in the example criteria of Table B-I
accDescr: Shows that when a software defect occurs, the level is High if no independent interlock remains to prevent a Catastrophic or Critical mishap, Serious if only one remains, Medium if two remain, and Low if three remain.
A["Number of independent safeguards remaining before a Catastrophic or Critical mishap"] -->|"None"| B["High"]
A -->|"One"| C["Serious"]
A -->|"Two"| D["Medium"]
A -->|"Three"| E["Low"]
Figure 8: In the Table B-I example, the risk level changes with the number of independent safeguards remaining before a mishap.
Changing the design changes the work required
From here on, this is the author’s view of what can be read from the standard’s tables.
Reading Tables IV and V together shows that the design governs the amount of analysis and testing. For a function that could lead to a Catastrophic mishap, a design in which the software controls it autonomously (level 1) gets SwCI 1, which requires analysis down to the code. For the same function, a design that has independent redundant mechanisms for each hazardous condition, with action by a control entity in between (level 3), gets SwCI 2, and the analysis goes as far as the design. In a design where an independent safety mechanism can merely intervene (level 2), the Catastrophic column stays at SwCI 1. The level 4 row is SwCI 3 in the Catastrophic column, but the definition of level 4 is the case where the software provides safety-related information (related to a Marginal or Negligible mishap). Whether a function related to a Catastrophic mishap fits this is something to confirm through hazard analysis.
This also matches the order of precedence for mitigation measures in section 4.3.4 of the standard. The first priority is to eliminate hazards through design selection. The second is to reduce risk through design changes, and the third is to incorporate engineered features or devices; warning devices and signage, procedures and training come after that.12
If you try to guarantee everything with software alone, the analysis required of the software is at its heaviest. Building into the design a redundant mechanism, independent of the software, for each hazardous condition can change the scope of the analysis required of the software.
flowchart TB
accTitle: Design and SwCI for a function that leads to a Catastrophic mishap
accDescr: Shows that for a function that could lead to a Catastrophic mishap, a design in which the software controls it autonomously and a design in which an independent safety mechanism can merely intervene both get SwCI 1 and require analysis down to the code, while a design with redundant independent mechanisms and action by a control entity for each hazardous condition gets SwCI 2, with analysis going as far as the design.
A["Function that could lead to a Catastrophic mishap"] --> B["Controls autonomously (level 1)"]
A --> H["An independent safety mechanism can intervene (level 2)"]
A --> C["Redundant independent mechanisms (level 3)"]
B --> E["SwCI 1: analysis down to the code"]
H --> E
C --> F["SwCI 2: analysis down to the design"]
Figure 9: Even at the same severity, the scope of analysis required changes with the design.
Code analysis and formal verification
The standard does not specify any particular technique for the “code analysis” required at SwCI 1. A note to Table V recommends referring to the Joint Software Systems Safety Engineering Handbook and AOP 52 for how to carry out the required software analysis. This article has not read those two documents.
The terms static analysis and formal verification do not appear in section 4.4 or Appendix B of MIL-STD-882E. What to use as the means of code analysis is decided per program in the development plan.
In KomuraSoft’s view, when choosing a means of code analysis, formal verification is a candidate alongside static analysis. Proving the absence of runtime errors with SPARK can handle input ranges that testing cannot fully examine. On the other hand, a proof guarantees only the properties that were proved. If hazard identification is wrong, even proven code can be the cause of a mishap. This is consistent with the standard’s explanation that both hazard analysis and LOR tasks are essential. The scope and limits of SPARK proofs are covered in Introduction to Formal Verification with SPARK and Proving Image Processing Free of Out-of-Bounds Access with SPARK.
flowchart TB
accTitle: The roles of hazard analysis and code analysis
accDescr: Shows that hazard analysis identifies which software functions cause hazards, that LOR tasks raise confidence that the identified functions perform as required, and that formal verification is one candidate means of code analysis within the LOR tasks.
A["Hazard analysis"] --> B["Identify which functions cause hazards"]
C["LOR tasks"] --> D["Raise confidence that the identified functions perform as required"]
D --> E["Candidate means of code analysis: static analysis, formal verification, etc."]
B --> C
Figure 10: Hazard analysis decides what to examine, and the LOR tasks examine it.
Applying this to apps that control equipment
Even in development unrelated to defense, the way the control categories are divided can be used as questions for sorting functions. Taking a Windows app that controls inspection or conveyor equipment as an example, you can ask the following.
- If this function malfunctions, could someone be injured, or could the equipment or product be damaged?
- If a software command is wrong, will a mechanism independent of the software (a hardware interlock, a safety relay, a limit switch and so on) stop it?
- Is there enough time before the independent mechanism stops it?
- Does the software drive the equipment, or does it only display information for a person to make a decision?
- Will a mishap occur unless the person who sees the display acts immediately? Is there an independent means of obtaining the same information?
The first question corresponds to severity, and the second through fifth correspond to the control category. If you tabulate the answers for each function, you can separate, as a rough guide based on applying this standard’s tables, the functions to examine down to the code, the functions to examine down to the design, and the functions that need only testing. The monetary amounts in the severity criteria are on the Department of Defense’s scale. The standard says the criteria can be tailored if formally approved.
flowchart TB
accTitle: How the questions for sorting functions map to the standard's tables
accDescr: Shows that the question about the harm when a function malfunctions corresponds to severity, the questions about independent mechanisms, time, and whether only information is provided correspond to the control category, and the two together give a rough guide to the scope of analysis and testing for each function.
A["Question about the harm from a malfunction"] --> C["Severity"]
B["Questions about independent mechanisms, time and information"] --> D["Control category"]
C --> E["Rough guide to the scope of analysis and testing per function"]
D --> E
Figure 11: The first question corresponds to severity, and the rest correspond to the control category.
However, industrial machinery and electrical/electronic safety-related systems each have their own safety standards. This article does not cover them, and MIL-STD-882E’s tables cannot be used to judge compliance with laws, regulations or standards. What is recommended here is using it as a way of thinking about sorting functions.
Summary
- MIL-STD-882E is the U.S. Department of Defense’s standard for system safety and covers hazards in both hardware and software.
- System risk is expressed as a combination of severity and probability, but because software assessment cannot rely solely on severity and probability, severity and the degree of software control are used.
- The degree of control is expressed by five software control categories: Autonomous, Semi-Autonomous, Redundant Fault Tolerant, Influential and No Safety Impact.
- The combination of severity and control category determines the software criticality index (SwCI), and each SwCI sets the scope of analysis and testing (the LOR tasks).
- If the LOR tasks are not performed, what was not done is documented as risk, and the program manager decides whether to perform the tasks or to prepare a formal assessment toward accepting the risk.
- Building into the design a redundant mechanism, independent of the software, for each hazardous condition can change the scope of the analysis required of the software.
Related articles
- How Have MIL Standards for Software Development Changed? (in Japanese)
- What Does DISA’s STIG for Application Development Ask of Developers? (in Japanese)
- Introduction to Formal Verification with SPARK
- How Ada and Rust Think About Safety
- What Does Common Criteria Ask of Windows App Developers? (in Japanese)
References
-
U.S. Department of Defense, MIL-STD-882E w/Change 1, System Safety (September 27, 2023; a copy on AcqNotes that was downloaded from ASSIST). Sections referred to: the cover page, “Summary of Change 1 Modifications”, 1.1, 3.2.19, 3.2.39, and 4.4.3 c. The text from section 4.4 through Table VI and of Appendix B was compared word by word with the 2012 edition, confirming that the only difference is the change to “applicable DoDI 5000 series”. ↩
-
U.S. Department of Defense, MIL-STD-882E, Department of Defense Standard Practice: System Safety. Sections referred to: the cover page (May 11, 2012; supersedes MIL-STD-882D) and 1.1 “Scope”. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 4.3 “System safety process” and Figure 1 “Eight elements of the system safety process”. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 4.3.3 “Assess and document risk”, Table I “Severity categories”, Table II “Probability levels”, and Table III “Risk assessment matrix”. ↩
-
U.S. Department of Defense, MIL-STD-882E. Section referred to: 4.4 “Software contribution to system risk”. Search phrase:
cannot rely solely on the risk severity and probability. ↩ -
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 3.2.38 “Software control category” (3.2.39 in Change 1), the term definitions in 3.2.31, 3.2.34 and 3.2.35 (3.2.32, 3.2.35 and 3.2.36 in Change 1), and Table IV “Software control categories”. The table content is the author’s summary. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 3.2.18 “Level of rigor (LOR)” (3.2.19 in Change 1), 4.4.2 “Software Safety Criticality Matrix”, and Table V “Software safety criticality matrix”. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 4.4.2 and Appendix B, B.2.2.3 “Software Safety Criticality Matrix (SSCM) tailoring”. Search phrase:
a low index number does not imply that a design is unacceptable. ↩ -
U.S. Department of Defense, MIL-STD-882E. Sections referred to: 4.4.3 “Assessment of software contribution to risk” and Table VI “Relationship between SwCI, risk level, LOR tasks, and risk”. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: Appendix B, B.1, B.2.2, B.2.2.1, B.2.2.2, B.2.2.4 and B.2.2.5. Appendix B is not a mandatory part of the standard; it is guidance. ↩
-
U.S. Department of Defense, MIL-STD-882E. Sections referred to: Appendix B, B.2.2.5 d, and Table B-I “Software hazard causal factor risk assessment criteria”. Table B-I is an example of criteria, and this article mainly takes up the part about the number of interlocks. ↩
-
U.S. Department of Defense, MIL-STD-882E. Section referred to: 4.3.4 “Identify and document risk mitigation measures”, items a through e. ↩
Related Articles
Recent articles sharing the same tags. Deepen your understanding with closely related topics.
Proving Image Processing Free of Out-of-Bounds Access with SPARK — Binarization, Smoothing, Labeling and a Speed Comparison with C
Proving with SPARK's GNATprove that image-processing code never reads or writes outside the image, using binarization, 3×3 smoothing and ...
How Ada and Rust Think About Safety — Comparing Types, Overflow, Ownership, Data Races, and Formal Verification by Running Them
Ada and Rust both put safety first, but they stop errors in different places. We compare value ranges, overflow, memory, data races, unch...
Proving AI-Written Code with SPARK ── Humans Write the Contracts, GNATprove Checks Them
We add preconditions and postconditions to Ada functions written by AI and prove them with GNATprove, using real output: how to read fail...
Introduction to Formal Verification with SPARK — From Ada Contracts to Mathematical Proof
A practical introduction to formal verification using the SPARK subset of Ada. Covers how to step up from contracts (Pre/Post) to proofs,...
Can Your Ada and SPARK Tests Notice Changes to the Code? ── Introducing AdaMutant
AdaMutant is a mutation testing tool for Ada and SPARK. It makes small changes to the source and checks whether your tests or GNATprove p...
Related Topics
These are topic pages close to this theme. Starting from the article, you can go on to related services and other articles.
Windows Technical Topics
Entry point collecting technical topics on Windows development, bug investigation, and use of existing assets.
Services Connected to This Topic
This article leads to the following service pages. Start from the entry point closest to your situation.
Technical Consulting & Design Review
For software that controls equipment, working out which functions could lead to a mishap and how much control the software has, and then deciding how deep the analysis and testing should go, can be handled as technical consulting and design review.
Windows App Development
Designing and implementing a Windows app that controls equipment, in a configuration that assumes an independent safety mechanism or confirmation by the user, can be carried out as Windows app development.
Frequently Asked Questions
Questions commonly asked at the time of consultation about the topic of this article.
- Does MIL-STD-882E require estimating the probability that software fails?
- No. Section 4.4 says that assessing software risk cannot rely solely on severity and probability. The reason given is that determining the probability of failure of a single software function is difficult and cannot be based on historical data. Instead, the depth of analysis and testing required is decided from the severity of the harm and the degree of control the software has over the hardware.
- If the Software Criticality Index (SwCI) number is low, does that mean the design is unacceptable?
- No, it does not mean that. Appendix B says that, unlike the hardware risk index, a low index number does not imply that the design is unacceptable. What a low number indicates is that more resources must go into analyzing and testing that software.
- Can the ideas in this standard be used in development unrelated to defense?
- The ideas can be used. If you separate whether the software drives the equipment autonomously, whether an independent safety mechanism sits in between, or whether the software only presents information for a person to decide on, it becomes easier to decide which functions to analyze in depth and which need only testing, as a rough guide based on applying this standard's tables. However, industrial machinery and similar fields have their own safety standards. This article does not cover them.
Author Profile
Profile page for the article author.
Go Komura
Representative of KomuraSoft LLC
Focused on Windows software development, technical consulting, and bug investigation, with particular strength in projects where existing assets remain and in investigating failures whose cause is hard to see.