SPARK User's Guide Logo
27.0w
  • 1. Getting Started with SPARK
  • 2. Introduction
  • 3. Installation of GNATprove
  • 4. Identifying SPARK Code
  • 5. Overview of SPARK Language
  • 6. SPARK Tutorial
  • 7. Formal Verification with GNATprove
    • 7.1. How to Run GNATprove
    • 7.2. How to View GNATprove Output
      • 7.2.1. The Analysis Report Panel
      • 7.2.2. The Analysis Results Summary File
      • 7.2.3. Results in SARIF format
      • 7.2.4. Categories of Messages
      • 7.2.5. Errors and Completeness of Analysis
      • 7.2.6. Effect of Mode on Output
      • 7.2.7. Description of Messages
        • 7.2.7.1. Messages reported by Proof
        • 7.2.7.2. Messages reported by Flow Analysis
        • 7.2.7.3. Miscellaneous warnings reported by GNATprove
        • 7.2.7.4. Errors Related To Annotations
        • 7.2.7.5. Error Messages For SPARK Violations
      • 7.2.8. Understanding Counterexamples
    • 7.3. How to Use GNATprove in a Team
    • 7.4. How to Write Subprogram Contracts
    • 7.5. How to Write Object Oriented Contracts
    • 7.6. How to Write Package Contracts
    • 7.7. How to Write Loop Invariants
    • 7.8. How to Investigate Unproved Checks
    • 7.9. GNATprove by Example
  • 8. Applying SPARK in Practice
  • A. Command Line Invocation
  • B. Alternative Provers
  • C. Project Attributes
  • D. Implementation Defined Pragmas
  • E. Additional Annotate Pragmas
  • F. Environment Variable
  • G. GNATprove Limitations
  • H. Portability Issues
  • I. Semantics of Floating Point Operations
  • J. SPARK Architecture, Quality Assurance and Maturity
  • K. GNU Free Documentation License
  • Index
  • SPARK User's Guide
    • 7. Formal Verification with GNATprove
    • 7.2. How to View GNATprove Output
    • 7.2.7.4. Errors Related To Annotations
    • View page source

    7.2.7.4. Errors Related To Annotations

    The following table shows all annotation types and the corresponding error messages.

    Error Tag

    Annotation

    Description

    incorrect-use-of-gnatprove

    GNATprove

    incorrect use of pragma Annotate (GNATprove, …)

    incorrect-use-of-false_positive

    False_Positive

    incorrect use of pragma Annotate (GNATprove, False_Positive, …)

    incorrect-use-of-intentional

    Intentional

    incorrect use of pragma Annotate (GNATprove, Intentional, …)

    incorrect-use-of-at_end_borrow

    At_End_Borrow

    incorrect use of pragma Annotate (GNATprove, At_End_Borrow, …)

    incorrect-use-of-automatic_instantiation

    Automatic_Instantiation

    incorrect use of pragma Annotate (GNATprove, Automatic_Instantiation, …)

    incorrect-use-of-container_aggregates

    Container_Aggregates

    incorrect use of pragma Annotate (GNATprove, Container_Aggregates, …)

    incorrect-use-of-handler

    Handler

    incorrect use of pragma Annotate (GNATprove, Handler, …)

    incorrect-use-of-hide_info

    Hide_Info

    incorrect use of pragma Annotate (GNATprove, Hide_Info, …)

    incorrect-use-of-higher_order_specialization

    Higher_Order_Specialization

    incorrect use of pragma Annotate (GNATprove, Higher_Order_Specialization, …)

    incorrect-use-of-inline_for_proof

    Inline_For_Proof

    incorrect use of pragma Annotate (GNATprove, Inline_For_Proof, …)

    incorrect-use-of-iterable_for_proof

    Iterable_For_Proof

    incorrect use of pragma Annotate (GNATprove, Iterable_For_Proof, …)

    incorrect-use-of-logical_equal

    Logical_Equal

    incorrect use of pragma Annotate (GNATprove, Logical_Equal, …)

    incorrect-use-of-mutable_in_parameters

    Mutable_In_Parameters

    incorrect use of pragma Annotate (GNATprove, Mutable_In_Parameters, …)

    incorrect-use-of-no_bitwise_operations

    No_Bitwise_Operations

    incorrect use of pragma Annotate (GNATprove, No_Bitwise_Operations, …)

    incorrect-use-of-no_wrap_around

    No_Wrap_Around

    incorrect use of pragma Annotate (GNATprove, No_Wrap_Around, …)

    incorrect-use-of-ownership

    Ownership

    incorrect use of pragma Annotate (GNATprove, Ownership, …)

    incorrect-use-of-predefined_equality

    Predefined_Equality

    incorrect use of pragma Annotate (GNATprove, Predefined_Equality, …)

    incorrect-use-of-skip_flow_and_proof

    Skip_Flow_And_Proof

    incorrect use of pragma Annotate (GNATprove, Skip_Flow_And_Proof, …)

    incorrect-use-of-skip_proof

    Skip_Proof

    incorrect use of pragma Annotate (GNATprove, Skip_Proof, …)

    incorrect-use-of-unhide_info

    Unhide_Info

    incorrect use of pragma Annotate (GNATprove, Unhide_Info, …)

    incorrect-use-of-always_return

    Always_Return

    incorrect use of pragma Annotate (GNATprove, Always_Return, …)

    incorrect-use-of-external_axiomatization

    External_Axiomatization

    incorrect use of pragma Annotate (GNATprove, External_Axiomatization, …)

    incorrect-use-of-might_not_return

    Might_Not_Return

    incorrect use of pragma Annotate (GNATprove, Might_Not_Return, …)

    incorrect-use-of-terminating

    Terminating

    incorrect use of pragma Annotate (GNATprove, Terminating, …)

    Previous Next

    © Copyright 2011-2026, AdaCore and Capgemini Engineering.

    Built with Sphinx using a theme provided by Read the Docs.