Skip to content

Commit

Permalink
Renaming SAPIC options for consistency. (tamarin-prover#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Künnemann <robert.kuennemann@cispa.saarland>
  • Loading branch information
rkunnema and Robert Künnemann committed Mar 8, 2023
1 parent 958f8b1 commit ef1c24a
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion etc/docker/res/proverif-tamarin-diff
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -x # print what we do
temp=$(mktemp -d)/$(basename "$1")
tamarin-prover "$1" --diff -m=proverifequiv > "$temp.pv"; proverif "$temp.pv"
tamarin-prover "$1" -m=proverifequiv > "$temp.pv"; proverif "$temp.pv"
4 changes: 2 additions & 2 deletions examples/sapic/export/5G_AKA/5G_AKA.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ functions:
KDF/2, // KDF --> K_ausf, K_seaf, XRES*
SHA256/2 // KDF --> HXRES*

options: enableStateOpt,
asynchronous-channels, compress-events,
options: translation-state-optimisation,
translation-asynchronous-channels, translation-compress-events,
translation-allow-pattern-lookups


Expand Down
2 changes: 1 addition & 1 deletion examples/sapic/export/ExistingSapicModels/AC.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builtins: dest-pairing, locations-report
functions: prog/3,list/2
heuristic: S

options: enableStateOpt
options: translation-state-optimisation

predicates:
Report(x,y) <=> not (y= 'loc')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ functions: prog/3,null/0,succ/1,list/2

heuristic:S

options: enableStateOpt
options: translation-state-optimisation

predicates:
Report(x,y) <=> not (y= 'l')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ theory AC_sid

begin

//options: enableStateOpt
//options: translation-state-optimisation

builtins: dest-pairing, locations-report

Expand Down
2 changes: 1 addition & 1 deletion examples/sapic/export/States/canauth.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ section{* CANauth protocol *}
*/
builtins: dest-pairing, multiset

options: enableStateOpt
options: translation-state-optimisation

functions: hmac(bitstring,bitstring):bitstring

Expand Down
2 changes: 1 addition & 1 deletion examples/sapic/export/States/secure-device.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ theory StatVerif_Security_Device begin

builtins: dest-pairing, dest-asymmetric-encryption

//options: enableStateOpt
//options: translation-state-optimisation

let Device=(
out(pk(~sk))
Expand Down
2 changes: 1 addition & 1 deletion examples/sapic/fast/Yubikey/Yubikey.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ section{* The Yubikey-Protocol *}
*/

builtins: symmetric-encryption, multiset
options: enableStateOpt
options: translation-state-optimisation

let Yubikey(L_pid,YL_pid,SL_pid,secretid,k)=
!(( //Plug
Expand Down
2 changes: 1 addition & 1 deletion examples/sapic/fast/feature-locations/AC.spthy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builtins: locations-report
functions: prog/3,list/2
heuristic: S

options: enableStateOpt
options: translation-state-optimisation

predicates:
Report(x,y) <=> not (y= 'loc')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ functions: prog/3,null/0,succ/1,list/2

heuristic:S

options: enableStateOpt
options: translation-state-optimisation

predicates:
Report(x,y) <=> not (y= 'l')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ theory AC_sid

begin

//options: enableStateOpt
//options: translation-state-optimisation

builtins: locations-report

Expand Down
9 changes: 5 additions & 4 deletions lib/theory/src/Theory/Text/Parser/Signature.hs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,12 @@ options thy0 =do
setOption' thy Nothing = thy
setOption' thy (Just l) = setOption l thy
builtinTheory = asum
[ try (symbol "translation-progress") Data.Functor.$> Just transProgress
[ try
(symbol "translation-progress") Data.Functor.$> Just transProgress
, symbol "translation-allow-pattern-lookups" Data.Functor.$> Just transAllowPatternMatchinginLookup
, symbol "enableStateOpt" Data.Functor.$> Just stateChannelOpt
, symbol "asynchronous-channels" Data.Functor.$> Just asynchronousChannels
, symbol "compress-events" Data.Functor.$> Just compressEvents
, symbol "translation-state-optimisation" Data.Functor.$> Just stateChannelOpt
, symbol "translation-asynchronous-channels" Data.Functor.$> Just asynchronousChannels
, symbol "translation-compress-events" Data.Functor.$> Just compressEvents
]

predicate :: Parser Predicate
Expand Down

0 comments on commit ef1c24a

Please sign in to comment.