Move tests, remove operators

This commit is contained in:
Tom Jack 2019-10-23 09:37:51 -05:00
parent 0e5c9802ec
commit e2ea89cf87
12 changed files with 0 additions and 18 deletions

View File

@ -103,20 +103,9 @@ module Simplify = struct
module Camligo = struct module Camligo = struct
let constants = [ let constants = [
("Bytes.pack" , "PACK") ; ("Bytes.pack" , "PACK") ;
("Map.remove" , "MAP_REMOVE") ;
("Map.update" , "MAP_UPDATE") ;
("Map.add" , "MAP_ADD") ;
("Map.mem" , "MAP_MEM") ;
("Map.find" , "MAP_FIND") ;
("Map.fold" , "MAP_FOLD") ;
("Map.map" , "MAP_MAP") ;
("Crypto.hash" , "HASH") ; ("Crypto.hash" , "HASH") ;
("Operation.transaction" , "CALL") ; ("Operation.transaction" , "CALL") ;
("Operation.get_contract" , "CONTRACT") ; ("Operation.get_contract" , "CONTRACT") ;
("sender" , "SENDER") ; ("sender" , "SENDER") ;
("unit" , "UNIT") ; ("unit" , "UNIT") ;
("source" , "SOURCE") ; ("source" , "SOURCE") ;
@ -715,13 +704,6 @@ module Compiler = struct
("MAP_FIND_OPT" , simple_binary @@ prim I_GET) ; ("MAP_FIND_OPT" , simple_binary @@ prim I_GET) ;
("MAP_ADD" , simple_ternary @@ seq [dip (i_some) ; prim I_UPDATE]) ; ("MAP_ADD" , simple_ternary @@ seq [dip (i_some) ; prim I_UPDATE]) ;
("MAP_UPDATE" , simple_ternary @@ prim I_UPDATE) ; ("MAP_UPDATE" , simple_ternary @@ prim I_UPDATE) ;
(* ("GET_CONTRACT" , simple_constant @@ prim I_CONTRACT) ; *)
(* ( "MAP_REMOVE" , simple_binary @@ seq [prim I_NONE TODO: + annotation ; prim I_UPDATE ]) ; *)
( "MAP_MEM" , simple_binary @@ prim I_MEM) ;
(* ( "MAP_FOLD" , simple_ternary @@ prim TODO I_ITER?) ; *)
( "MAP_MAP" , simple_binary @@ prim I_MAP) ;
(* ( "MAP_MAP_FOLD" , simple_ternary @@ prim TODO I_ITER?) ; *)
(* ( "MAP_ITER" , simple_binary @@ prim TODO I_ITER?) ; *)
("SIZE" , simple_unary @@ prim I_SIZE) ; ("SIZE" , simple_unary @@ prim I_SIZE) ;
("FAILWITH" , simple_unary @@ prim I_FAILWITH) ; ("FAILWITH" , simple_unary @@ prim I_FAILWITH) ;
("ASSERT_INFERRED" , simple_binary @@ i_if (seq [i_failwith]) (seq [i_drop ; i_push_unit])) ; ("ASSERT_INFERRED" , simple_binary @@ i_if (seq [i_failwith]) (seq [i_drop ; i_push_unit])) ;