Skip to content

Commit

Permalink
Add sign extension operator to cryptol_prims.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Feb 21, 2018
1 parent 2a65b90 commit 514b712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/cryptol-verifier
1 change: 1 addition & 0 deletions src/SAWScript/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ cryptol_prims = CryptolModule Map.empty <$> Map.fromList <$> traverse parsePrim
prims =
[ ("trunc", "Cryptol.ecTrunc" , "{m, n} (fin m, fin n) => [m+n] -> [n]")
, ("uext" , "Cryptol.ecUExt" , "{m, n} (fin m, fin n) => [n] -> [m+n]")
, ("sext" , "Cryptol.ecSExt" , "{m, n} (fin m, fin n, n >= 1) => [n] -> [m+n]")
, ("sgt" , "Cryptol.ecSgt" , "{n} (fin n) => [n] -> [n] -> Bit")
, ("sge" , "Cryptol.ecSge" , "{n} (fin n) => [n] -> [n] -> Bit")
, ("slt" , "Cryptol.ecSlt" , "{n} (fin n) => [n] -> [n] -> Bit")
Expand Down

0 comments on commit 514b712

Please sign in to comment.