Skip to content

Commit

Permalink
old Z3 encoding experiment: marked with [smtlib] #symEcrec and `Int "…
Browse files Browse the repository at this point in the history
…:" WordStack`.
  • Loading branch information
denis-bogdanas committed Dec 5, 2018
1 parent 5d3bbb6 commit 7e2e47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ A cons-list is used for the EVM wordstack.

```k
syntax WordStack [flatPredicate]
syntax WordStack ::= ".WordStack" | Int ":" WordStack
syntax WordStack ::= ".WordStack" | Int ":" WordStack [smtlib(ws)]
// -----------------------------------------------------
```

Expand Down
4 changes: 2 additions & 2 deletions evm-symbolic.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Symbolic result of ecrecover.
requires notBool #isConcrete(DATA) andBool #sizeWordStack(DATA) ==Int 128 andBool #ecrecEmpty(DATA)
//Symbolic wrapper over the argument of #ecrec, no implementation.
syntax Int ::= #symEcrec ( WordStack ) [function]
syntax Int ::= #symEcrec ( WordStack ) [function, smtlib(sym_ecrec)]
//Symbolic predicate representing whether output of #ecrec is empty. No implementation.
syntax Bool ::= #ecrecEmpty( WordStack ) [function]
syntax Bool ::= #ecrecEmpty( WordStack ) [function, smtlib(ecrec_empty)]
```

Split construct. Allows to force branching on arbitrary boolean expressions.
Expand Down

0 comments on commit 7e2e47a

Please sign in to comment.