-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctional_spark.gpr
More file actions
42 lines (36 loc) · 1.21 KB
/
functional_spark.gpr
File metadata and controls
42 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- ===========================================================================
-- Functional SPARK Verification Project
-- ===========================================================================
-- Standalone project for SPARK formal verification of the functional library.
-- No external dependencies required.
--
-- Usage:
-- cd test && alr exec -- gnatprove -P ../functional_spark.gpr --mode=check
--
-- Or for full proof:
-- cd test && alr exec -- gnatprove -P ../functional_spark.gpr --mode=prove --level=2
-- ===========================================================================
project Functional_SPARK is
for Source_Dirs use
("src",
"src/version",
"config",
"test/spark"); -- SPARK test instantiations
for Object_Dir use "obj/spark";
for Create_Missing_Dirs use "True";
package Compiler is
for Default_Switches ("Ada") use
("-gnat2022",
"-gnatwa",
"-gnatVa",
"-gnata");
end Compiler;
package Prove is
for Proof_Switches ("Ada") use
("--level=2",
"--timeout=30",
"--prover=cvc5,z3,altergo",
"--warnings=continue",
"--report=all");
end Prove;
end Functional_SPARK;