Skip to content

Commit

Permalink
Fix the SIGNEXTEND kore/haskell backend test. (#434)
Browse files Browse the repository at this point in the history
* Fix the SIGNEXTEND kore/haskell backend test.

* data: formatting
  • Loading branch information
virgil-serbanuta authored and ehildenb committed Aug 13, 2019
1 parent b31f51b commit ea55a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ Bitwise logical operators are lifted from the integer versions.
```k
syntax Int ::= signextend( Int , Int ) [function]
// -------------------------------------------------
rule signextend(N, W) => W requires N >=Int 32 orBool N <Int 0
rule signextend(N, W) => chop( (#nBytes(31 -Int N) <<Byte (N +Int 1)) |Int W ) requires N <Int 32 andBool N >=Int 0 andBool word2Bool(bit(256 -Int (8 *Int (N +Int 1)), W))
rule signextend(N, W) => chop( #nBytes(N +Int 1) &Int W ) requires N <Int 32 andBool N >=Int 0 andBool notBool word2Bool(bit(256 -Int (8 *Int (N +Int 1)), W))
rule signextend(N, W) => W requires N >=Int 32 orBool N <Int 0 [concrete]
rule signextend(N, W) => chop( (#nBytes(31 -Int N) <<Byte (N +Int 1)) |Int W ) requires N <Int 32 andBool N >=Int 0 andBool word2Bool(bit(256 -Int (8 *Int (N +Int 1)), W)) [concrete]
rule signextend(N, W) => chop( #nBytes(N +Int 1) &Int W ) requires N <Int 32 andBool N >=Int 0 andBool notBool word2Bool(bit(256 -Int (8 *Int (N +Int 1)), W)) [concrete]
```

- `keccak` serves as a wrapper around the `Keccak256` in `KRYPTO`.
Expand Down

0 comments on commit ea55a76

Please sign in to comment.