Adacovex.Parsers.GNATprove¶
Parse a gnatprove.out file, extracting VC counts per check type. Reads the GNATprove summary table and populates the Proof_Summary record with proved/unproved VC counts per category. @param File_Path Path to gnatprove.out. @param Summary Output proof summary record. @param Success True if file was parsed successfully.
Note: All items in this package are public.
Functions¶
function Determine_SPARK_Level (Summary : Adacovex.Types.Proof_Summary) return Adacovex.Types.SPARK_Level [Post] [Global] [SPARK]¶
Parameter |
Description |
|---|---|
|
Proof summary with VC counts per category. |
Returns: Derived SPARK_Level (Stone through Platinum).
function Find_Prove_Output (Target_Dir : Standard.String) return Standard.String [Pre]¶
Parameter |
Description |
|---|---|
|
Root directory to inspect. |
Returns: Path to a discovered gnatprove.out, or “”.
Procedures¶
procedure Parse_Prove_From_Project (Target_Dir : Standard.String; Summary : Adacovex.Types.Proof_Summary; Success : Standard.Boolean) [Pre]¶
Parameter |
Description |
|---|---|
|
True if gnatprove.out was found and parsed. |
|
Output proof summary record. |
|
Project root directory. |
procedure Parse_Prove_JSON (File_Path : Standard.String; Summary : Adacovex.Types.Proof_Summary; Success : Standard.Boolean) [Pre]¶
Parameter |
Description |
|---|---|
|
Path to GNATprove JSON results file. |
|
True if JSON was parsed successfully. |
|
Output proof summary record. |
procedure Parse_Prove_Out (File_Path : Standard.String; Summary : Adacovex.Types.Proof_Summary; Success : Standard.Boolean) [Pre]¶
Parameter |
Description |
|---|---|
|
Path to gnatprove.out. |
|
True if file was parsed successfully. |
|
Output proof summary record. |