-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration blocks in spthy files and a new default oraclename (#512)
* support for config blocks + new default oraclename Co-authored-by: Nick Moore <nicholas.moore@cs.ox.ac.uk> * set backup default oracle to ./oracle - adapted heuristic code to the tactic code - added backup default oracle code - improved the default oraclename code - adapted the terminal and Web client outputs - fixed bugs w.r.t. oracle name workdir and printed output * added configblock comparison to regressionTests.py * fixed errors resulting from the merge --------- Co-authored-by: Nick Moore <nicholas.moore@cs.ox.ac.uk> Co-authored-by: rkunnema <robert.kuennemann@cispa.de>
- Loading branch information
1 parent
fbf19d9
commit 662a857
Showing
20 changed files
with
500 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
case-studies-regression/fast-tests/features/configuration/configuration_analyzed.spthy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
theory TestConfiguration begin | ||
|
||
// Function signature and definition of the equational theory E | ||
|
||
functions: fst/1, pair/2, snd/1 | ||
equations: fst(<x.1, x.2>) = x.1, snd(<x.1, x.2>) = x.2 | ||
|
||
|
||
|
||
|
||
|
||
configuration: "--auto-sources --stop-on-trace=BFS" | ||
|
||
rule (modulo E) Testing: | ||
[ Fr( x ) ] --[ Test( x ) ]-> [ F1( x ) ] | ||
|
||
/* has exactly the trivial AC variant */ | ||
|
||
lemma test_lemma: | ||
exists-trace "∃ x #i. Test( x ) @ #i" | ||
/* | ||
guarded formula characterizing all satisfying traces: | ||
"∃ x #i. (Test( x ) @ #i)" | ||
*/ | ||
simplify | ||
SOLVED // trace found | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* All wellformedness checks were successful. */ | ||
|
||
/* | ||
Generated from: | ||
Tamarin version 1.7.1 | ||
Maude version 3.2.2 | ||
*/ | ||
|
||
end | ||
/* Output | ||
maude tool: 'maude' | ||
checking version: 3.2.2. OK. | ||
checking installation: OK. | ||
|
||
============================================================================== | ||
summary of summaries: | ||
|
||
analyzed: examples/features//configuration/configuration.spthy | ||
|
||
output: examples/features//configuration/configuration.spthy.tmp | ||
processing time: 0.03s | ||
|
||
test_lemma (exists-trace): verified (2 steps) | ||
|
||
============================================================================== | ||
*/ |
67 changes: 67 additions & 0 deletions
67
case-studies-regression/fast-tests/regression/trace/defaultoracle_analyzed-deforacle.spthy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
theory DefaultOracle begin | ||
|
||
// Function signature and definition of the equational theory E | ||
|
||
functions: fst/1, pair/2, snd/1 | ||
equations: fst(<x.1, x.2>) = x.1, snd(<x.1, x.2>) = x.2 | ||
|
||
|
||
|
||
heuristic: o "defaultoracle.oracle" s o "defaultoracle.oracle" p o "defaultoracle.oracle" | ||
|
||
rule (modulo E) Rule: | ||
[ ] --[ A( ) ]-> [ ] | ||
|
||
/* has exactly the trivial AC variant */ | ||
|
||
lemma Test1 [heuristic=s o "" i o "" o ""]: | ||
exists-trace "∃ #i. A( ) @ #i" | ||
/* | ||
guarded formula characterizing all satisfying traces: | ||
"∃ #i. (A( ) @ #i)" | ||
*/ | ||
simplify | ||
SOLVED // trace found | ||
|
||
lemma Test2: | ||
exists-trace "∃ #i #j. (A( ) @ #i) ∧ (A( ) @ #j)" | ||
/* | ||
guarded formula characterizing all satisfying traces: | ||
"∃ #i #j. (A( ) @ #i) ∧ (A( ) @ #j)" | ||
*/ | ||
simplify | ||
SOLVED // trace found | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* All wellformedness checks were successful. */ | ||
|
||
/* | ||
Generated from: | ||
Tamarin version 1.7.1 | ||
Maude version 3.2.2 | ||
*/ | ||
|
||
end | ||
/* Output | ||
maude tool: 'maude' | ||
checking version: 3.2.2. OK. | ||
checking installation: OK. | ||
|
||
============================================================================== | ||
summary of summaries: | ||
|
||
analyzed: defaultoracle.spthy | ||
|
||
output: defaultoracle.spthy.tmp | ||
processing time: 0.22s | ||
|
||
Test1 (exists-trace): verified (2 steps) | ||
Test2 (exists-trace): verified (2 steps) | ||
|
||
============================================================================== | ||
*/ |
59 changes: 59 additions & 0 deletions
59
case-studies-regression/features/configuration/configuration_analyzed.spthy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
theory TestConfiguration begin | ||
|
||
// Function signature and definition of the equational theory E | ||
|
||
functions: fst/1, pair/2, snd/1 | ||
equations: fst(<x.1, x.2>) = x.1, snd(<x.1, x.2>) = x.2 | ||
|
||
|
||
|
||
|
||
|
||
configuration: "--auto-sources --stop-on-trace=BFS" | ||
|
||
rule (modulo E) Testing: | ||
[ Fr( x ) ] --[ Test( x ) ]-> [ F1( x ) ] | ||
|
||
/* has exactly the trivial AC variant */ | ||
|
||
lemma test_lemma: | ||
exists-trace "∃ x #i. Test( x ) @ #i" | ||
/* | ||
guarded formula characterizing all satisfying traces: | ||
"∃ x #i. (Test( x ) @ #i)" | ||
*/ | ||
simplify | ||
SOLVED // trace found | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* All wellformedness checks were successful. */ | ||
|
||
/* | ||
Generated from: | ||
Tamarin version 1.7.1 | ||
Maude version 3.2.2 | ||
*/ | ||
|
||
end | ||
/* Output | ||
maude tool: 'maude' | ||
checking version: 3.2.2. OK. | ||
checking installation: OK. | ||
|
||
============================================================================== | ||
summary of summaries: | ||
|
||
analyzed: examples/features//configuration/configuration.spthy | ||
|
||
output: examples/features//configuration/configuration.spthy.tmp | ||
processing time: 0.03s | ||
|
||
test_lemma (exists-trace): verified (2 steps) | ||
|
||
============================================================================== | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
theory TestConfiguration | ||
configuration: "--auto-sources --stop-on-trace=BFS" | ||
begin | ||
rule Testing: | ||
[ Fr(x) ] | ||
--[ Test(x) ]-> | ||
[ F1(x) ] | ||
|
||
lemma test_lemma: | ||
exists-trace | ||
"Ex x #i. Test(x) @ i" | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/usr/bin/env python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
theory DefaultOracle | ||
begin | ||
|
||
heuristic: osopo | ||
rule Rule: | ||
[]--[A()]->[] | ||
|
||
lemma Test1 [heuristic=soioo]: | ||
exists-trace | ||
" Ex #i. A()@i" | ||
|
||
lemma Test2: | ||
exists-trace | ||
" Ex #i #j. A()@i & A()@j" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.