Compare commits
130 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a0a397afa | |||
| 093bcd6204 | |||
| 6601ad2d38 | |||
| 578ebe2a8a | |||
| 8269dbd71e | |||
| 08cc0a9fcd | |||
| 84f20ab683 | |||
| 7497345928 | |||
| 822a269f75 | |||
| 0699f35b03 | |||
| 3829e29a63 | |||
| 52e9d30f76 | |||
| da7f00ae5d | |||
| 326fca709f | |||
| e860e217a0 | |||
| bc48b5d62f | |||
| 7b9c1b856b | |||
| 05dfd7ffc7 | |||
| 7d4f3fed10 | |||
| 4c0906398e | |||
| 1bb24a485b | |||
| abd12b599f | |||
| e4d46bd17a | |||
| 142502179c | |||
| 0318c60caf | |||
| eb8810a783 | |||
| 69110b2ee8 | |||
| b0263319e3 | |||
| 951db9f384 | |||
| fe11ee31ab | |||
| 0c010cfd0d | |||
| d16f9a9579 | |||
| f53f61e554 | |||
| 84e246d9da | |||
| 1498e1cdc2 | |||
| 41b80b5d44 | |||
| fd9f15789c | |||
| 8d447e803b | |||
| 83616392e1 | |||
| 135a27c992 | |||
| b30f8a2bfd | |||
| 9d81358daf | |||
| 5493bece71 | |||
| c90bb0c6db | |||
| 7f0d3090d4 | |||
| e5164330b0 | |||
| e5bdf583f9 | |||
| 719bf26a38 | |||
| 5ef5d455b4 | |||
| 36559842ae | |||
| 94d0b984e9 | |||
| 167bfcc0e6 | |||
| 2f11143e5a | |||
| ff5a4c7dd5 | |||
| 370c7387a9 | |||
| 8a9c9dec95 | |||
| 4565188c6a | |||
| 059d114a06 | |||
| e4b09d7c5c | |||
| b040dccdef | |||
| 211ee74df2 | |||
| 38f4f0ecd7 | |||
| 281e9b210c | |||
| 3e7a8e4a69 | |||
| ea5548be6c | |||
| 48cfbd03b0 | |||
| 04878c5ed9 | |||
| 4f4d6d30cd | |||
| 176df87bb0 | |||
| 2239bfb6f6 | |||
| 872766260b | |||
| f184abeb87 | |||
| a66dc0a97f | |||
| 17c9656f5c | |||
| 3106ca1306 | |||
| 3565719c7a | |||
| b036531dc2 | |||
| 7f0593fbf2 | |||
| a533fd5fcb | |||
| 02a3462cf4 | |||
| 69912db2b6 | |||
| 5e16b85ae2 | |||
| d272e821b2 | |||
| 72b2a581d5 | |||
| 72d61471e0 | |||
| e21abb875e | |||
| e7f2be7ce8 | |||
| c6475fe1c2 | |||
| 4e4c20c387 | |||
| 1d5e5be252 | |||
| 6efa4a0cb8 | |||
| 59b7b786ac | |||
| f31887c2ed | |||
| d794566363 | |||
| 850a5e2c35 | |||
| c270c794c3 | |||
| 10cc127883 | |||
| 50df849709 | |||
| dfa9b80a3c | |||
| befa1e3ff9 | |||
| efb4afeafa | |||
| e75336486e | |||
| fdd660a219 | |||
| 3954bd22da | |||
| 13211887a3 | |||
| 834ab298d1 | |||
| 52781060b2 | |||
| 3721fde7e8 | |||
| 23ee7e0ca4 | |||
| af6224cb3b | |||
| 197dfd5da1 | |||
| 087ec31698 | |||
| c49140fd5d | |||
| 414c45fbf7 | |||
| f5a9be67d9 | |||
| 15095a74ab | |||
| 5aee70b8ff | |||
| 44ec31d958 | |||
| 8fde1e5e24 | |||
| 54dcf364e5 | |||
| 7c6a80fef7 | |||
| c0bc71b0b7 | |||
| c30bfd7b1c | |||
| e184028261 | |||
| 986a7e6734 | |||
| 2a9035d5ef | |||
| 8a50d20a67 | |||
| 0b0cc38444 | |||
| 17c2a93e72 | |||
| e62cedb22c |
@@ -3,7 +3,7 @@ version: 2.1
|
|||||||
executors:
|
executors:
|
||||||
aebuilder:
|
aebuilder:
|
||||||
docker:
|
docker:
|
||||||
- image: aeternity/builder
|
- image: aeternity/builder:bionic-otp23
|
||||||
user: builder
|
user: builder
|
||||||
working_directory: ~/aebytecode
|
working_directory: ~/aebytecode
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
GENERATED_SRC = src/aeb_fate_opcodes.erl src/aeb_fate_ops.erl include/aeb_fate_opcodes.hrl src/aeb_fate_asm_scan.xrl src/aeb_fate_pp.erl
|
GENERATED_SRC = src/aeb_fate_opcodes.erl src/aeb_fate_ops.erl include/aeb_fate_opcodes.hrl src/aeb_fate_asm_scan.xrl src/aeb_fate_pp.erl
|
||||||
GENERATOR_DEPS = ebin/aeb_fate_generate_ops.beam src/aeb_fate_asm_scan.template
|
GENERATOR_DEPS = ebin/aeb_fate_generate_ops.beam src/aeb_fate_asm_scan.template
|
||||||
REBAR ?= rebar3
|
REBAR ?= ./rebar3
|
||||||
|
|
||||||
all: local
|
all: local
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ test: local
|
|||||||
@$(REBAR) as local eunit
|
@$(REBAR) as local eunit
|
||||||
|
|
||||||
ebin/%.beam: src/%.erl
|
ebin/%.beam: src/%.erl
|
||||||
erlc -o $(dir $@) $<
|
erlc +debug_info -o $(dir $@) $<
|
||||||
|
|
||||||
$(GENERATED_SRC): $(GENERATOR_DEPS)
|
$(GENERATED_SRC): $(GENERATOR_DEPS)
|
||||||
erl -pa ebin/ -noshell -s aeb_fate_generate_ops gen_and_halt src/ include/
|
erl -pa ebin/ -noshell -s aeb_fate_generate_ops gen_and_halt src/ include/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# aebytecode
|
# aebytecode
|
||||||
An library and stand alone assembler for aeternity bytecode.
|
A library and stand alone assembler for aeternity bytecode.
|
||||||
|
|
||||||
This version supports Aevm bytecode and Fate bytecode.
|
This version supports AEVM bytecode and FATE bytecode.
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Fate code exists in 3 formats:
|
|||||||
3. Internal. This is an Erlang representation of fate code
|
3. Internal. This is an Erlang representation of fate code
|
||||||
Used by this particular engin implementation.
|
Used by this particular engin implementation.
|
||||||
|
|
||||||
This library handles all tree representations.
|
This library handles all three representations.
|
||||||
The byte code format is described in a separate document.
|
The byte code format is described in a separate document.
|
||||||
The internal format is described in a separate document.
|
The internal format is described in a separate document.
|
||||||
The text representation is described below.
|
The text representation is described below.
|
||||||
@@ -107,6 +107,9 @@ Immediate values can be of 10 types:
|
|||||||
10. Bytes: #{base64char}+
|
10. Bytes: #{base64char}+
|
||||||
`#AQIDCioLFQ==`
|
`#AQIDCioLFQ==`
|
||||||
|
|
||||||
|
11. Contract bytearray (code of another smart contract)
|
||||||
|
`@cb_+PJGA6A4Fz4T2LHV5knITCldR3rqO7HrXO2zhOAR9JWNbhf8Q8C4xbhx/gx8JckANwAXfQBVACAAAP4vhlvZADcABwECgv5E1kQfADcBBzcACwAWMBReAHMAFjBvJFMAFjBvggOoFAAUABQSggABAz/+tIwWhAA3AAdTAAD+1jB5kAQ3AAcLAAD+6MRetgA3AQc3ABoGggABAz+4TS8GEQx8JclFY2FsbGVyX2lzX2NyZWF0b3IRL4Zb2Q1nZXQRRNZEHxFpbml0EbSMFoQdYmFsYW5jZRHWMHmQFXZhbHVlEejEXrYNc2V0gi8AhTQuMy4wAUqQ8s4=`
|
||||||
|
|
||||||
|
|
||||||
Where
|
Where
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
-define(FATE_LIST_T, list()).
|
-define(FATE_LIST_T, list()).
|
||||||
-define(FATE_UNIT_T, {tuple, {}}).
|
-define(FATE_UNIT_T, {tuple, {}}).
|
||||||
-define(FATE_MAP_T, #{ fate_type() => fate_type() }).
|
-define(FATE_MAP_T, #{ fate_type() => fate_type() }).
|
||||||
|
-define(FATE_STORE_MAP_T, {store_map, #{ fate_type() => fate_type() | ?FATE_MAP_TOMBSTONE }, integer()}).
|
||||||
-define(FATE_STRING_T, binary()).
|
-define(FATE_STRING_T, binary()).
|
||||||
-define(FATE_ADDRESS_T, {address, <<_:256>>}).
|
-define(FATE_ADDRESS_T, {address, <<_:256>>}).
|
||||||
-define(FATE_BYTES_T(N), {bytes, binary()}).
|
-define(FATE_BYTES_T(N), {bytes, binary()}).
|
||||||
@@ -16,10 +17,16 @@
|
|||||||
-define(FATE_VOID_T, void).
|
-define(FATE_VOID_T, void).
|
||||||
-define(FATE_TUPLE_T, {tuple, tuple()}).
|
-define(FATE_TUPLE_T, {tuple, tuple()}).
|
||||||
-define(FATE_BITS_T, {bits, integer()}).
|
-define(FATE_BITS_T, {bits, integer()}).
|
||||||
|
-define(FATE_TYPEREP_T, {typerep, fate_type_type()}).
|
||||||
|
-define(FATE_CONTRACT_BYTEARRAY_T, {contract_bytearray, binary()}).
|
||||||
|
|
||||||
-define(IS_FATE_INTEGER(X), (is_integer(X))).
|
-define(IS_FATE_INTEGER(X), (is_integer(X))).
|
||||||
-define(IS_FATE_LIST(X), (is_list(X))).
|
-define(IS_FATE_LIST(X), (is_list(X))).
|
||||||
-define(IS_FATE_STRING(X), (is_binary(X))).
|
-define(IS_FATE_STRING(X), (is_binary(X))).
|
||||||
|
-define(IS_FATE_STORE_MAP(X), (is_tuple(X) andalso tuple_size(X) == 3
|
||||||
|
andalso store_map == element(1, X)
|
||||||
|
andalso is_map(element(2, X))
|
||||||
|
andalso is_integer(element(3, X)))).
|
||||||
-define(IS_FATE_MAP(X), (is_map(X))).
|
-define(IS_FATE_MAP(X), (is_map(X))).
|
||||||
-define(IS_FATE_TUPLE(X), (is_tuple(X) andalso (tuple == element(1, X) andalso is_tuple(element(2, X))))).
|
-define(IS_FATE_TUPLE(X), (is_tuple(X) andalso (tuple == element(1, X) andalso is_tuple(element(2, X))))).
|
||||||
-define(IS_FATE_ADDRESS(X), (is_tuple(X) andalso (address == element(1, X) andalso is_binary(element(2, X))))).
|
-define(IS_FATE_ADDRESS(X), (is_tuple(X) andalso (address == element(1, X) andalso is_binary(element(2, X))))).
|
||||||
@@ -39,6 +46,8 @@
|
|||||||
))).
|
))).
|
||||||
-define(IS_FATE_BOOLEAN(X), is_boolean(X)).
|
-define(IS_FATE_BOOLEAN(X), is_boolean(X)).
|
||||||
-define(IS_FATE_TYPEREP(X), (is_tuple(X) andalso tuple_size(X) =:= 2 andalso element(1, X) =:= typerep)).
|
-define(IS_FATE_TYPEREP(X), (is_tuple(X) andalso tuple_size(X) =:= 2 andalso element(1, X) =:= typerep)).
|
||||||
|
-define(IS_FATE_CONTRACT_BYTEARRAY(X), (is_tuple(X) andalso tuple_size(X) =:= 2 andalso element(1, X) =:= contract_bytearray
|
||||||
|
andalso is_binary(element(2, X)))).
|
||||||
|
|
||||||
-define(FATE_UNIT, {tuple, {}}).
|
-define(FATE_UNIT, {tuple, {}}).
|
||||||
-define(FATE_TUPLE(T), {tuple, T}).
|
-define(FATE_TUPLE(T), {tuple, T}).
|
||||||
@@ -50,6 +59,8 @@
|
|||||||
-define(FATE_CHANNEL(X), {channel, X}).
|
-define(FATE_CHANNEL(X), {channel, X}).
|
||||||
-define(FATE_BITS(B), {bits, B}).
|
-define(FATE_BITS(B), {bits, B}).
|
||||||
-define(FATE_TYPEREP(T), {typerep, T}).
|
-define(FATE_TYPEREP(T), {typerep, T}).
|
||||||
|
-define(FATE_STORE_MAP(Cache, Id), {store_map, Cache, Id}).
|
||||||
|
-define(FATE_MAP_TOMBSTONE, '__DELETED__').
|
||||||
|
|
||||||
-define(FATE_INTEGER_VALUE(X), (X)).
|
-define(FATE_INTEGER_VALUE(X), (X)).
|
||||||
-define(FATE_BOOLEAN_VALUE(X), (X)).
|
-define(FATE_BOOLEAN_VALUE(X), (X)).
|
||||||
@@ -63,8 +74,11 @@
|
|||||||
-define(FATE_CHANNEL_VALUE(X), (element(2, X))).
|
-define(FATE_CHANNEL_VALUE(X), (element(2, X))).
|
||||||
-define(FATE_BITS_VALUE(X), (element(2, X))).
|
-define(FATE_BITS_VALUE(X), (element(2, X))).
|
||||||
-define(FATE_MAP_VALUE(X), (X)).
|
-define(FATE_MAP_VALUE(X), (X)).
|
||||||
|
-define(FATE_STORE_MAP_CACHE(X), (element(2, X))).
|
||||||
|
-define(FATE_STORE_MAP_ID(X), (element(3, X))).
|
||||||
-define(FATE_MAP_SIZE(X), (map_size(X))).
|
-define(FATE_MAP_SIZE(X), (map_size(X))).
|
||||||
-define(FATE_STRING_SIZE(X), (byte_size(X))).
|
-define(FATE_STRING_SIZE(X), (byte_size(X))).
|
||||||
|
-define(FATE_CONTRACT_BYTEARRAY_SIZE(X), (byte_size(X))).
|
||||||
-define(FATE_TRUE, true).
|
-define(FATE_TRUE, true).
|
||||||
-define(FATE_FALSE, false).
|
-define(FATE_FALSE, false).
|
||||||
-define(FATE_NIL, []).
|
-define(FATE_NIL, []).
|
||||||
@@ -72,8 +86,14 @@
|
|||||||
-define(FATE_EMPTY_STRING, <<>>).
|
-define(FATE_EMPTY_STRING, <<>>).
|
||||||
-define(FATE_STRING(S), S).
|
-define(FATE_STRING(S), S).
|
||||||
-define(FATE_VARIANT(Arity, Tag,T), {variant, Arity, Tag, T}).
|
-define(FATE_VARIANT(Arity, Tag,T), {variant, Arity, Tag, T}).
|
||||||
|
-define(FATE_CONTRACT_BYTEARRAY(B), {contract_bytearray, B}).
|
||||||
|
|
||||||
|
% Result of aeb_fate_code:symbol_identifier(<<"init">>).
|
||||||
|
% Stored here to avoid repeated calls to eblake2
|
||||||
|
-define(FATE_INIT_ID, <<68,214,68,31>>).
|
||||||
|
|
||||||
-define(MAKE_FATE_INTEGER(X), X).
|
-define(MAKE_FATE_INTEGER(X), X).
|
||||||
-define(MAKE_FATE_LIST(X), X).
|
-define(MAKE_FATE_LIST(X), X).
|
||||||
-define(MAKE_FATE_MAP(X), X).
|
-define(MAKE_FATE_MAP(X), X).
|
||||||
-define(MAKE_FATE_STRING(X), X).
|
-define(MAKE_FATE_STRING(X), X).
|
||||||
|
-define(MAKE_FATE_CONTRACT_BYTEARRAY(X), {contract_bytearray, X}).
|
||||||
|
|||||||
+10
-7
@@ -186,13 +186,15 @@
|
|||||||
-define(PRIM_CALL_MAP_TOLIST, 305).
|
-define(PRIM_CALL_MAP_TOLIST, 305).
|
||||||
|
|
||||||
-define(PRIM_CALL_IN_CRYPTO_RANGE(__TTYPE__), (((__TTYPE__) > 399) andalso ((__TTYPE__) < 500))).
|
-define(PRIM_CALL_IN_CRYPTO_RANGE(__TTYPE__), (((__TTYPE__) > 399) andalso ((__TTYPE__) < 500))).
|
||||||
-define(PRIM_CALL_CRYPTO_ECVERIFY, 400).
|
-define(PRIM_CALL_CRYPTO_VERIFY_SIG, 400).
|
||||||
-define(PRIM_CALL_CRYPTO_SHA3, 401).
|
-define(PRIM_CALL_CRYPTO_SHA3, 401).
|
||||||
-define(PRIM_CALL_CRYPTO_SHA256, 402).
|
-define(PRIM_CALL_CRYPTO_SHA256, 402).
|
||||||
-define(PRIM_CALL_CRYPTO_BLAKE2B, 403).
|
-define(PRIM_CALL_CRYPTO_BLAKE2B, 403).
|
||||||
-define(PRIM_CALL_CRYPTO_SHA256_STRING, 404).
|
-define(PRIM_CALL_CRYPTO_SHA256_STRING, 404).
|
||||||
-define(PRIM_CALL_CRYPTO_BLAKE2B_STRING, 405).
|
-define(PRIM_CALL_CRYPTO_BLAKE2B_STRING, 405).
|
||||||
-define(PRIM_CALL_CRYPTO_ECVERIFY_SECP256K1, 410).
|
-define(PRIM_CALL_CRYPTO_VERIFY_SIG_SECP256K1, 410).
|
||||||
|
-define(PRIM_CALL_CRYPTO_ECVERIFY_SECP256K1, 420).
|
||||||
|
-define(PRIM_CALL_CRYPTO_ECRECOVER_SECP256K1, 421).
|
||||||
|
|
||||||
-define(PRIM_CALL_IN_AUTH_RANGE(__TTYPE__), (((__TTYPE__) > 499) andalso ((__TTYPE__) < 600))).
|
-define(PRIM_CALL_IN_AUTH_RANGE(__TTYPE__), (((__TTYPE__) > 499) andalso ((__TTYPE__) < 600))).
|
||||||
-define(PRIM_CALL_AUTH_TX_HASH, 500).
|
-define(PRIM_CALL_AUTH_TX_HASH, 500).
|
||||||
@@ -200,3 +202,4 @@
|
|||||||
-define(PRIM_CALL_IN_ADDRESS_RANGE(__TTYPE__), (((__TTYPE__) > 599) andalso ((__TTYPE__) < 700))).
|
-define(PRIM_CALL_IN_ADDRESS_RANGE(__TTYPE__), (((__TTYPE__) > 599) andalso ((__TTYPE__) < 700))).
|
||||||
-define(PRIM_CALL_ADDR_IS_ORACLE, 600).
|
-define(PRIM_CALL_ADDR_IS_ORACLE, 600).
|
||||||
-define(PRIM_CALL_ADDR_IS_CONTRACT, 601).
|
-define(PRIM_CALL_ADDR_IS_CONTRACT, 601).
|
||||||
|
-define(PRIM_CALL_ADDR_IS_PAYABLE, 610).
|
||||||
|
|||||||
@@ -9,3 +9,4 @@
|
|||||||
-define(TYPEREP_TYPEREP_TAG, 5).
|
-define(TYPEREP_TYPEREP_TAG, 5).
|
||||||
-define(TYPEREP_MAP_TAG, 6).
|
-define(TYPEREP_MAP_TAG, 6).
|
||||||
-define(TYPEREP_FUN_TAG, 7).
|
-define(TYPEREP_FUN_TAG, 7).
|
||||||
|
-define(TYPEREP_CONTRACT_BYTEARRAY_TAG,8).
|
||||||
|
|||||||
@@ -22,5 +22,6 @@ quickcheck_test_() ->
|
|||||||
{setup, fun() -> eqc:start() end,
|
{setup, fun() -> eqc:start() end,
|
||||||
[ ?EQC_EUNIT(aefate_type_eqc, prop_roundtrip, 1000),
|
[ ?EQC_EUNIT(aefate_type_eqc, prop_roundtrip, 1000),
|
||||||
?EQC_EUNIT(aefate_eqc, prop_serializes, 1000),
|
?EQC_EUNIT(aefate_eqc, prop_serializes, 1000),
|
||||||
|
?EQC_EUNIT(aefate_eqc, prop_no_maps_in_keys, 1000),
|
||||||
?EQC_EUNIT(aefate_eqc, prop_idempotent, 1000)
|
?EQC_EUNIT(aefate_eqc, prop_idempotent, 1000)
|
||||||
]}.
|
]}.
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ prop_opcodes() ->
|
|||||||
|
|
||||||
|
|
||||||
valid_opcodes() ->
|
valid_opcodes() ->
|
||||||
lists:seq(0, 16#75) ++ lists:seq(16#fa, 16#fd).
|
[ Op || #{opcode := Op} <- aeb_fate_generate_ops:get_ops() ].
|
||||||
|
|
||||||
|
|
||||||
fate_code(Failure) ->
|
fate_code(Failure) ->
|
||||||
@@ -85,7 +85,8 @@ fate_code(Failure) ->
|
|||||||
?LET({FMap, SMap, AMap},
|
?LET({FMap, SMap, AMap},
|
||||||
{non_empty(map(if Failure == 1 -> binary(1);
|
{non_empty(map(if Failure == 1 -> binary(1);
|
||||||
true -> binary(4) end,
|
true -> binary(4) end,
|
||||||
{{list(aefate_type_eqc:fate_type(Size div 3)), aefate_type_eqc:fate_type(Size div 3)}, bbs_code(Failure)})),
|
{sublist(lists:sort([private, payable])), %% deserialize sorts them
|
||||||
|
{list(aefate_type_eqc:fate_type(Size div 3)), aefate_type_eqc:fate_type(Size div 3)}, bbs_code(Failure)})),
|
||||||
small_map(small_fate_data_key(5), small_fate_data(4)),
|
small_map(small_fate_data_key(5), small_fate_data(4)),
|
||||||
small_map(small_fate_data_key(5), small_fate_data(4))},
|
small_map(small_fate_data_key(5), small_fate_data(4))},
|
||||||
aeb_fate_code:update_annotations(
|
aeb_fate_code:update_annotations(
|
||||||
|
|||||||
+52
-10
@@ -10,6 +10,7 @@
|
|||||||
-module(aefate_eqc).
|
-module(aefate_eqc).
|
||||||
|
|
||||||
-include_lib("eqc/include/eqc.hrl").
|
-include_lib("eqc/include/eqc.hrl").
|
||||||
|
-include("../include/aeb_fate_data.hrl").
|
||||||
|
|
||||||
-compile([export_all, nowarn_export_all]).
|
-compile([export_all, nowarn_export_all]).
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ prop_roundtrip() ->
|
|||||||
end)).
|
end)).
|
||||||
|
|
||||||
prop_format_scan() ->
|
prop_format_scan() ->
|
||||||
?FORALL(FateData, fate_data(),
|
?FORALL(FateData, fate_data([variant, map]),
|
||||||
?WHENFAIL(eqc:format("Trying to format ~p failed~n", [FateData]),
|
?WHENFAIL(eqc:format("Trying to format ~p failed~n", [FateData]),
|
||||||
begin
|
begin
|
||||||
String = aeb_fate_data:format(FateData),
|
String = aeb_fate_data:format(FateData),
|
||||||
@@ -43,6 +44,18 @@ prop_serializes() ->
|
|||||||
{size, size(Binary) < 500000}]))
|
{size, size(Binary) < 500000}]))
|
||||||
end)).
|
end)).
|
||||||
|
|
||||||
|
prop_no_maps_in_keys() ->
|
||||||
|
?FORALL(FateData, fate_bad_map(), %% may contain a map in its keys
|
||||||
|
begin
|
||||||
|
HasMapInKeys = lists:any(fun(K) -> has_map(K) end, maps:keys(FateData)),
|
||||||
|
try aeb_fate_encoding:serialize(FateData),
|
||||||
|
?WHENFAIL(eqc:format("Should not serialize, contains a map in key\n", []),
|
||||||
|
not HasMapInKeys)
|
||||||
|
catch error:Reason ->
|
||||||
|
?WHENFAIL(eqc:format("(~p) Should serialize\n", [Reason]), HasMapInKeys)
|
||||||
|
end
|
||||||
|
end).
|
||||||
|
|
||||||
prop_fuzz() ->
|
prop_fuzz() ->
|
||||||
in_parallel(
|
in_parallel(
|
||||||
?FORALL(Binary, ?LET(FateData, ?SIZED(Size, resize(Size div 4, fate_data())), aeb_fate_encoding:serialize(FateData)),
|
?FORALL(Binary, ?LET(FateData, ?SIZED(Size, resize(Size div 4, fate_data())), aeb_fate_encoding:serialize(FateData)),
|
||||||
@@ -59,13 +72,14 @@ prop_fuzz() ->
|
|||||||
|
|
||||||
|
|
||||||
prop_order() ->
|
prop_order() ->
|
||||||
?FORALL(Items, vector(3, fate_data()),
|
?FORALL(Items, vector(3, fate_data([variant, map])),
|
||||||
begin
|
begin
|
||||||
%% Use lt to take minimum
|
%% Use lt to take minimum
|
||||||
Min = lt_min(Items),
|
Min = lt_min(Items),
|
||||||
Max = lt_max(Items),
|
Max = lt_max(Items),
|
||||||
conjunction([ {minimum, is_empty([ {Min, '>', I} || I<-Items, aeb_fate_data:lt(I, Min)])},
|
conjunction([ {minimum, is_empty([ {Min, '>', I} || I<-Items, aeb_fate_data:lt(I, Min)])},
|
||||||
{maximum, is_empty([ {Max, '<', I} || I<-Items, aeb_fate_data:lt(Max, I)])}])
|
{maximum, is_empty([ {Max, '<', I} || I<-Items, aeb_fate_data:lt(Max, I)])},
|
||||||
|
{asym, aeb_fate_data:lt(Min, Max) orelse Min == Max}])
|
||||||
end).
|
end).
|
||||||
|
|
||||||
lt_min([X, Y | Rest]) ->
|
lt_min([X, Y | Rest]) ->
|
||||||
@@ -88,18 +102,24 @@ prop_idempotent() ->
|
|||||||
aeb_fate_encoding:sort(aeb_fate_encoding:sort(Items)))).
|
aeb_fate_encoding:sort(aeb_fate_encoding:sort(Items)))).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
fate_data(Kind) ->
|
||||||
|
?SIZED(Size, ?LET(Data, fate_data(Size, Kind), eqc_symbolic:eval(Data))).
|
||||||
|
|
||||||
fate_data() ->
|
fate_data() ->
|
||||||
?SIZED(Size, ?LET(Data, fate_data(Size, [map, variant]), eqc_symbolic:eval(Data))).
|
fate_data([map, variant, store_map]).
|
||||||
|
|
||||||
|
%% keys may contain variants but no maps
|
||||||
fate_data_key() ->
|
fate_data_key() ->
|
||||||
?SIZED(Size, ?LET(Data, fate_data(Size div 4, [variant]), eqc_symbolic:eval(Data))).
|
fate_data([variant]).
|
||||||
|
|
||||||
fate_data(0, _Options) ->
|
fate_data(0, Options) ->
|
||||||
?LAZY(
|
?LAZY(
|
||||||
frequency(
|
frequency(
|
||||||
[{5, oneof([fate_integer(), fate_boolean(), fate_nil(), fate_unit()])},
|
[{50, oneof([fate_integer(), fate_boolean(), fate_nil(), fate_unit()])},
|
||||||
{1, oneof([fate_string(), fate_address(), fate_bytes(), fate_contract(),
|
{10, oneof([fate_string(), fate_address(), fate_bytes(), fate_contract(),
|
||||||
fate_oracle(), fate_oracle_q(), fate_bits(), fate_channel()])}]));
|
fate_oracle(), fate_oracle_q(), fate_bits(), fate_channel()])}] ++
|
||||||
|
[{1, fate_store_map()} || lists:member(store_map, Options)]));
|
||||||
fate_data(Size, Options) ->
|
fate_data(Size, Options) ->
|
||||||
?LAZY(
|
?LAZY(
|
||||||
oneof([fate_data(0, Options),
|
oneof([fate_data(0, Options),
|
||||||
@@ -148,9 +168,20 @@ fate_list(Size, Options) ->
|
|||||||
fate_map(Size, Options) ->
|
fate_map(Size, Options) ->
|
||||||
?LET(N, choose(0, 6),
|
?LET(N, choose(0, 6),
|
||||||
?LETSHRINK(Values, fate_values(Size, N, Options),
|
?LETSHRINK(Values, fate_values(Size, N, Options),
|
||||||
?LET(Keys, vector(length(Values), fate_data(Size div max(1, N * 2), Options -- [map])),
|
?LET(Keys, vector(length(Values), fate_data(Size div max(1, N * 2), Options -- [map, store_map])),
|
||||||
return(aeb_fate_data:make_map(maps:from_list(lists:zip(Keys, Values))))))).
|
return(aeb_fate_data:make_map(maps:from_list(lists:zip(Keys, Values))))))).
|
||||||
|
|
||||||
|
fate_store_map() ->
|
||||||
|
%% only #{} is allowed as cache in serialization
|
||||||
|
?LET(X, oneof([int(), largeint()]),
|
||||||
|
return(aeb_fate_data:make_store_map(abs(X)))).
|
||||||
|
|
||||||
|
fate_bad_map() ->
|
||||||
|
?LET(N, choose(0, 6),
|
||||||
|
?LET(Values, vector(N, ?SIZED(Size, resize(Size div 8, fate_data()))),
|
||||||
|
?LET(Keys, vector(N, ?SIZED(Size, resize(Size div 4, fate_data()))),
|
||||||
|
return(aeb_fate_data:make_map(maps:from_list(lists:zip(Keys, Values))))))).
|
||||||
|
|
||||||
non_quote_string() ->
|
non_quote_string() ->
|
||||||
?SUCHTHAT(S, utf8(), [ quote || <<34>> <= S ] == []).
|
?SUCHTHAT(S, utf8(), [ quote || <<34>> <= S ] == []).
|
||||||
|
|
||||||
@@ -167,3 +198,14 @@ injection(Binary) ->
|
|||||||
|
|
||||||
is_empty(L) ->
|
is_empty(L) ->
|
||||||
?WHENFAIL(eqc:format("~p\n", [L]), L == []).
|
?WHENFAIL(eqc:format("~p\n", [L]), L == []).
|
||||||
|
|
||||||
|
has_map(L) when is_list(L) ->
|
||||||
|
lists:any(fun(V) -> has_map(V) end, L);
|
||||||
|
has_map(T) when is_tuple(T) ->
|
||||||
|
has_map(tuple_to_list(T));
|
||||||
|
has_map(M) when is_map(M) ->
|
||||||
|
true;
|
||||||
|
has_map(?FATE_STORE_MAP(_, _)) ->
|
||||||
|
true;
|
||||||
|
has_map(_) ->
|
||||||
|
false.
|
||||||
|
|||||||
+3
-3
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{deps, [ {eblake2, "1.0.0"}
|
{deps, [ {eblake2, "1.0.0"}
|
||||||
, {aeserialization, {git, "https://github.com/aeternity/aeserialization.git",
|
, {aeserialization, {git, "https://github.com/aeternity/aeserialization.git",
|
||||||
{ref, "816bf99"}}}
|
{ref, "eb68fe3"}}}
|
||||||
, {getopt, "1.0.1"}
|
, {getopt, "1.0.1"}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
|
||||||
{relx, [{release, {aebytecode, "2.0.1"},
|
{relx, [{release, {aebytecode, "3.2.0"},
|
||||||
[aebytecode, eblake2, getopt]},
|
[aebytecode, eblake2, getopt]},
|
||||||
|
|
||||||
{dev_mode, true},
|
{dev_mode, true},
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
{profiles, [{binary, [
|
{profiles, [{binary, [
|
||||||
{deps, [ {eblake2, "1.0.0"}
|
{deps, [ {eblake2, "1.0.0"}
|
||||||
, {aeserialization, {git, "https://github.com/aeternity/aeserialization.git",
|
, {aeserialization, {git, "https://github.com/aeternity/aeserialization.git",
|
||||||
{ref, "b55c372"}}}
|
{ref, "47aaa8f"}}}
|
||||||
, {getopt, "1.0.1"}
|
, {getopt, "1.0.1"}
|
||||||
]},
|
]},
|
||||||
|
|
||||||
|
|||||||
+10
-3
@@ -1,16 +1,23 @@
|
|||||||
{"1.1.0",
|
{"1.2.0",
|
||||||
[{<<"aeserialization">>,
|
[{<<"aeserialization">>,
|
||||||
{git,"https://github.com/aeternity/aeserialization.git",
|
{git,"https://github.com/aeternity/aeserialization.git",
|
||||||
{ref,"816bf994ffb5cee218c3f22dc5fea296c9e0882e"}},
|
{ref,"eb68fe331bd476910394966b7f5ede7a74d37e35"}},
|
||||||
0},
|
0},
|
||||||
{<<"base58">>,
|
{<<"base58">>,
|
||||||
{git,"https://github.com/aeternity/erl-base58.git",
|
{git,"https://github.com/aeternity/erl-base58.git",
|
||||||
{ref,"60a335668a60328a29f9731b67c4a0e9e3d50ab6"}},
|
{ref,"60a335668a60328a29f9731b67c4a0e9e3d50ab6"}},
|
||||||
1},
|
1},
|
||||||
{<<"eblake2">>,{pkg,<<"eblake2">>,<<"1.0.0">>},0},
|
{<<"eblake2">>,{pkg,<<"eblake2">>,<<"1.0.0">>},0},
|
||||||
|
{<<"enacl">>,
|
||||||
|
{git,"https://github.com/aeternity/enacl.git",
|
||||||
|
{ref,"793ddb502f7fe081302e1c42227dca70b09f8e17"}},
|
||||||
|
1},
|
||||||
{<<"getopt">>,{pkg,<<"getopt">>,<<"1.0.1">>},0}]}.
|
{<<"getopt">>,{pkg,<<"getopt">>,<<"1.0.1">>},0}]}.
|
||||||
[
|
[
|
||||||
{pkg_hash,[
|
{pkg_hash,[
|
||||||
{<<"eblake2">>, <<"EC8AD20E438AAB3F2E8D5D118C366A0754219195F8A0F536587440F8F9BCF2EF">>},
|
{<<"eblake2">>, <<"EC8AD20E438AAB3F2E8D5D118C366A0754219195F8A0F536587440F8F9BCF2EF">>},
|
||||||
{<<"getopt">>, <<"C73A9FA687B217F2FF79F68A3B637711BB1936E712B521D8CE466B29CBF7808A">>}]}
|
{<<"getopt">>, <<"C73A9FA687B217F2FF79F68A3B637711BB1936E712B521D8CE466B29CBF7808A">>}]},
|
||||||
|
{pkg_hash_ext,[
|
||||||
|
{<<"eblake2">>, <<"3C4D300A91845B25D501929A26AC2E6F7157480846FAB2347A4C11AE52E08A99">>},
|
||||||
|
{<<"getopt">>, <<"53E1AB83B9CEB65C9672D3E7A35B8092E9BDC9B3EE80721471A161C10C59959C">>}]}
|
||||||
].
|
].
|
||||||
|
|||||||
+77
-33
@@ -11,14 +11,16 @@
|
|||||||
-define(HASH_SIZE, 32).
|
-define(HASH_SIZE, 32).
|
||||||
|
|
||||||
-export([ create_calldata/4
|
-export([ create_calldata/4
|
||||||
, check_calldata/2
|
, check_calldata/3
|
||||||
, function_type_info/3
|
, function_type_info/4
|
||||||
, function_type_hash/3
|
, function_type_hash/3
|
||||||
, arg_typerep_from_function/2
|
, arg_typerep_from_function/2
|
||||||
, type_hash_from_function_name/2
|
, type_hash_from_function_name/2
|
||||||
, typereps_from_type_hash/2
|
, typereps_from_type_hash/2
|
||||||
, function_name_from_type_hash/2
|
, function_name_from_type_hash/2
|
||||||
, get_function_hash_from_calldata/1
|
, get_function_hash_from_calldata/1
|
||||||
|
, is_payable/2
|
||||||
|
, abi_version/0
|
||||||
]).
|
]).
|
||||||
|
|
||||||
-type hash() :: <<_:256>>. %% 256 = ?HASH_SIZE * 8.
|
-type hash() :: <<_:256>>. %% 256 = ?HASH_SIZE * 8.
|
||||||
@@ -26,6 +28,7 @@
|
|||||||
-type typerep() :: aeb_aevm_data:type().
|
-type typerep() :: aeb_aevm_data:type().
|
||||||
-type function_type_info() :: { FunctionHash :: hash()
|
-type function_type_info() :: { FunctionHash :: hash()
|
||||||
, FunctionName :: function_name()
|
, FunctionName :: function_name()
|
||||||
|
, Payable :: boolean()
|
||||||
, ArgType :: binary() %% binary typerep
|
, ArgType :: binary() %% binary typerep
|
||||||
, OutType :: binary() %% binary typerep
|
, OutType :: binary() %% binary typerep
|
||||||
}.
|
}.
|
||||||
@@ -35,6 +38,11 @@
|
|||||||
%%% API
|
%%% API
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
|
|
||||||
|
%% Shall match ?ABI_AEVM_SOPHIA_1
|
||||||
|
-spec abi_version() -> integer().
|
||||||
|
abi_version() ->
|
||||||
|
1.
|
||||||
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% Handle calldata
|
%%% Handle calldata
|
||||||
|
|
||||||
@@ -45,30 +53,40 @@ create_calldata(FunName, Args, ArgTypes0, RetType) ->
|
|||||||
Data = aeb_heap:to_binary({TypeHashInt, list_to_tuple(Args)}),
|
Data = aeb_heap:to_binary({TypeHashInt, list_to_tuple(Args)}),
|
||||||
{ok, Data}.
|
{ok, Data}.
|
||||||
|
|
||||||
-spec check_calldata(binary(), type_info()) ->
|
-spec check_calldata(binary(), type_info(), boolean()) ->
|
||||||
{'ok', typerep(), typerep()} | {'error', atom()}.
|
{'ok', typerep(), typerep()} | {'error', atom()}.
|
||||||
check_calldata(CallData, TypeInfo) ->
|
check_calldata(CallData, TypeInfo, CheckPayable) ->
|
||||||
%% The first element of the CallData should be the function name
|
%% The first element of the CallData should be the function name
|
||||||
case get_function_hash_from_calldata(CallData) of
|
case get_function_hash_from_calldata(CallData) of
|
||||||
{ok, Hash} ->
|
{ok, Hash} ->
|
||||||
case typereps_from_type_hash(Hash, TypeInfo) of
|
check_calldata(Hash, CallData, TypeInfo, CheckPayable);
|
||||||
{ok, ArgType, OutType} ->
|
|
||||||
try aeb_heap:from_binary({tuple, [word, ArgType]}, CallData) of
|
|
||||||
{ok, _Something} ->
|
|
||||||
{ok, {tuple, [word, ArgType]}, OutType};
|
|
||||||
{error, _} ->
|
|
||||||
{error, bad_call_data}
|
|
||||||
catch
|
|
||||||
_T:_E ->
|
|
||||||
{error, bad_call_data}
|
|
||||||
end;
|
|
||||||
{error, _} ->
|
|
||||||
{error, unknown_function}
|
|
||||||
end;
|
|
||||||
{error, _What} ->
|
{error, _What} ->
|
||||||
{error, bad_call_data}
|
{error, bad_call_data}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
check_calldata(Hash, CallData, TypeInfo, true) ->
|
||||||
|
case is_payable(Hash, TypeInfo) of
|
||||||
|
{ok, true} -> check_calldata(Hash, CallData, TypeInfo, false);
|
||||||
|
{ok, false} -> {error, function_is_not_payable};
|
||||||
|
Err = {error, _} -> Err
|
||||||
|
end;
|
||||||
|
check_calldata(Hash, CallData, TypeInfo, false) ->
|
||||||
|
case typereps_from_type_hash(Hash, TypeInfo) of
|
||||||
|
{ok, ArgType, OutType} ->
|
||||||
|
try aeb_heap:from_binary({tuple, [word, ArgType]}, CallData) of
|
||||||
|
{ok, _Something} ->
|
||||||
|
{ok, {tuple, [word, ArgType]}, OutType};
|
||||||
|
{error, _} ->
|
||||||
|
{error, bad_call_data}
|
||||||
|
catch
|
||||||
|
_T:_E ->
|
||||||
|
{error, bad_call_data}
|
||||||
|
end;
|
||||||
|
{error, _} ->
|
||||||
|
{error, unknown_function}
|
||||||
|
end.
|
||||||
|
|
||||||
|
|
||||||
-spec get_function_hash_from_calldata(CallData::binary()) ->
|
-spec get_function_hash_from_calldata(CallData::binary()) ->
|
||||||
{ok, binary()} | {error, term()}.
|
{ok, binary()} | {error, term()}.
|
||||||
get_function_hash_from_calldata(CallData) ->
|
get_function_hash_from_calldata(CallData) ->
|
||||||
@@ -80,12 +98,13 @@ get_function_hash_from_calldata(CallData) ->
|
|||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% Handle type info from contract meta data
|
%%% Handle type info from contract meta data
|
||||||
|
|
||||||
-spec function_type_info(function_name(), [typerep()], typerep()) ->
|
-spec function_type_info(function_name(), boolean(), [typerep()], typerep()) ->
|
||||||
function_type_info().
|
function_type_info().
|
||||||
function_type_info(Name, ArgTypes, OutType) ->
|
function_type_info(Name, Payable, ArgTypes, OutType) ->
|
||||||
ArgType = {tuple, ArgTypes},
|
ArgType = {tuple, ArgTypes},
|
||||||
{ function_type_hash(Name, ArgType, OutType)
|
{ function_type_hash(Name, ArgType, OutType)
|
||||||
, Name
|
, Name
|
||||||
|
, Payable
|
||||||
, aeb_heap:to_binary(ArgType)
|
, aeb_heap:to_binary(ArgType)
|
||||||
, aeb_heap:to_binary(OutType)
|
, aeb_heap:to_binary(OutType)
|
||||||
}.
|
}.
|
||||||
@@ -104,35 +123,46 @@ function_type_hash(Name, ArgType, OutType) when is_binary(Name) ->
|
|||||||
{'ok', typerep()} | {'error', 'bad_type_data' | 'unknown_function'}.
|
{'ok', typerep()} | {'error', 'bad_type_data' | 'unknown_function'}.
|
||||||
arg_typerep_from_function(Function, TypeInfo) ->
|
arg_typerep_from_function(Function, TypeInfo) ->
|
||||||
case lists:keyfind(Function, 2, TypeInfo) of
|
case lists:keyfind(Function, 2, TypeInfo) of
|
||||||
{_TypeHash, Function, ArgTypeBin,_OutTypeBin} ->
|
{_TypeHash, Function, ArgTypeBin, _OutTypeBin} ->
|
||||||
case aeb_heap:from_binary(typerep, ArgTypeBin) of
|
arg_typerep_from_type_binary(ArgTypeBin);
|
||||||
{ok, ArgType} -> {ok, ArgType};
|
{_TypeHash, Function, _Payable, ArgTypeBin, _OutTypeBin} ->
|
||||||
{error,_} -> {error, bad_type_data}
|
arg_typerep_from_type_binary(ArgTypeBin);
|
||||||
end;
|
|
||||||
false ->
|
false ->
|
||||||
{error, unknown_function}
|
{error, unknown_function}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
arg_typerep_from_type_binary(ArgTBin) ->
|
||||||
|
case aeb_heap:from_binary(typerep, ArgTBin) of
|
||||||
|
{ok, ArgT} -> {ok, ArgT};
|
||||||
|
{error,_} -> {error, bad_type_data}
|
||||||
|
end.
|
||||||
|
|
||||||
-spec typereps_from_type_hash(hash(), type_info()) ->
|
-spec typereps_from_type_hash(hash(), type_info()) ->
|
||||||
{'ok', typerep(), typerep()} | {'error', 'bad_type_data' | 'unknown_function'}.
|
{'ok', typerep(), typerep()} | {'error', 'bad_type_data' | 'unknown_function'}.
|
||||||
typereps_from_type_hash(TypeHash, TypeInfo) ->
|
typereps_from_type_hash(TypeHash, TypeInfo) ->
|
||||||
case lists:keyfind(TypeHash, 1, TypeInfo) of
|
case lists:keyfind(TypeHash, 1, TypeInfo) of
|
||||||
{TypeHash,_Function, ArgTypeBin, OutTypeBin} ->
|
{TypeHash, _Function, ArgTypeBin, OutTypeBin} ->
|
||||||
case {aeb_heap:from_binary(typerep, ArgTypeBin),
|
typereps_from_type_binaries(ArgTypeBin, OutTypeBin);
|
||||||
aeb_heap:from_binary(typerep, OutTypeBin)} of
|
{TypeHash, _Function, _Payable, ArgTypeBin, OutTypeBin} ->
|
||||||
{{ok, ArgType}, {ok, OutType}} -> {ok, ArgType, OutType};
|
typereps_from_type_binaries(ArgTypeBin, OutTypeBin);
|
||||||
{_, _} -> {error, bad_type_data}
|
|
||||||
end;
|
|
||||||
false ->
|
false ->
|
||||||
{error, unknown_function}
|
{error, unknown_function}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
typereps_from_type_binaries(ArgTBin, OutTBin) ->
|
||||||
|
case {aeb_heap:from_binary(typerep, ArgTBin), aeb_heap:from_binary(typerep, OutTBin)} of
|
||||||
|
{{ok, ArgT}, {ok, OutT}} -> {ok, ArgT, OutT};
|
||||||
|
{_, _} -> {error, bad_type_data}
|
||||||
|
end.
|
||||||
|
|
||||||
-spec function_name_from_type_hash(hash(), type_info()) ->
|
-spec function_name_from_type_hash(hash(), type_info()) ->
|
||||||
{'ok', function_name()}
|
{'ok', function_name()}
|
||||||
| {'error', 'unknown_function'}.
|
| {'error', 'unknown_function'}.
|
||||||
function_name_from_type_hash(TypeHash, TypeInfo) ->
|
function_name_from_type_hash(TypeHash, TypeInfo) ->
|
||||||
case lists:keyfind(TypeHash, 1, TypeInfo) of
|
case lists:keyfind(TypeHash, 1, TypeInfo) of
|
||||||
{TypeHash, Function,_ArgTypeBin,_OutTypeBin} ->
|
{TypeHash, Function, _ArgTypeBin, _OutTypeBin} ->
|
||||||
|
{ok, Function};
|
||||||
|
{TypeHash, Function, _Payable, _ArgTypeBin, _OutTypeBin} ->
|
||||||
{ok, Function};
|
{ok, Function};
|
||||||
false ->
|
false ->
|
||||||
{error, unknown_function}
|
{error, unknown_function}
|
||||||
@@ -143,8 +173,22 @@ function_name_from_type_hash(TypeHash, TypeInfo) ->
|
|||||||
| {'error', 'unknown_function'}.
|
| {'error', 'unknown_function'}.
|
||||||
type_hash_from_function_name(Name, TypeInfo) ->
|
type_hash_from_function_name(Name, TypeInfo) ->
|
||||||
case lists:keyfind(Name, 2, TypeInfo) of
|
case lists:keyfind(Name, 2, TypeInfo) of
|
||||||
{TypeHash, Name,_ArgTypeBin,_OutTypeBin} ->
|
{TypeHash, Name, _ArgTypeBin, _OutTypeBin} ->
|
||||||
|
{ok, TypeHash};
|
||||||
|
{TypeHash, Name, _Payable, _ArgTypeBin, _OutTypeBin} ->
|
||||||
{ok, TypeHash};
|
{ok, TypeHash};
|
||||||
false ->
|
false ->
|
||||||
{error, unknown_function}
|
{error, unknown_function}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
-spec is_payable(hash(), type_info()) -> {ok, boolean()} | {error, 'unknown_function'}.
|
||||||
|
is_payable(TypeHash, TypeInfo) ->
|
||||||
|
case lists:keyfind(TypeHash, 1, TypeInfo) of
|
||||||
|
{TypeHash, _Function, _ArgTypeBin, _OutTypeBin} ->
|
||||||
|
{ok, true};
|
||||||
|
{TypeHash, _Function, Payable, _ArgTypeBin, _OutTypeBin} ->
|
||||||
|
{ok, Payable};
|
||||||
|
false ->
|
||||||
|
{error, unknown_function}
|
||||||
|
end.
|
||||||
|
|
||||||
|
|||||||
+11
-3
@@ -13,7 +13,8 @@
|
|||||||
, decode_calldata/2
|
, decode_calldata/2
|
||||||
, get_function_hash_from_calldata/1
|
, get_function_hash_from_calldata/1
|
||||||
, get_function_name_from_function_hash/2
|
, get_function_name_from_function_hash/2
|
||||||
, get_function_type_from_function_hash/2 ]).
|
, get_function_type_from_function_hash/2
|
||||||
|
, abi_version/0 ]).
|
||||||
|
|
||||||
-include("../include/aeb_fate_data.hrl").
|
-include("../include/aeb_fate_data.hrl").
|
||||||
|
|
||||||
@@ -21,6 +22,11 @@
|
|||||||
%%% API
|
%%% API
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
|
|
||||||
|
%% Shall match ?ABI_FATE_SOPHIA_1
|
||||||
|
-spec abi_version() -> integer().
|
||||||
|
abi_version() ->
|
||||||
|
3.
|
||||||
|
|
||||||
-spec create_calldata(list(), [term()]) -> {ok, binary()}.
|
-spec create_calldata(list(), [term()]) -> {ok, binary()}.
|
||||||
create_calldata(FunName, Args) ->
|
create_calldata(FunName, Args) ->
|
||||||
FunctionId = aeb_fate_code:symbol_identifier(list_to_binary(FunName)),
|
FunctionId = aeb_fate_code:symbol_identifier(list_to_binary(FunName)),
|
||||||
@@ -31,9 +37,11 @@ create_calldata(FunName, Args) ->
|
|||||||
-spec decode_calldata(list(), binary()) -> {ok, term()} | {error, term()}.
|
-spec decode_calldata(list(), binary()) -> {ok, term()} | {error, term()}.
|
||||||
decode_calldata(FunName, Calldata) ->
|
decode_calldata(FunName, Calldata) ->
|
||||||
FunctionId = aeb_fate_code:symbol_identifier(list_to_binary(FunName)),
|
FunctionId = aeb_fate_code:symbol_identifier(list_to_binary(FunName)),
|
||||||
case ?FATE_TUPLE_ELEMENTS(aeb_fate_encoding:deserialize(Calldata)) of
|
try ?FATE_TUPLE_ELEMENTS(aeb_fate_encoding:deserialize(Calldata)) of
|
||||||
[FunctionId, FateArgs] -> {ok, ?FATE_TUPLE_ELEMENTS(FateArgs)};
|
[FunctionId, FateArgs] -> {ok, ?FATE_TUPLE_ELEMENTS(FateArgs)};
|
||||||
_ -> {error, decode_error}
|
_ -> {error, decode_error}
|
||||||
|
catch _:_ ->
|
||||||
|
{error, decode_error}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec get_function_name_from_function_hash(binary(), aeb_fate_code:fcode()) ->
|
-spec get_function_name_from_function_hash(binary(), aeb_fate_code:fcode()) ->
|
||||||
@@ -66,6 +74,6 @@ get_function_type_from_function_hash(SymbolHash, FateCode) ->
|
|||||||
case maps:get(SymbolHash, Functions, undefined) of
|
case maps:get(SymbolHash, Functions, undefined) of
|
||||||
undefined ->
|
undefined ->
|
||||||
{error, no_function_matching_function_hash};
|
{error, no_function_matching_function_hash};
|
||||||
{{ArgTypes, RetType}, _Code} ->
|
{_Attrs, {ArgTypes, RetType}, _Code} ->
|
||||||
{ok, ArgTypes, RetType}
|
{ok, ArgTypes, RetType}
|
||||||
end.
|
end.
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ format_functions(Functions, Symbols) ->
|
|||||||
lists:sort(maps:to_list(CodeMap)),
|
lists:sort(maps:to_list(CodeMap)),
|
||||||
Symbols)
|
Symbols)
|
||||||
||
|
||
|
||||||
{Name, {Sig, CodeMap}} <- maps:to_list(Functions)].
|
{Name, {_Attrs, Sig, CodeMap}} <- maps:to_list(Functions)].
|
||||||
|
|
||||||
|
|
||||||
format(Name, Sig, BBs, Symbols) ->
|
format(Name, Sig, BBs, Symbols) ->
|
||||||
@@ -281,6 +281,10 @@ to_bytecode([{bytes,_line, Value}|Rest],
|
|||||||
to_bytecode(Rest, Address, Env,
|
to_bytecode(Rest, Address, Env,
|
||||||
[{immediate, aeb_fate_data:make_bytes(Value)}|Code],
|
[{immediate, aeb_fate_data:make_bytes(Value)}|Code],
|
||||||
Opts);
|
Opts);
|
||||||
|
to_bytecode([{contract_bytearray,_line, FateCode}|Rest], Address, Env, Code, Opts) ->
|
||||||
|
to_bytecode(Rest, Address, Env,
|
||||||
|
[{immediate, aeb_fate_data:make_contract_bytearray(FateCode)}|Code],
|
||||||
|
Opts);
|
||||||
to_bytecode([{id,_line, ID}|Rest], Address, Env, Code, Opts) ->
|
to_bytecode([{id,_line, ID}|Rest], Address, Env, Code, Opts) ->
|
||||||
{Env2, Id} = insert_symbol(list_to_binary(ID), Env),
|
{Env2, Id} = insert_symbol(list_to_binary(ID), Env),
|
||||||
to_bytecode(Rest, Address, Env2, [{immediate, Id}|Code], Opts);
|
to_bytecode(Rest, Address, Env2, [{immediate, Id}|Code], Opts);
|
||||||
@@ -352,7 +356,7 @@ parse_tuple(Tokens) ->
|
|||||||
|
|
||||||
|
|
||||||
parse_variant([{start_variant,_line}
|
parse_variant([{start_variant,_line}
|
||||||
, {'[', _line}
|
, {'[', _}
|
||||||
| Rest]) ->
|
| Rest]) ->
|
||||||
{Arities, Rest2} = parse_list(Rest),
|
{Arities, Rest2} = parse_list(Rest),
|
||||||
%% Make sure Arities is a list of bytes.
|
%% Make sure Arities is a list of bytes.
|
||||||
@@ -360,7 +364,7 @@ parse_variant([{start_variant,_line}
|
|||||||
is_integer(A), A < 256],
|
is_integer(A), A < 256],
|
||||||
|
|
||||||
[{'|',_}
|
[{'|',_}
|
||||||
, {int,_line, Tag}
|
, {int,_, Tag}
|
||||||
, {'|',_}
|
, {'|',_}
|
||||||
, {'(',_} | Rest3] = Rest2,
|
, {'(',_} | Rest3] = Rest2,
|
||||||
{Elements , [{end_variant, _} | Rest4]} = parse_tuple(Rest3),
|
{Elements , [{end_variant, _} | Rest4]} = parse_tuple(Rest3),
|
||||||
@@ -484,7 +488,7 @@ insert_fun({NameString, ArgType, RetType}, Code, #{ fate_code := FateCode
|
|||||||
{FateCode1, Id} = aeb_fate_code:insert_symbol(Name, FateCode),
|
{FateCode1, Id} = aeb_fate_code:insert_symbol(Name, FateCode),
|
||||||
BodyByteCode = aeb_fate_code:serialize_code(lists:reverse(Code)),
|
BodyByteCode = aeb_fate_code:serialize_code(lists:reverse(Code)),
|
||||||
SigByteCode = aeb_fate_code:serialize_signature({ArgType, RetType}),
|
SigByteCode = aeb_fate_code:serialize_signature({ArgType, RetType}),
|
||||||
FunByteCode = [?FUNCTION, Id, SigByteCode, BodyByteCode],
|
FunByteCode = [?FUNCTION, Id, aeb_fate_encoding:serialize(0), SigByteCode, BodyByteCode],
|
||||||
Env#{ functions => Funs#{ Id => FunByteCode }
|
Env#{ functions => Funs#{ Id => FunByteCode }
|
||||||
, fate_code => FateCode1}.
|
, fate_code => FateCode1}.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ BASE58 = [123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]
|
|||||||
BASE64 = [A-Za-z0-9+/=]
|
BASE64 = [A-Za-z0-9+/=]
|
||||||
INT = {DIGIT}+
|
INT = {DIGIT}+
|
||||||
HEX = 0x{HEXDIGIT}+
|
HEX = 0x{HEXDIGIT}+
|
||||||
OBJECT = @[a-z][a-z]_{BASE58}+
|
OBJ_PFX = (ak|ct|ok|oq|ch|sg)
|
||||||
|
OBJECT = @{OBJ_PFX}_{BASE58}+
|
||||||
|
CODE = @cb_{BASE64}+
|
||||||
BYTES = #{BASE64}+
|
BYTES = #{BASE64}+
|
||||||
WS = [\000-\s]
|
WS = [\000-\s]
|
||||||
ID = {LOWER}[a-zA-Z0-9_]*
|
ID = {LOWER}[a-zA-Z0-9_]*
|
||||||
@@ -37,6 +39,8 @@ FUNCTION : {token, {function, TokenLine, 'FUNCTION' }}.
|
|||||||
|
|
||||||
{BYTES} :
|
{BYTES} :
|
||||||
{token, {bytes, TokenLine, parse_hash(TokenChars)}}.
|
{token, {bytes, TokenLine, parse_hash(TokenChars)}}.
|
||||||
|
{CODE} :
|
||||||
|
{token, {contract_bytearray, TokenLine, parse_contract_bytearray(TokenChars)}}.
|
||||||
{OBJECT} :
|
{OBJECT} :
|
||||||
{token, {object, TokenLine, parse_object(TokenChars)}}.
|
{token, {object, TokenLine, parse_object(TokenChars)}}.
|
||||||
{ID} :
|
{ID} :
|
||||||
@@ -107,10 +111,14 @@ parse_arg("arg" ++ N) -> list_to_integer(N).
|
|||||||
parse_var("var" ++ N) -> list_to_integer(N).
|
parse_var("var" ++ N) -> list_to_integer(N).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
parse_hash("#" ++ Chars) ->
|
parse_hash("#" ++ Chars) ->
|
||||||
base64:decode(Chars).
|
base64:decode(Chars).
|
||||||
|
|
||||||
|
parse_contract_bytearray("@" ++ Chars) ->
|
||||||
|
case aeser_api_encoder:decode(unicode:characters_to_binary(Chars)) of
|
||||||
|
{contract_bytearray, Bin} -> Bin
|
||||||
|
end.
|
||||||
|
|
||||||
parse_object([_|Chars]) ->
|
parse_object([_|Chars]) ->
|
||||||
case aeser_api_encoder:decode(unicode:characters_to_binary(Chars)) of
|
case aeser_api_encoder:decode(unicode:characters_to_binary(Chars)) of
|
||||||
{account_pubkey, Bin} -> {address, Bin};
|
{account_pubkey, Bin} -> {address, Bin};
|
||||||
|
|||||||
+50
-47
@@ -11,7 +11,7 @@
|
|||||||
, deserialize/1
|
, deserialize/1
|
||||||
, functions/1
|
, functions/1
|
||||||
, insert_annotation/4
|
, insert_annotation/4
|
||||||
, insert_fun/4
|
, insert_fun/5
|
||||||
, insert_symbol/2
|
, insert_symbol/2
|
||||||
, new/0
|
, new/0
|
||||||
, serialize/1
|
, serialize/1
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
, serialize/3
|
, serialize/3
|
||||||
, serialize_code/1
|
, serialize_code/1
|
||||||
, serialize_signature/1
|
, serialize_signature/1
|
||||||
|
, strip_init_function/1
|
||||||
, symbol_identifier/1
|
, symbol_identifier/1
|
||||||
, symbols/1
|
, symbols/1
|
||||||
]).
|
]).
|
||||||
@@ -26,11 +27,9 @@
|
|||||||
-include("../include/aeb_fate_opcodes.hrl").
|
-include("../include/aeb_fate_opcodes.hrl").
|
||||||
-include("../include/aeb_fate_data.hrl").
|
-include("../include/aeb_fate_data.hrl").
|
||||||
|
|
||||||
-ifdef(EQC).
|
|
||||||
-export([ update_annotations/2
|
-export([ update_annotations/2
|
||||||
, update_functions/2
|
, update_functions/2
|
||||||
, update_symbols/2]).
|
, update_symbols/2]).
|
||||||
-endif.
|
|
||||||
|
|
||||||
-record(fcode, { functions = #{} :: map()
|
-record(fcode, { functions = #{} :: map()
|
||||||
, symbols = #{} :: map()
|
, symbols = #{} :: map()
|
||||||
@@ -39,31 +38,8 @@
|
|||||||
|
|
||||||
-define(HASH_BYTES, 32).
|
-define(HASH_BYTES, 32).
|
||||||
|
|
||||||
-type fate_arg_spec() :: {'immediate', aeb_fate_data:fate_type()}
|
|
||||||
| {'arg', integer()}
|
|
||||||
| {'var', integer()}
|
|
||||||
| {'stack', 0}.
|
|
||||||
|
|
||||||
-type fate_instruction() :: atom()
|
|
||||||
| {atom(), fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec(), fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec(), fate_arg_spec(), fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec()}
|
|
||||||
| {atom(), fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec(), fate_arg_spec(), fate_arg_spec(),
|
|
||||||
fate_arg_spec(), fate_arg_spec()}.
|
|
||||||
|
|
||||||
|
|
||||||
-type fcode() :: #fcode{}.
|
-type fcode() :: #fcode{}.
|
||||||
-export_type([fate_arg_spec/0, fate_instruction/0, fcode/0]).
|
-export_type([fcode/0]).
|
||||||
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% API
|
%%% API
|
||||||
@@ -95,9 +71,9 @@ symbol_identifier(Bin) ->
|
|||||||
{ok, <<X:4/binary,_/binary>> } = eblake2:blake2b(?HASH_BYTES, Bin),
|
{ok, <<X:4/binary,_/binary>> } = eblake2:blake2b(?HASH_BYTES, Bin),
|
||||||
X.
|
X.
|
||||||
|
|
||||||
insert_fun(Name, {ArgType, RetType}, #{} = BBs, FCode) ->
|
insert_fun(Name, Attrs, {ArgType, RetType}, #{} = BBs, FCode) ->
|
||||||
{F1, ID} = insert_symbol(Name, FCode),
|
{F1, ID} = insert_symbol(Name, FCode),
|
||||||
update_functions(F1, #{ID => {{ArgType, RetType}, BBs}}).
|
update_functions(F1, #{ID => {Attrs, {ArgType, RetType}, BBs}}).
|
||||||
|
|
||||||
insert_symbol(Name, #fcode{ symbols = Syms } = F) ->
|
insert_symbol(Name, #fcode{ symbols = Syms } = F) ->
|
||||||
ID = symbol_identifier(Name),
|
ID = symbol_identifier(Name),
|
||||||
@@ -115,6 +91,12 @@ insert_annotation(comment =_Type, Line, Comment, FCode) ->
|
|||||||
Value = aeb_fate_data:make_string(Comment),
|
Value = aeb_fate_data:make_string(Comment),
|
||||||
update_annotations(FCode, #{ Key => Value }).
|
update_annotations(FCode, #{ Key => Value }).
|
||||||
|
|
||||||
|
strip_init_function(#fcode{ functions = Funs,
|
||||||
|
symbols = Syms } = FCode) ->
|
||||||
|
Funs1 = maps:remove(?FATE_INIT_ID, Funs),
|
||||||
|
Syms1 = maps:remove(?FATE_INIT_ID, Syms),
|
||||||
|
FCode#fcode{ functions = Funs1, symbols = Syms1 }.
|
||||||
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% Serialization
|
%%% Serialization
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
@@ -151,10 +133,17 @@ to_hexstring(ByteList) ->
|
|||||||
serialize_functions(#fcode{ functions = Functions }) ->
|
serialize_functions(#fcode{ functions = Functions }) ->
|
||||||
%% Sort the functions on name to get a canonical serialisation.
|
%% Sort the functions on name to get a canonical serialisation.
|
||||||
iolist_to_binary(
|
iolist_to_binary(
|
||||||
lists:foldr(fun({Id, {Sig, C}}, Acc) ->
|
lists:foldr(fun({Id, {Attrs, Sig, C}}, Acc) ->
|
||||||
[[?FUNCTION, Id, serialize_signature(Sig), serialize_bbs(C)] | Acc]
|
[[?FUNCTION, Id, serialize_attributes(Attrs), serialize_signature(Sig), serialize_bbs(C)] | Acc]
|
||||||
end, [], lists:sort(maps:to_list(Functions)))).
|
end, [], lists:sort(maps:to_list(Functions)))).
|
||||||
|
|
||||||
|
serialize_attributes(Attrs) ->
|
||||||
|
AttrVal = lists:sum([ attr_value(Attr) || Attr <- Attrs ]),
|
||||||
|
aeb_fate_encoding:serialize(?MAKE_FATE_INTEGER(AttrVal)).
|
||||||
|
|
||||||
|
attr_value(private) -> 1;
|
||||||
|
attr_value(payable) -> 2.
|
||||||
|
|
||||||
serialize_signature({Args, RetType}) ->
|
serialize_signature({Args, RetType}) ->
|
||||||
[aeb_fate_encoding:serialize_type({tuple, Args}) |
|
[aeb_fate_encoding:serialize_type({tuple, Args}) |
|
||||||
aeb_fate_encoding:serialize_type(RetType)].
|
aeb_fate_encoding:serialize_type(RetType)].
|
||||||
@@ -162,7 +151,7 @@ serialize_signature({Args, RetType}) ->
|
|||||||
serialize_symbol_table(#fcode{ symbols = Symbols }) ->
|
serialize_symbol_table(#fcode{ symbols = Symbols }) ->
|
||||||
aeb_fate_encoding:serialize(aeb_fate_data:make_map(Symbols)).
|
aeb_fate_encoding:serialize(aeb_fate_data:make_map(Symbols)).
|
||||||
|
|
||||||
serialize_annotations(#fcode{ annotations = Annotations}) ->
|
serialize_annotations(#fcode{ annotations = Annotations }) ->
|
||||||
aeb_fate_encoding:serialize(aeb_fate_data:make_map(Annotations)).
|
aeb_fate_encoding:serialize(aeb_fate_data:make_map(Annotations)).
|
||||||
|
|
||||||
serialize_bbs(#{} = BBs) ->
|
serialize_bbs(#{} = BBs) ->
|
||||||
@@ -189,8 +178,8 @@ serialize_op(Op) ->
|
|||||||
|
|
||||||
sanity_check(#fcode{ functions = Funs }) ->
|
sanity_check(#fcode{ functions = Funs }) ->
|
||||||
_ = [ case Def of
|
_ = [ case Def of
|
||||||
{_, BBs} when byte_size(Id) == 4 -> sanity_check_bbs(BBs);
|
{_, _, BBs} when byte_size(Id) == 4 -> sanity_check_bbs(BBs);
|
||||||
_ -> error({illegal_function_id, Id})
|
_ -> error({illegal_function_id, Id})
|
||||||
end || {Id, Def} <- maps:to_list(Funs) ],
|
end || {Id, Def} <- maps:to_list(Funs) ],
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
@@ -326,33 +315,35 @@ deserialize_functions(<<?FUNCTION:8, A, B, C, D, Rest/binary>>,
|
|||||||
, bb := 0
|
, bb := 0
|
||||||
, current_bb_code := []
|
, current_bb_code := []
|
||||||
} = Env) ->
|
} = Env) ->
|
||||||
{Sig, Rest2} = deserialize_signature(Rest),
|
{Attrs, Rest2} = deserialize_attributes(Rest),
|
||||||
Env2 = Env#{function => {<<A,B,C,D>>, Sig}},
|
{Sig, Rest3} = deserialize_signature(Rest2),
|
||||||
deserialize_functions(Rest2, Env2);
|
Env2 = Env#{function => {<<A,B,C,D>>, Attrs, Sig}},
|
||||||
|
deserialize_functions(Rest3, Env2);
|
||||||
deserialize_functions(<<?FUNCTION:8, A, B, C, D, Rest/binary>>,
|
deserialize_functions(<<?FUNCTION:8, A, B, C, D, Rest/binary>>,
|
||||||
#{ function := {F, Sig}
|
#{ function := {F, Attrs, Sig}
|
||||||
, bb := BB
|
, bb := BB
|
||||||
, current_bb_code := Code
|
, current_bb_code := Code
|
||||||
, code := Program
|
, code := Program
|
||||||
, functions := Funs} = Env) ->
|
, functions := Funs} = Env) ->
|
||||||
{NewSig, Rest2} = deserialize_signature(Rest),
|
{NewAttrs, Rest2} = deserialize_attributes(Rest),
|
||||||
|
{NewSig, Rest3} = deserialize_signature(Rest2),
|
||||||
case Code of
|
case Code of
|
||||||
[] ->
|
[] ->
|
||||||
Env2 = Env#{ bb => 0
|
Env2 = Env#{ bb => 0
|
||||||
, current_bb_code => []
|
, current_bb_code => []
|
||||||
, function => {<<A,B,C,D>>, NewSig}
|
, function => {<<A,B,C,D>>, NewAttrs, NewSig}
|
||||||
, code => #{}
|
, code => #{}
|
||||||
, functions => Funs#{F => {Sig, Program}}},
|
, functions => Funs#{F => {Attrs, Sig, Program}}},
|
||||||
deserialize_functions(Rest2, Env2);
|
deserialize_functions(Rest3, Env2);
|
||||||
_ ->
|
_ ->
|
||||||
Env2 = Env#{ bb => 0
|
Env2 = Env#{ bb => 0
|
||||||
, current_bb_code => []
|
, current_bb_code => []
|
||||||
, function => {<<A,B,C,D>>, NewSig}
|
, function => {<<A,B,C,D>>, NewAttrs, NewSig}
|
||||||
, code => #{}
|
, code => #{}
|
||||||
, functions =>
|
, functions =>
|
||||||
Funs#{F => {Sig,
|
Funs#{F => {Attrs, Sig,
|
||||||
Program#{ BB => lists:reverse(Code)}}}},
|
Program#{ BB => lists:reverse(Code)}}}},
|
||||||
deserialize_functions(Rest2, Env2)
|
deserialize_functions(Rest3, Env2)
|
||||||
end;
|
end;
|
||||||
deserialize_functions(<<_Op:8, _Rest/binary>>,
|
deserialize_functions(<<_Op:8, _Rest/binary>>,
|
||||||
#{ function := none }) ->
|
#{ function := none }) ->
|
||||||
@@ -374,7 +365,7 @@ deserialize_functions(<<Op:8, Rest/binary>>,
|
|||||||
deserialize_functions(<<>>, #{ function := none
|
deserialize_functions(<<>>, #{ function := none
|
||||||
, functions := Funs}) ->
|
, functions := Funs}) ->
|
||||||
Funs;
|
Funs;
|
||||||
deserialize_functions(<<>>, #{ function := {F, Sig}
|
deserialize_functions(<<>>, #{ function := {F, Attrs, Sig}
|
||||||
, bb := BB
|
, bb := BB
|
||||||
, current_bb_code := Code
|
, current_bb_code := Code
|
||||||
, code := Program
|
, code := Program
|
||||||
@@ -384,7 +375,7 @@ deserialize_functions(<<>>, #{ function := {F, Sig}
|
|||||||
[] -> Program;
|
[] -> Program;
|
||||||
_ -> Program#{ BB => lists:reverse(Code)}
|
_ -> Program#{ BB => lists:reverse(Code)}
|
||||||
end,
|
end,
|
||||||
Funs#{F => {Sig, FunctionCode}}.
|
Funs#{F => {Attrs, Sig, FunctionCode}}.
|
||||||
|
|
||||||
deserialize_op(Op, Rest, Code) ->
|
deserialize_op(Op, Rest, Code) ->
|
||||||
OpName = aeb_fate_opcodes:mnemonic(Op),
|
OpName = aeb_fate_opcodes:mnemonic(Op),
|
||||||
@@ -422,6 +413,18 @@ deserialize_n_args(N, <<M7:2, M6:2, M5:2, M4:2, M3:2, M2:2, M1:2, M0:2,
|
|||||||
end
|
end
|
||||||
end, Rest, ArgMods).
|
end, Rest, ArgMods).
|
||||||
|
|
||||||
|
deserialize_attributes(Binary) ->
|
||||||
|
{AttrVal, Rest} = aeb_fate_encoding:deserialize_one(Binary),
|
||||||
|
Attrs = [ attr(AVal) || AVal <- attr_vals(1, AttrVal) ],
|
||||||
|
{lists:sort(Attrs), Rest}.
|
||||||
|
|
||||||
|
attr_vals(_, 0) -> [];
|
||||||
|
attr_vals(X, N) when N rem 2 == 0 -> attr_vals(X + 1, N div 2);
|
||||||
|
attr_vals(X, N) -> [X | attr_vals(X + 1, N div 2)].
|
||||||
|
|
||||||
|
attr(1) -> private;
|
||||||
|
attr(2) -> payable.
|
||||||
|
|
||||||
deserialize_signature(Binary) ->
|
deserialize_signature(Binary) ->
|
||||||
{{tuple, Args}, Rest} = aeb_fate_encoding:deserialize_type(Binary),
|
{{tuple, Args}, Rest} = aeb_fate_encoding:deserialize_type(Binary),
|
||||||
{RetType, Rest2} = aeb_fate_encoding:deserialize_type(Rest),
|
{RetType, Rest2} = aeb_fate_encoding:deserialize_type(Rest),
|
||||||
|
|||||||
+57
-23
@@ -10,16 +10,20 @@
|
|||||||
-type fate_list() :: ?FATE_LIST_T.
|
-type fate_list() :: ?FATE_LIST_T.
|
||||||
-type fate_unit() :: ?FATE_UNIT_T.
|
-type fate_unit() :: ?FATE_UNIT_T.
|
||||||
-type fate_map() :: ?FATE_MAP_T.
|
-type fate_map() :: ?FATE_MAP_T.
|
||||||
|
-type fate_store_map() :: ?FATE_STORE_MAP_T.
|
||||||
-type fate_string() :: ?FATE_STRING_T.
|
-type fate_string() :: ?FATE_STRING_T.
|
||||||
-type fate_address() :: ?FATE_ADDRESS_T.
|
-type fate_address() :: ?FATE_ADDRESS_T.
|
||||||
-type fate_hash() :: ?FATE_BYTES_T(32).
|
-type fate_hash() :: ?FATE_BYTES_T(32).
|
||||||
-type fate_signature() :: ?FATE_BYTES_T(64).
|
-type fate_signature() :: ?FATE_BYTES_T(64).
|
||||||
-type fate_contract() :: ?FATE_CONTRACT_T.
|
-type fate_contract() :: ?FATE_CONTRACT_T.
|
||||||
-type fate_oracle() :: ?FATE_ORACLE_T.
|
-type fate_oracle() :: ?FATE_ORACLE_T.
|
||||||
|
-type fate_oracle_q() :: ?FATE_ORACLE_Q_T.
|
||||||
-type fate_channel() :: ?FATE_CHANNEL_T.
|
-type fate_channel() :: ?FATE_CHANNEL_T.
|
||||||
-type fate_variant() :: ?FATE_VARIANT_T.
|
-type fate_variant() :: ?FATE_VARIANT_T.
|
||||||
-type fate_tuple() :: ?FATE_TUPLE_T.
|
-type fate_tuple() :: ?FATE_TUPLE_T.
|
||||||
-type fate_bits() :: ?FATE_BITS_T.
|
-type fate_bits() :: ?FATE_BITS_T.
|
||||||
|
-type fate_typerep() :: ?FATE_TYPEREP_T.
|
||||||
|
-type fate_contract_bytearray() :: ?FATE_CONTRACT_BYTEARRAY_T.
|
||||||
|
|
||||||
-type fate_type_type() :: integer
|
-type fate_type_type() :: integer
|
||||||
| boolean
|
| boolean
|
||||||
@@ -31,10 +35,12 @@
|
|||||||
| signature
|
| signature
|
||||||
| contract
|
| contract
|
||||||
| oracle
|
| oracle
|
||||||
|
| oracle_query
|
||||||
| channel
|
| channel
|
||||||
| bits
|
| bits
|
||||||
| string
|
| string
|
||||||
| {variant, [fate_type_type()]}.
|
| {variant, [fate_type_type()]}
|
||||||
|
| contract_bytearray.
|
||||||
|
|
||||||
|
|
||||||
-type fate_type() ::
|
-type fate_type() ::
|
||||||
@@ -50,10 +56,13 @@
|
|||||||
| fate_signature()
|
| fate_signature()
|
||||||
| fate_contract()
|
| fate_contract()
|
||||||
| fate_oracle()
|
| fate_oracle()
|
||||||
|
| fate_oracle_q()
|
||||||
| fate_channel()
|
| fate_channel()
|
||||||
| fate_variant()
|
| fate_variant()
|
||||||
| fate_map()
|
| fate_map()
|
||||||
| fate_bits().
|
| fate_bits()
|
||||||
|
| fate_typerep()
|
||||||
|
| fate_contract_bytearray().
|
||||||
|
|
||||||
-export_type([fate_type/0
|
-export_type([fate_type/0
|
||||||
, fate_boolean/0
|
, fate_boolean/0
|
||||||
@@ -71,6 +80,7 @@
|
|||||||
, fate_channel/0
|
, fate_channel/0
|
||||||
, fate_variant/0
|
, fate_variant/0
|
||||||
, fate_map/0
|
, fate_map/0
|
||||||
|
, fate_store_map/0
|
||||||
, fate_bits/0
|
, fate_bits/0
|
||||||
, fate_type_type/0
|
, fate_type_type/0
|
||||||
]).
|
]).
|
||||||
@@ -82,6 +92,8 @@
|
|||||||
, make_tuple/1
|
, make_tuple/1
|
||||||
, make_string/1
|
, make_string/1
|
||||||
, make_map/1
|
, make_map/1
|
||||||
|
, make_store_map/1
|
||||||
|
, make_store_map/2
|
||||||
, make_address/1
|
, make_address/1
|
||||||
, make_bytes/1
|
, make_bytes/1
|
||||||
, make_hash/1
|
, make_hash/1
|
||||||
@@ -93,6 +105,7 @@
|
|||||||
, make_bits/1
|
, make_bits/1
|
||||||
, make_unit/0
|
, make_unit/0
|
||||||
, make_typerep/1
|
, make_typerep/1
|
||||||
|
, make_contract_bytearray/1
|
||||||
]).
|
]).
|
||||||
-export([
|
-export([
|
||||||
elt/2
|
elt/2
|
||||||
@@ -108,6 +121,8 @@ make_list(L) -> ?MAKE_FATE_LIST(L).
|
|||||||
make_unit() -> ?FATE_UNIT.
|
make_unit() -> ?FATE_UNIT.
|
||||||
make_tuple(T) -> ?FATE_TUPLE(T).
|
make_tuple(T) -> ?FATE_TUPLE(T).
|
||||||
make_map(M) -> ?MAKE_FATE_MAP(M).
|
make_map(M) -> ?MAKE_FATE_MAP(M).
|
||||||
|
make_store_map(Id) -> make_store_map(#{}, Id).
|
||||||
|
make_store_map(Cache, Id) -> ?FATE_STORE_MAP(Cache, Id).
|
||||||
make_address(X) -> ?FATE_ADDRESS(X).
|
make_address(X) -> ?FATE_ADDRESS(X).
|
||||||
make_bytes(X) -> ?FATE_BYTES(X).
|
make_bytes(X) -> ?FATE_BYTES(X).
|
||||||
make_hash(X) -> make_bytes(X).
|
make_hash(X) -> make_bytes(X).
|
||||||
@@ -122,6 +137,7 @@ make_string(S) when is_list(S) ->
|
|||||||
?FATE_STRING(iolist_to_binary(S));
|
?FATE_STRING(iolist_to_binary(S));
|
||||||
make_string(S) when is_binary(S) -> ?FATE_STRING(S).
|
make_string(S) when is_binary(S) -> ?FATE_STRING(S).
|
||||||
make_typerep(T) -> ?FATE_TYPEREP(T).
|
make_typerep(T) -> ?FATE_TYPEREP(T).
|
||||||
|
make_contract_bytearray(B) -> ?FATE_CONTRACT_BYTEARRAY(B).
|
||||||
|
|
||||||
%% Tag points to the selected variant (zero based)
|
%% Tag points to the selected variant (zero based)
|
||||||
%% The arity of this variant is read from the list of provided arities
|
%% The arity of this variant is read from the list of provided arities
|
||||||
@@ -171,12 +187,14 @@ format(?FATE_CONTRACT(X)) ->
|
|||||||
["@", aeser_api_encoder:encode(contract_pubkey, X)];
|
["@", aeser_api_encoder:encode(contract_pubkey, X)];
|
||||||
format(?FATE_ORACLE(X)) ->
|
format(?FATE_ORACLE(X)) ->
|
||||||
["@", aeser_api_encoder:encode(oracle_pubkey, X)];
|
["@", aeser_api_encoder:encode(oracle_pubkey, X)];
|
||||||
format(?FATE_ORACLE_Q(X)) ->
|
format(?FATE_ORACLE_Q(X)) ->
|
||||||
["@", aeser_api_encoder:encode(oracle_query_id, X)];
|
["@", aeser_api_encoder:encode(oracle_query_id, X)];
|
||||||
format(?FATE_CHANNEL(X)) ->
|
format(?FATE_CHANNEL(X)) ->
|
||||||
["@", aeser_api_encoder:encode(channel, X)];
|
["@", aeser_api_encoder:encode(channel, X)];
|
||||||
format(?FATE_TYPEREP(X)) ->
|
format(?FATE_TYPEREP(X)) ->
|
||||||
["'", io_lib:format("~p", [X])];
|
["'", io_lib:format("~p", [X])];
|
||||||
|
format(?FATE_CONTRACT_BYTEARRAY(B)) ->
|
||||||
|
["@", aeser_api_encoder:encode(contract_bytearray, B)];
|
||||||
format(V) -> exit({not_a_fate_type, V}).
|
format(V) -> exit({not_a_fate_type, V}).
|
||||||
|
|
||||||
format_bits(0, Acc) -> Acc;
|
format_bits(0, Acc) -> Acc;
|
||||||
@@ -202,6 +220,7 @@ format_kvs(List) ->
|
|||||||
%% Total order of FATE terms.
|
%% Total order of FATE terms.
|
||||||
%% Integers < Booleans < Address < Channel < Contract < Oracle
|
%% Integers < Booleans < Address < Channel < Contract < Oracle
|
||||||
%% < Hash < Signature < Bits < String < Tuple < Map < List < Variant
|
%% < Hash < Signature < Bits < String < Tuple < Map < List < Variant
|
||||||
|
%% < Oracle query < FATE code
|
||||||
-define(ORD_INTEGER , 0).
|
-define(ORD_INTEGER , 0).
|
||||||
-define(ORD_BOOLEAN , 1).
|
-define(ORD_BOOLEAN , 1).
|
||||||
-define(ORD_ADDRESS , 2).
|
-define(ORD_ADDRESS , 2).
|
||||||
@@ -216,6 +235,7 @@ format_kvs(List) ->
|
|||||||
-define(ORD_LIST , 11).
|
-define(ORD_LIST , 11).
|
||||||
-define(ORD_VARIANT , 12).
|
-define(ORD_VARIANT , 12).
|
||||||
-define(ORD_ORACLE_Q , 13).
|
-define(ORD_ORACLE_Q , 13).
|
||||||
|
-define(ORD_CONTRACT_BYTEARRAY , 14).
|
||||||
|
|
||||||
-spec ordinal(fate_type()) -> integer().
|
-spec ordinal(fate_type()) -> integer().
|
||||||
ordinal(T) when ?IS_FATE_INTEGER(T) -> ?ORD_INTEGER;
|
ordinal(T) when ?IS_FATE_INTEGER(T) -> ?ORD_INTEGER;
|
||||||
@@ -231,7 +251,8 @@ ordinal(T) when ?IS_FATE_TUPLE(T) -> ?ORD_TUPLE;
|
|||||||
ordinal(T) when ?IS_FATE_MAP(T) -> ?ORD_MAP;
|
ordinal(T) when ?IS_FATE_MAP(T) -> ?ORD_MAP;
|
||||||
ordinal(T) when ?IS_FATE_LIST(T) -> ?ORD_LIST;
|
ordinal(T) when ?IS_FATE_LIST(T) -> ?ORD_LIST;
|
||||||
ordinal(T) when ?IS_FATE_VARIANT(T) -> ?ORD_VARIANT;
|
ordinal(T) when ?IS_FATE_VARIANT(T) -> ?ORD_VARIANT;
|
||||||
ordinal(T) when ?IS_FATE_ORACLE_Q(T) -> ?ORD_ORACLE_Q.
|
ordinal(T) when ?IS_FATE_ORACLE_Q(T) -> ?ORD_ORACLE_Q;
|
||||||
|
ordinal(T) when ?IS_FATE_CONTRACT_BYTEARRAY(T) -> ?ORD_CONTRACT_BYTEARRAY.
|
||||||
|
|
||||||
|
|
||||||
-spec lt(fate_type(), fate_type()) -> boolean().
|
-spec lt(fate_type(), fate_type()) -> boolean().
|
||||||
@@ -259,17 +280,9 @@ lt(?ORD_BITS, A, B) when ?IS_FATE_BITS(A), ?IS_FATE_BITS(B) ->
|
|||||||
true;
|
true;
|
||||||
true -> BitsA < BitsB
|
true -> BitsA < BitsB
|
||||||
end;
|
end;
|
||||||
lt(?ORD_STRING,?FATE_STRING(A), ?FATE_STRING(B)) ->
|
lt(?ORD_TUPLE, ?FATE_TUPLE(A), ?FATE_TUPLE(B)) ->
|
||||||
SizeA = size(A),
|
SizeA = tuple_size(A),
|
||||||
SizeB = size(B),
|
SizeB = tuple_size(B),
|
||||||
case SizeA - SizeB of
|
|
||||||
0 -> A < B;
|
|
||||||
N -> N < 0
|
|
||||||
end;
|
|
||||||
|
|
||||||
lt(?ORD_TUPLE,?FATE_TUPLE(A), ?FATE_TUPLE(B)) ->
|
|
||||||
SizeA = size(A),
|
|
||||||
SizeB = size(B),
|
|
||||||
case SizeA - SizeB of
|
case SizeA - SizeB of
|
||||||
0 -> tuple_elements_lt(0, A, B, SizeA);
|
0 -> tuple_elements_lt(0, A, B, SizeA);
|
||||||
N -> N < 0
|
N -> N < 0
|
||||||
@@ -284,19 +297,15 @@ lt(?ORD_MAP, ?FATE_MAP_VALUE(A), ?FATE_MAP_VALUE(B)) ->
|
|||||||
lt(?ORD_LIST, ?FATE_LIST_VALUE(_), ?FATE_LIST_VALUE([])) -> false;
|
lt(?ORD_LIST, ?FATE_LIST_VALUE(_), ?FATE_LIST_VALUE([])) -> false;
|
||||||
lt(?ORD_LIST, ?FATE_LIST_VALUE([]), ?FATE_LIST_VALUE(_)) -> true;
|
lt(?ORD_LIST, ?FATE_LIST_VALUE([]), ?FATE_LIST_VALUE(_)) -> true;
|
||||||
lt(?ORD_LIST, ?FATE_LIST_VALUE([A|RA]), ?FATE_LIST_VALUE([B|RB])) ->
|
lt(?ORD_LIST, ?FATE_LIST_VALUE([A|RA]), ?FATE_LIST_VALUE([B|RB])) ->
|
||||||
O1 = ordinal(A),
|
if A == B -> lt(RA, RB);
|
||||||
O2 = ordinal(B),
|
true -> lt(A, B)
|
||||||
if O1 == O2 ->
|
|
||||||
if A == B -> lt(RA, RB);
|
|
||||||
true -> A < B
|
|
||||||
end;
|
|
||||||
true -> O1 < O2
|
|
||||||
end;
|
end;
|
||||||
lt(?ORD_VARIANT, ?FATE_VARIANT(AritiesA, TagA, TA),
|
lt(?ORD_VARIANT, ?FATE_VARIANT(AritiesA, TagA, TA),
|
||||||
?FATE_VARIANT(AritiesB, TagB, TB)) ->
|
?FATE_VARIANT(AritiesB, TagB, TB)) ->
|
||||||
if length(AritiesA) < length(AritiesB) -> true;
|
if length(AritiesA) < length(AritiesB) -> true;
|
||||||
length(AritiesA) > length(AritiesB) -> false;
|
length(AritiesA) > length(AritiesB) -> false;
|
||||||
true ->
|
true ->
|
||||||
|
% Compare element by element consistent with Erlang compare
|
||||||
if AritiesA < AritiesB -> true;
|
if AritiesA < AritiesB -> true;
|
||||||
AritiesA > AritiesB -> false;
|
AritiesA > AritiesB -> false;
|
||||||
true ->
|
true ->
|
||||||
@@ -306,7 +315,32 @@ lt(?ORD_VARIANT, ?FATE_VARIANT(AritiesA, TagA, TA),
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
lt(_, A, B) -> A < B.
|
lt(?ORD_ADDRESS, ?FATE_ADDRESS(A), ?FATE_ADDRESS(B)) ->
|
||||||
|
A < B;
|
||||||
|
lt(?ORD_CHANNEL, ?FATE_CHANNEL(A), ?FATE_CHANNEL(B)) ->
|
||||||
|
A < B;
|
||||||
|
lt(?ORD_CONTRACT, ?FATE_CONTRACT(A), ?FATE_CONTRACT(B)) ->
|
||||||
|
A < B;
|
||||||
|
lt(?ORD_ORACLE, ?FATE_ORACLE(A), ?FATE_ORACLE(B)) ->
|
||||||
|
A < B;
|
||||||
|
lt(?ORD_ORACLE_Q, ?FATE_ORACLE_Q(A), ?FATE_ORACLE_Q(B)) ->
|
||||||
|
A < B;
|
||||||
|
lt(?ORD_STRING, ?FATE_STRING(A), ?FATE_STRING(B)) ->
|
||||||
|
compare_bytes(A, B);
|
||||||
|
lt(?ORD_BYTES, ?FATE_BYTES(A), ?FATE_BYTES(B)) ->
|
||||||
|
compare_bytes(A, B);
|
||||||
|
lt(?ORD_CONTRACT_BYTEARRAY, ?FATE_CONTRACT_BYTEARRAY(A), ?FATE_CONTRACT_BYTEARRAY(B)) ->
|
||||||
|
compare_bytes(A, B).
|
||||||
|
|
||||||
|
% Shorter comes first
|
||||||
|
% On same length compare by first different bit
|
||||||
|
compare_bytes(A, B) ->
|
||||||
|
SizeA = byte_size(A),
|
||||||
|
SizeB = byte_size(B),
|
||||||
|
case SizeA - SizeB of
|
||||||
|
0 -> A < B;
|
||||||
|
N -> N < 0
|
||||||
|
end.
|
||||||
|
|
||||||
tuple_elements_lt(N,_A,_B, N) ->
|
tuple_elements_lt(N,_A,_B, N) ->
|
||||||
false;
|
false;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
-define(SHORT_STRING , 2#01). %% xxxxxx 01 | [bytes] - when 0 < xxxxxx:size < 64
|
-define(SHORT_STRING , 2#01). %% xxxxxx 01 | [bytes] - when 0 < xxxxxx:size < 64
|
||||||
%% 11 Set below
|
%% 11 Set below
|
||||||
-define(SHORT_LIST , 2#0011). %% xxxx 0011 | [encoded elements] when 0 < length < 16
|
-define(SHORT_LIST , 2#0011). %% xxxx 0011 | [encoded elements] when 0 < length < 16
|
||||||
%% xxxx 0111
|
%% 0111 Set below
|
||||||
-define(TYPE_INTEGER , 2#00000111). %% 0000 0111 - Integer typedef
|
-define(TYPE_INTEGER , 2#00000111). %% 0000 0111 - Integer typedef
|
||||||
-define(TYPE_BOOLEAN , 2#00010111). %% 0001 0111 - Boolean typedef
|
-define(TYPE_BOOLEAN , 2#00010111). %% 0001 0111 - Boolean typedef
|
||||||
-define(TYPE_LIST , 2#00100111). %% 0010 0111 | Type
|
-define(TYPE_LIST , 2#00100111). %% 0010 0111 | Type
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
-define(TYPE_STRING , 2#01110111). %% 0111 0111 - string typedef
|
-define(TYPE_STRING , 2#01110111). %% 0111 0111 - string typedef
|
||||||
-define(TYPE_VARIANT , 2#10000111). %% 1000 0111 | [Arities] | [Type]
|
-define(TYPE_VARIANT , 2#10000111). %% 1000 0111 | [Arities] | [Type]
|
||||||
-define(TYPE_BYTES , 2#10010111). %% 1001 0111 - Bytes typedef
|
-define(TYPE_BYTES , 2#10010111). %% 1001 0111 - Bytes typedef
|
||||||
%% 1010 0111
|
-define(TYPE_CONTRACT_BYTEARRAY,2#10100111). %% 1010 0111 - Fate code typedef
|
||||||
%% 1011 0111
|
%% 1011 0111
|
||||||
%% 1100 0111
|
%% 1100 0111
|
||||||
%% 1101 0111
|
%% 1101 0111
|
||||||
@@ -90,9 +90,11 @@
|
|||||||
-define(EMPTY_STRING , 2#01011111). %% 0101 1111
|
-define(EMPTY_STRING , 2#01011111). %% 0101 1111
|
||||||
-define(POS_BIG_INT , 2#01101111). %% 0110 1111 | RLP encoded (integer - 64)
|
-define(POS_BIG_INT , 2#01101111). %% 0110 1111 | RLP encoded (integer - 64)
|
||||||
-define(FALSE , 2#01111111). %% 0111 1111
|
-define(FALSE , 2#01111111). %% 0111 1111
|
||||||
%% %% 1000 1111 - FREE (Possibly for bytecode in the future.)
|
-define(
|
||||||
|
CONTRACT_BYTEARRAY, 2#10001111). %% 1000 1111
|
||||||
-define(OBJECT , 2#10011111). %% 1001 1111 | ObjectType | RLP encoded Array
|
-define(OBJECT , 2#10011111). %% 1001 1111 | ObjectType | RLP encoded Array
|
||||||
-define(VARIANT , 2#10101111). %% 1010 1111 | [encoded arities] | encoded tag | [encoded values]
|
-define(VARIANT , 2#10101111). %% 1010 1111 | [encoded arities] | encoded tag | [encoded values]
|
||||||
|
-define(MAP_ID , 2#10111111). %% 1011 1111 | RLP encoded integer (store map id)
|
||||||
-define(NEG_BITS , 2#11001111). %% 1100 1111 | RLP encoded integer (infinite 1:s bitfield)
|
-define(NEG_BITS , 2#11001111). %% 1100 1111 | RLP encoded integer (infinite 1:s bitfield)
|
||||||
-define(EMPTY_MAP , 2#11011111). %% 1101 1111
|
-define(EMPTY_MAP , 2#11011111). %% 1101 1111
|
||||||
-define(NEG_BIG_INT , 2#11101111). %% 1110 1111 | RLP encoded (integer - 64)
|
-define(NEG_BIG_INT , 2#11101111). %% 1110 1111 | RLP encoded (integer - 64)
|
||||||
@@ -122,9 +124,11 @@
|
|||||||
X =:= ?TYPE_TUPLE orelse
|
X =:= ?TYPE_TUPLE orelse
|
||||||
X =:= ?TYPE_OBJECT orelse
|
X =:= ?TYPE_OBJECT orelse
|
||||||
X =:= ?TYPE_BITS orelse
|
X =:= ?TYPE_BITS orelse
|
||||||
|
X =:= ?TYPE_BYTES orelse
|
||||||
X =:= ?TYPE_MAP orelse
|
X =:= ?TYPE_MAP orelse
|
||||||
X =:= ?TYPE_STRING orelse
|
X =:= ?TYPE_STRING orelse
|
||||||
X =:= ?TYPE_VARIANT)).
|
X =:= ?TYPE_VARIANT orelse
|
||||||
|
X =:= ?TYPE_CONTRACT_BYTEARRAY)).
|
||||||
|
|
||||||
%% --------------------------------------------------
|
%% --------------------------------------------------
|
||||||
%% Serialize
|
%% Serialize
|
||||||
@@ -193,6 +197,9 @@ serialize(Map) when ?IS_FATE_MAP(Map) ->
|
|||||||
<<?MAP,
|
<<?MAP,
|
||||||
(rlp_encode_int(Size))/binary,
|
(rlp_encode_int(Size))/binary,
|
||||||
(Elements)/binary>>;
|
(Elements)/binary>>;
|
||||||
|
serialize(?FATE_STORE_MAP(Cache, Id)) when Cache =:= #{} ->
|
||||||
|
%% We should never get to serialization without having flushed the caches.
|
||||||
|
<<?MAP_ID, (rlp_encode_int(Id))/binary>>;
|
||||||
serialize(?FATE_VARIANT(Arities, Tag, Values)) ->
|
serialize(?FATE_VARIANT(Arities, Tag, Values)) ->
|
||||||
Arities = [A || A <- Arities, is_integer(A), A < 256],
|
Arities = [A || A <- Arities, is_integer(A), A < 256],
|
||||||
Size = length(Arities),
|
Size = length(Arities),
|
||||||
@@ -211,7 +218,11 @@ serialize(?FATE_VARIANT(Arities, Tag, Values)) ->
|
|||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
serialize(?FATE_TYPEREP(T)) ->
|
serialize(?FATE_TYPEREP(T)) ->
|
||||||
iolist_to_binary(serialize_type(T)).
|
iolist_to_binary(serialize_type(T));
|
||||||
|
serialize(?FATE_CONTRACT_BYTEARRAY(B)) ->
|
||||||
|
<<?CONTRACT_BYTEARRAY,
|
||||||
|
(serialize_integer(?FATE_CONTRACT_BYTEARRAY_SIZE(B)))/binary
|
||||||
|
, B/binary>>.
|
||||||
|
|
||||||
|
|
||||||
%% -----------------------------------------------------
|
%% -----------------------------------------------------
|
||||||
@@ -242,7 +253,8 @@ serialize_type({variant, ListOfVariants}) ->
|
|||||||
Size = length(ListOfVariants),
|
Size = length(ListOfVariants),
|
||||||
if Size < 256 ->
|
if Size < 256 ->
|
||||||
[?TYPE_VARIANT, Size | [serialize_type(T) || T <- ListOfVariants]]
|
[?TYPE_VARIANT, Size | [serialize_type(T) || T <- ListOfVariants]]
|
||||||
end.
|
end;
|
||||||
|
serialize_type(contract_bytearray) -> [?TYPE_CONTRACT_BYTEARRAY].
|
||||||
|
|
||||||
|
|
||||||
-spec deserialize_type(binary()) -> {aeb_fate_data:fate_type_type(), binary()}.
|
-spec deserialize_type(binary()) -> {aeb_fate_data:fate_type_type(), binary()}.
|
||||||
@@ -277,7 +289,8 @@ deserialize_type(<<?TYPE_STRING, Rest/binary>>) ->
|
|||||||
{string, Rest};
|
{string, Rest};
|
||||||
deserialize_type(<<?TYPE_VARIANT, Size, Rest/binary>>) ->
|
deserialize_type(<<?TYPE_VARIANT, Size, Rest/binary>>) ->
|
||||||
{Variants, Rest2} = deserialize_variants(Size, Rest, []),
|
{Variants, Rest2} = deserialize_variants(Size, Rest, []),
|
||||||
{{variant, Variants}, Rest2}.
|
{{variant, Variants}, Rest2};
|
||||||
|
deserialize_type(<<?TYPE_CONTRACT_BYTEARRAY, Rest/binary>>) -> {contract_bytearray, Rest}.
|
||||||
|
|
||||||
deserialize_variants(0, Rest, Variants) ->
|
deserialize_variants(0, Rest, Variants) ->
|
||||||
{lists:reverse(Variants), Rest};
|
{lists:reverse(Variants), Rest};
|
||||||
@@ -372,6 +385,12 @@ deserialize2(<<?LONG_STRING, Rest/binary>>) ->
|
|||||||
String = binary:part(Rest2, 0, Size),
|
String = binary:part(Rest2, 0, Size),
|
||||||
Rest3 = binary:part(Rest2, byte_size(Rest2), - (byte_size(Rest2) - Size)),
|
Rest3 = binary:part(Rest2, byte_size(Rest2), - (byte_size(Rest2) - Size)),
|
||||||
{?MAKE_FATE_STRING(String), Rest3};
|
{?MAKE_FATE_STRING(String), Rest3};
|
||||||
|
deserialize2(<<?CONTRACT_BYTEARRAY, Rest/binary>>) ->
|
||||||
|
{Size, Rest2} = deserialize_one(Rest),
|
||||||
|
true = is_integer(Size) andalso Size >= 0,
|
||||||
|
FateCode = binary:part(Rest2, 0, Size),
|
||||||
|
Rest3 = binary:part(Rest2, byte_size(Rest2), - (byte_size(Rest2) - Size)),
|
||||||
|
{?MAKE_FATE_CONTRACT_BYTEARRAY(FateCode), Rest3};
|
||||||
deserialize2(<<S:6, ?SHORT_STRING:2, Rest/binary>>) ->
|
deserialize2(<<S:6, ?SHORT_STRING:2, Rest/binary>>) ->
|
||||||
String = binary:part(Rest, 0, S),
|
String = binary:part(Rest, 0, S),
|
||||||
Rest2 = binary:part(Rest, byte_size(Rest), - (byte_size(Rest) - S)),
|
Rest2 = binary:part(Rest, byte_size(Rest), - (byte_size(Rest) - S)),
|
||||||
@@ -426,6 +445,9 @@ deserialize2(<<?MAP, Rest/binary>>) ->
|
|||||||
false ->
|
false ->
|
||||||
error({unknown_map_serialization_format, KVList})
|
error({unknown_map_serialization_format, KVList})
|
||||||
end;
|
end;
|
||||||
|
deserialize2(<<?MAP_ID, Rest/binary>>) ->
|
||||||
|
{Id, Rest1} = rlp_decode_int(Rest),
|
||||||
|
{?FATE_STORE_MAP(#{}, Id), Rest1};
|
||||||
deserialize2(<<?VARIANT, Rest/binary>>) ->
|
deserialize2(<<?VARIANT, Rest/binary>>) ->
|
||||||
{AritiesBin, <<Tag:8, Rest2/binary>>} = aeser_rlp:decode_one(Rest),
|
{AritiesBin, <<Tag:8, Rest2/binary>>} = aeser_rlp:decode_one(Rest),
|
||||||
Arities = binary_to_list(AritiesBin),
|
Arities = binary_to_list(AritiesBin),
|
||||||
@@ -480,5 +502,11 @@ sort(KVList) ->
|
|||||||
|
|
||||||
valid_key_type(K) when ?IS_FATE_MAP(K) ->
|
valid_key_type(K) when ?IS_FATE_MAP(K) ->
|
||||||
error({map_as_key_in_map, K});
|
error({map_as_key_in_map, K});
|
||||||
|
valid_key_type(?FATE_STORE_MAP(_, _) = K) ->
|
||||||
|
error({map_as_key_in_map, K});
|
||||||
|
valid_key_type(K) when is_list(K) ->
|
||||||
|
lists:all(fun(E) -> valid_key_type(E) end, K);
|
||||||
|
valid_key_type(K) when is_tuple(K) ->
|
||||||
|
lists:all(fun(E) -> valid_key_type(E) end, tuple_to_list(K));
|
||||||
valid_key_type(_K) ->
|
valid_key_type(_K) ->
|
||||||
true.
|
true.
|
||||||
|
|||||||
@@ -0,0 +1,132 @@
|
|||||||
|
-module(aeb_fate_generate_docs).
|
||||||
|
|
||||||
|
-export([generate_documentation/2, generate_documentation/3]).
|
||||||
|
|
||||||
|
-export(
|
||||||
|
[ gen_protocol_opcodes_flags_and_gas/1
|
||||||
|
, gen_protocol_description_of_operations/1
|
||||||
|
, gen_protocol_opcodes/1
|
||||||
|
]).
|
||||||
|
|
||||||
|
-define(LIMA_PROTOCOL_VSN, 4).
|
||||||
|
-define(IRIS_PROTOCOL_VSN, 5).
|
||||||
|
|
||||||
|
generate_documentation(Filename, Fields) ->
|
||||||
|
generate_documentation(Filename, Fields, fun(_) -> true end).
|
||||||
|
generate_documentation(Filename, Fields, Filter) when is_function(Filter, 1) ->
|
||||||
|
{ok, File} = file:open(Filename, [write, {encoding, utf8}]),
|
||||||
|
Header =
|
||||||
|
lists:flatten(
|
||||||
|
"|" ++ [" " ++ header_name(F) ++ " |" || F <- Fields] ++ "\n"
|
||||||
|
),
|
||||||
|
Separator =
|
||||||
|
lists:flatten(
|
||||||
|
"|" ++ [" " ++ ["-" || _ <- header_name(F)] ++ " |" || F <- Fields] ++ "\n"
|
||||||
|
),
|
||||||
|
Instructions =
|
||||||
|
lists:flatten(
|
||||||
|
[gen_doc_for_op(Op, Fields)
|
||||||
|
++ "\n" || Op <- aeb_fate_generate_ops:get_ops(), Filter(Op)]),
|
||||||
|
io:format(File, "~ts~ts~ts\n", [Header, Separator, Instructions]),
|
||||||
|
file:close(File).
|
||||||
|
|
||||||
|
header_name(opname) ->
|
||||||
|
"Name";
|
||||||
|
header_name(opcode) ->
|
||||||
|
"Opcode";
|
||||||
|
header_name(arity) ->
|
||||||
|
"Arity";
|
||||||
|
header_name(end_bb) ->
|
||||||
|
"Ends basic block";
|
||||||
|
header_name(in_auth) ->
|
||||||
|
"Allowed in auth";
|
||||||
|
header_name(offchain) ->
|
||||||
|
"Allowed offchain";
|
||||||
|
header_name(format) ->
|
||||||
|
"Args";
|
||||||
|
header_name(doc) ->
|
||||||
|
"Description";
|
||||||
|
header_name(gas) ->
|
||||||
|
"Gas cost";
|
||||||
|
header_name(arg_types) ->
|
||||||
|
"Arg types";
|
||||||
|
header_name(res_type) ->
|
||||||
|
"Res type".
|
||||||
|
|
||||||
|
gen_doc_for_op(#{ opname := OpName
|
||||||
|
, opcode := OpCode
|
||||||
|
, arity := Arity
|
||||||
|
, end_bb := EndBB
|
||||||
|
, in_auth := InAuth
|
||||||
|
, offchain := AllowedOffchain
|
||||||
|
, format := FateFormat
|
||||||
|
, doc := Doc
|
||||||
|
, gas := Gas
|
||||||
|
, arg_types := ArgTypes
|
||||||
|
, res_type := ResType
|
||||||
|
}, Fields) ->
|
||||||
|
"| " ++
|
||||||
|
string:join(
|
||||||
|
[ case Field of
|
||||||
|
opname -> io_lib:format("`~s`", [OpName]);
|
||||||
|
opcode -> io_lib:format("0x~.16b", [OpCode]);
|
||||||
|
arity -> io_lib:format("~p", [Arity]);
|
||||||
|
end_bb -> io_lib:format("~p", [EndBB]);
|
||||||
|
in_auth -> io_lib:format("~p", [InAuth]);
|
||||||
|
offchain -> io_lib:format("~p", [AllowedOffchain]);
|
||||||
|
format ->
|
||||||
|
case FateFormat of
|
||||||
|
[] -> "";
|
||||||
|
_ -> lists:join(
|
||||||
|
" ",
|
||||||
|
[format_arg_doc(A) ||
|
||||||
|
A <-
|
||||||
|
lists:zip(FateFormat,
|
||||||
|
lists:seq(0,length(FateFormat)-1))])
|
||||||
|
end;
|
||||||
|
doc -> Doc;
|
||||||
|
gas when is_integer(Gas) -> io_lib:format("~p", [Gas]);
|
||||||
|
gas when is_list(Gas) ->
|
||||||
|
lists:flatten(
|
||||||
|
string:join(
|
||||||
|
[ io_lib:format(
|
||||||
|
"~p (~s)",
|
||||||
|
[GasVal, protocol_name(Prot)]
|
||||||
|
)
|
||||||
|
|| {Prot, GasVal} <- Gas
|
||||||
|
], ", "));
|
||||||
|
arg_types -> io_lib:format("~p", [ArgTypes]);
|
||||||
|
res_type -> io_lib:format("~p", [ResType])
|
||||||
|
end
|
||||||
|
|| Field <- Fields
|
||||||
|
],
|
||||||
|
" | ") ++ " |".
|
||||||
|
|
||||||
|
protocol_name(?LIMA_PROTOCOL_VSN) ->
|
||||||
|
"lima";
|
||||||
|
protocol_name(?IRIS_PROTOCOL_VSN) ->
|
||||||
|
"iris".
|
||||||
|
|
||||||
|
format_arg_doc({a, N}) -> io_lib:format("Arg~w", [N]);
|
||||||
|
format_arg_doc({is,_N}) -> "Identifier";
|
||||||
|
format_arg_doc({ii,_N}) -> "Integer";
|
||||||
|
format_arg_doc({li,_N}) -> "[Integers]";
|
||||||
|
format_arg_doc({t,_N}) -> "Type".
|
||||||
|
|
||||||
|
|
||||||
|
%% --- protocol documentation ---
|
||||||
|
|
||||||
|
gen_protocol_description_of_operations(Filename) ->
|
||||||
|
generate_documentation(
|
||||||
|
Filename, [opname, format, doc, arg_types, res_type]
|
||||||
|
).
|
||||||
|
|
||||||
|
gen_protocol_opcodes_flags_and_gas(Filename) ->
|
||||||
|
generate_documentation(
|
||||||
|
Filename, [opcode, opname, end_bb, in_auth, offchain, gas]
|
||||||
|
).
|
||||||
|
|
||||||
|
gen_protocol_opcodes(Filename) ->
|
||||||
|
generate_documentation(
|
||||||
|
Filename, [opcode, opname]
|
||||||
|
).
|
||||||
+237
-203
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
-export([ gen_and_halt/1
|
-export([ gen_and_halt/1
|
||||||
, generate/0
|
, generate/0
|
||||||
, generate_documentation/1
|
|
||||||
, get_ops/0
|
, get_ops/0
|
||||||
, test_asm_generator/1]).
|
, test_asm_generator/1 ]).
|
||||||
|
|
||||||
gen_and_halt([SrcDirArg, IncludeDirArg]) ->
|
gen_and_halt([SrcDirArg, IncludeDirArg]) ->
|
||||||
generate(atom_to_list(SrcDirArg),
|
generate(atom_to_list(SrcDirArg),
|
||||||
@@ -39,148 +38,214 @@ check_numbering(N, [T|Rest]) ->
|
|||||||
end;
|
end;
|
||||||
check_numbering(_, []) -> true.
|
check_numbering(_, []) -> true.
|
||||||
|
|
||||||
|
-define(LIMA_PROTOCOL_VSN, 4).
|
||||||
|
-define(IRIS_PROTOCOL_VSN, 5).
|
||||||
|
|
||||||
|
-define(GAS(A), A).
|
||||||
|
-define(GAS_IRIS(A, B), [{?IRIS_PROTOCOL_VSN, B}, {?LIMA_PROTOCOL_VSN, A}]).
|
||||||
|
|
||||||
%% TODO: Some real gas numbers...
|
|
||||||
ops_defs() ->
|
ops_defs() ->
|
||||||
%% Opname, Opcode, end_bb, in_auth, gas, format, Constructor, ArgType, ResType, Documentation
|
%% Opname, Opcode, end_bb, in_auth,offchain, gas, format, Constructor, ArgType, ResType, Documentation
|
||||||
[ { 'RETURN', 16#00, true, true, 2, [], return, {}, any, "Return from function call, top of stack is return value . The type of the retun value has to match the return type of the function."}
|
[ { 'RETURN', 16#00, true, true, true, ?GAS(10), [], return, {}, any, "Return from function call, top of stack is return value . The type of the retun value has to match the return type of the function."}
|
||||||
, { 'RETURNR', 16#01, true, true, 2, [a], returnr, {any}, any, "Push Arg0 and return from function. The type of the retun value has to match the return type of the function."}
|
, { 'RETURNR', 16#01, true, true, true, ?GAS(10), [a], returnr, {any}, any, "Push Arg0 and return from function. The type of the retun value has to match the return type of the function."}
|
||||||
, { 'CALL', 16#02, true, true, 4, [a], call, {string}, any, "Call the function Arg0 with args on stack. The types of the arguments has to match the argument typs of the function."}
|
, { 'CALL', 16#02, true, true, true, ?GAS(10), [a], call, {string}, any, "Call the function Arg0 with args on stack. The types of the arguments has to match the argument typs of the function."}
|
||||||
, { 'CALL_R', 16#03, true, false, 8, [a,is,a], call_r, {contract, string, integer}, any, "Remote call to contract Arg0 and function Arg1 with value Arg2. The types of the arguments has to match the argument typs of the function."}
|
, { 'CALL_R', 16#03, true, false, true, ?GAS(100), [a,is,a,a,a], call_r, {contract, string, typerep, typerep, integer}, any, "Remote call to contract Arg0 and function Arg1 of type Arg2 => Arg3 with value Arg4. The types of the arguments has to match the argument types of the function."}
|
||||||
, { 'CALL_T', 16#04, true, true, 4, [a], call_t, {string}, any, "Tail call to function Arg0. The types of the arguments has to match the argument typs of the function. And the return type of the called function has to match the type of the current function."}
|
, { 'CALL_T', 16#04, true, true, true, ?GAS(10), [a], call_t, {string}, any, "Tail call to function Arg0. The types of the arguments has to match the argument typs of the function. And the return type of the called function has to match the type of the current function."}
|
||||||
, { 'CALL_TR', 16#05, true, false, 8, [a,is,a], call_tr, {contract, string, integer}, any, "Remote tail call to contract Arg0 and function Arg1 with value Arg2. The types of the arguments has to match the argument typs of the function. And the return type of the called function has to match the type of the current function."}
|
, { 'CALL_GR', 16#05, true, false, true, ?GAS(100), [a,is,a,a,a,a], call_gr, {contract, string, typerep, typerep, integer, integer}, any, "Remote call with gas cap in Arg4. Otherwise as CALL_R."}
|
||||||
, { 'CALL_GR', 16#06, true, false, 8, [a,is,a,a], call_gr, {contract, string, integer, integer}, any, "Remote call with gas cap in Arg3. Otherwise as CALL_R."}
|
, { 'JUMP', 16#06, true, true, true, ?GAS(10), [ii], jump, {integer}, none, "Jump to a basic block. The basic block has to exist in the current function."}
|
||||||
, { 'CALL_GTR', 16#07, true, false, 8, [a,is,a,a], call_gtr, {contract, string, integer, integer}, any, "Remote tail call with gas cap in Arg3. Otherwise as CALL_TR."}
|
, { 'JUMPIF', 16#07, true, true, true, ?GAS(10), [a,ii], jumpif, {boolean, integer}, none, "Conditional jump to a basic block. If Arg0 then jump to Arg1."}
|
||||||
, { 'JUMP', 16#08, true, true, 3, [ii], jump, {integer}, none, "Jump to a basic block. The basic block has to exist in the current function."}
|
, { 'SWITCH_V2', 16#08, true, true, true, ?GAS(10), [a,ii,ii], switch, {variant, integer, ingeger}, none, "Conditional jump to a basic block on variant tag."}
|
||||||
, { 'JUMPIF', 16#09, true, true, 4, [a,ii], jumpif, {boolean, integer}, none, "Conditional jump to a basic block. If Arg0 then jump to Arg1."}
|
, { 'SWITCH_V3', 16#09, true, true, true, ?GAS(10), [a,ii,ii,ii], switch, {variant, integer, integer, ingeger}, none, "Conditional jump to a basic block on variant tag."}
|
||||||
, { 'SWITCH_V2', 16#0a, true, true, 4, [a,ii,ii], switch, {variant, integer, ingeger}, none, "Conditional jump to a basic block on variant tag."}
|
, { 'SWITCH_VN', 16#0a, true, true, true, ?GAS(10), [a, li], switch, {variant, {list, integer}}, none, "Conditional jump to a basic block on variant tag."}
|
||||||
, { 'SWITCH_V3', 16#0b, true, true, 4, [a,ii,ii,ii], switch, {variant, integer, integer, ingeger}, none, "Conditional jump to a basic block on variant tag."}
|
, { 'CALL_VALUE', 16#0b, false, true, true, ?GAS(10), [a], call_value, {}, integer, "The value sent in the current remote call."}
|
||||||
, { 'SWITCH_VN', 16#0c, true, true, 4, [a, li], switch, {variant, {list, integer}}, none, "Conditional jump to a basic block on variant tag."}
|
, { 'PUSH', 16#0c, false, true, true, ?GAS(10), [a], push, {any}, any, "Push argument to stack."}
|
||||||
, { 'CALL_VALUE', 16#0d, false, true, 3, [a], call_value, {}, integer, "The value sent in the current remote call."}
|
, { 'DUPA', 16#0d, false, true, true, ?GAS(10), [], dup, {any}, any, "Duplicate top of stack."}
|
||||||
, { 'PUSH', 16#0e, false, true, 13, [a], push, {any}, any, "Push argument to stack."}
|
, { 'DUP', 16#0e, false, true, true, ?GAS(10), [a], dup, {any}, any, "push Arg0 stack pos on top of stack."}
|
||||||
, { 'DUPA', 16#0f, false, true, 8, [], dup, {any}, any, "Duplicate top of stack."}
|
, { 'POP', 16#0f, false, true, true, ?GAS(10), [a], pop, {integer}, integer, "Arg0 := top of stack."}
|
||||||
, { 'DUP', 16#10, false, true, 11, [a], dup, {any}, any, "push Arg0 stack pos on top of stack."}
|
, { 'INCA', 16#10, false, true, true, ?GAS(10), [], inc, {integer}, integer, "Increment accumulator."}
|
||||||
, { 'POP', 16#11, false, true, 15, [a], pop, {integer}, integer, "Arg0 := top of stack."}
|
, { 'INC', 16#11, false, true, true, ?GAS(10), [a], inc, {integer}, integer, "Increment argument."}
|
||||||
, { 'INCA', 16#12, false, true, 14, [], inc, {integer}, integer, "Increment accumulator."}
|
, { 'DECA', 16#12, false, true, true, ?GAS(10), [], dec, {integer}, integer, "Decrement accumulator."}
|
||||||
, { 'INC', 16#13, false, true, 15, [a], inc, {integer}, integer, "Increment argument."}
|
, { 'DEC', 16#13, false, true, true, ?GAS(10), [a], dec, {integer}, integer, "Decrement argument."}
|
||||||
, { 'DECA', 16#14, false, true, 13, [], dec, {integer}, integer, "Decrement accumulator."}
|
, { 'ADD', 16#14, false, true, true, ?GAS(10), [a,a,a], add, {integer, integer}, integer, "Arg0 := Arg1 + Arg2."}
|
||||||
, { 'DEC', 16#15, false, true, 14, [a], dec, {integer}, integer, "Decrement argument."}
|
, { 'SUB', 16#15, false, true, true, ?GAS(10), [a,a,a], sub, {integer, integer}, integer, "Arg0 := Arg1 - Arg2."}
|
||||||
, { 'ADD', 16#16, false, true, 18, [a,a,a], add, {integer, integer}, integer, "Arg0 := Arg1 + Arg2."}
|
, { 'MUL', 16#16, false, true, true, ?GAS(10), [a,a,a], mul, {integer, integer}, integer, "Arg0 := Arg1 * Arg2."}
|
||||||
, { 'SUB', 16#17, false, true, 18, [a,a,a], sub, {integer, integer}, integer, "Arg0 := Arg1 - Arg2."}
|
, { 'DIV', 16#17, false, true, true, ?GAS(10), [a,a,a], divide, {integer, integer}, integer, "Arg0 := Arg1 / Arg2."}
|
||||||
, { 'MUL', 16#18, false, true, 16, [a,a,a], mul, {integer, integer}, integer, "Arg0 := Arg1 * Arg2."}
|
, { 'MOD', 16#18, false, true, true, ?GAS(10), [a,a,a], modulo, {integer, integer}, integer, "Arg0 := Arg1 mod Arg2."}
|
||||||
, { 'DIV', 16#19, false, true, 16, [a,a,a], divide, {integer, integer}, integer, "Arg0 := Arg1 / Arg2."}
|
, { 'POW', 16#19, false, true, true, ?GAS(10), [a,a,a], pow, {integer, integer}, integer, "Arg0 := Arg1 ^ Arg2."}
|
||||||
, { 'MOD', 16#1a, false, true, 17, [a,a,a], modulo, {integer, integer}, integer, "Arg0 := Arg1 mod Arg2."}
|
, { 'STORE', 16#1a, false, true, true, ?GAS(10), [a,a], store, {any}, any, "Arg0 := Arg1."}
|
||||||
, { 'POW', 16#1b, false, true, 18, [a,a,a], pow, {integer, integer}, integer, "Arg0 := Arg1 ^ Arg2."}
|
, { 'SHA3', 16#1b, false, true, true, ?GAS(100), [a,a], sha3, {any}, hash, "Arg0 := sha3(Arg1)."}
|
||||||
, { 'STORE', 16#1c, false, true, 20, [a,a], store, {any}, any, "Arg0 := Arg1."}
|
, { 'SHA256', 16#1c, false, true, true, ?GAS(100), [a,a], sha256, {any}, hash, "Arg0 := sha256(Arg1)."}
|
||||||
, { 'SHA3', 16#1d, false, true, 45, [a,a], sha3, {any}, hash, "Arg0 := sha3(Arg1)."}
|
, { 'BLAKE2B', 16#1d, false, true, true, ?GAS(100), [a,a], blake2b, {any}, hash, "Arg0 := blake2b(Arg1)."}
|
||||||
, { 'SHA256', 16#1e, false, true, 43, [a,a], sha256, {any}, hash, "Arg0 := sha256(Arg1)."}
|
, { 'LT', 16#1e, false, true, true, ?GAS(10), [a,a,a], lt, {integer, integer}, boolean, "Arg0 := Arg1 < Arg2."}
|
||||||
, { 'BLAKE2B', 16#1f, false, true, 40, [a,a], blake2b, {any}, hash, "Arg0 := blake2b(Arg1)."}
|
, { 'GT', 16#1f, false, true, true, ?GAS(10), [a,a,a], gt, {integer, integer}, boolean, "Arg0 := Arg1 > Arg2."}
|
||||||
, { 'LT', 16#20, false, true, 15, [a,a,a], lt, {integer, integer}, boolean, "Arg0 := Arg1 < Arg2."}
|
, { 'EQ', 16#20, false, true, true, ?GAS(10), [a,a,a], eq, {integer, integer}, boolean, "Arg0 := Arg1 = Arg2."}
|
||||||
, { 'GT', 16#21, false, true, 15, [a,a,a], gt, {integer, integer}, boolean, "Arg0 := Arg1 > Arg2."}
|
, { 'ELT', 16#21, false, true, true, ?GAS(10), [a,a,a], elt, {integer, integer}, boolean, "Arg0 := Arg1 =< Arg2."}
|
||||||
, { 'EQ', 16#22, false, true, 15, [a,a,a], eq, {integer, integer}, boolean, "Arg0 := Arg1 = Arg2."}
|
, { 'EGT', 16#22, false, true, true, ?GAS(10), [a,a,a], egt, {integer, integer}, boolean, "Arg0 := Arg1 >= Arg2."}
|
||||||
, { 'ELT', 16#23, false, true, 16, [a,a,a], elt, {integer, integer}, boolean, "Arg0 := Arg1 =< Arg2."}
|
, { 'NEQ', 16#23, false, true, true, ?GAS(10), [a,a,a], neq, {integer, integer}, boolean, "Arg0 := Arg1 /= Arg2."}
|
||||||
, { 'EGT', 16#24, false, true, 15, [a,a,a], egt, {integer, integer}, boolean, "Arg0 := Arg1 >= Arg2."}
|
, { 'AND', 16#24, false, true, true, ?GAS(10), [a,a,a], and_op, {boolean, boolean}, boolean, "Arg0 := Arg1 and Arg2."}
|
||||||
, { 'NEQ', 16#25, false, true, 16, [a,a,a], neq, {integer, integer}, boolean, "Arg0 := Arg1 /= Arg2."}
|
, { 'OR', 16#25, false, true, true, ?GAS(10), [a,a,a], or_op, {boolean, boolean}, boolean, "Arg0 := Arg1 or Arg2."}
|
||||||
, { 'AND', 16#26, false, true, 16, [a,a,a], and_op, {boolean, boolean}, boolean, "Arg0 := Arg1 and Arg2."}
|
, { 'NOT', 16#26, false, true, true, ?GAS(10), [a,a], not_op, {boolean}, boolean, "Arg0 := not Arg1."}
|
||||||
, { 'OR', 16#27, false, true, 16, [a,a,a], or_op, {boolean, boolean}, boolean, "Arg0 := Arg1 or Arg2."}
|
, { 'TUPLE', 16#27, false, true, true, ?GAS(10), [a,ii], tuple, {integer}, tuple, "Arg0 := tuple of size = Arg1. Elements on stack."}
|
||||||
, { 'NOT', 16#28, false, true, 13, [a,a], not_op, {boolean}, boolean, "Arg0 := not Arg1."}
|
, { 'ELEMENT', 16#28, false, true, true, ?GAS(10), [a,a,a], element_op, {integer, tuple}, any, "Arg1 := element(Arg2, Arg3)."}
|
||||||
, { 'TUPLE', 16#29, false, true, 15, [a,ii], tuple, {integer}, tuple, "Arg0 := tuple of size = Arg1. Elements on stack."}
|
, { 'SETELEMENT', 16#29, false, true, true, ?GAS(10), [a,a,a,a], setelement, {integer, tuple, any}, tuple, "Arg0 := a new tuple similar to Arg2, but with element number Arg1 replaced by Arg3."}
|
||||||
, { 'ELEMENT', 16#2a, false, true, 3, [a,a,a], element_op, {integer, tuple}, any, "Arg1 := element(Arg2, Arg3)."}
|
, { 'MAP_EMPTY', 16#2a, false, true, true, ?GAS(10), [a], map_empty, {}, map, "Arg0 := #{}."}
|
||||||
, { 'SETELEMENT', 16#2b, false, true, 3, [a,a,a,a], setelement, {integer, tuple, any}, tuple, "Arg0 := a new tuple similar to Arg2, but with element number Arg1 replaced by Arg3."}
|
, { 'MAP_LOOKUP', 16#2b, false, true, true, ?GAS(10), [a,a,a], map_lookup, {map, any}, any, "Arg0 := lookup key Arg2 in map Arg1."}
|
||||||
, { 'MAP_EMPTY', 16#2c, false, true, 3, [a], map_empty, {}, map, "Arg0 := #{}."}
|
, { 'MAP_LOOKUPD', 16#2c, false, true, true, ?GAS(10), [a,a,a,a], map_lookup, {map, any, any}, any, "Arg0 := lookup key Arg2 in map Arg1 if key exists in map otherwise Arg0 := Arg3."}
|
||||||
, { 'MAP_LOOKUP', 16#2d, false, true, 3, [a,a,a], map_lookup, {map, any}, any, "Arg0 := lookup key Arg2 in map Arg1."}
|
, { 'MAP_UPDATE', 16#2d, false, true, true, ?GAS(10), [a,a,a,a], map_update, {map, any, any}, map, "Arg0 := update key Arg2 in map Arg1 with value Arg3."}
|
||||||
, { 'MAP_LOOKUPD', 16#2e, false, true, 3, [a,a,a,a], map_lookup, {map, any, any}, any, "Arg0 := lookup key Arg2 in map Arg1 if key exists in map otherwise Arg0 := Arg3."}
|
, { 'MAP_DELETE', 16#2e, false, true, true, ?GAS(10), [a,a,a], map_delete, {map, any}, map, "Arg0 := delete key Arg2 from map Arg1."}
|
||||||
, { 'MAP_UPDATE', 16#2f, false, true, 3, [a,a,a,a], map_update, {map, any, any}, map, "Arg0 := update key Arg2 in map Arg1 with value Arg3."}
|
, { 'MAP_MEMBER', 16#2f, false, true, true, ?GAS(10), [a,a,a], map_member, {map, any}, boolean, "Arg0 := true if key Arg2 is in map Arg1."}
|
||||||
, { 'MAP_DELETE', 16#30, false, true, 3, [a,a,a], map_delete, {map, any}, map, "Arg0 := delete key Arg2 from map Arg1."}
|
, { 'MAP_FROM_LIST', 16#30, false, true, true, ?GAS(10), [a,a], map_from_list, {{list, {tuple, [any, any]}}}, map, "Arg0 := make a map from (key, value) list in Arg1."}
|
||||||
, { 'MAP_MEMBER', 16#31, false, true, 3, [a,a,a], map_member, {map, any}, boolean, "Arg0 := true if key Arg2 is in map Arg1."}
|
, { 'MAP_SIZE', 16#31, false, true, true, ?GAS(10), [a,a], map_size_, {map}, integer, "Arg0 := The size of the map Arg1."}
|
||||||
, { 'MAP_FROM_LIST', 16#32, false, true, 3, [a,a], map_from_list, {{list, {tuple, [any, any]}}}, map, "Arg0 := make a map from (key, value) list in Arg1."}
|
, { 'MAP_TO_LIST', 16#32, false, true, true, ?GAS(10), [a,a], map_to_list, {map}, list, "Arg0 := The tuple list representation of the map Arg1."}
|
||||||
, { 'IS_NIL', 16#33, false, true, 3, [a,a], is_nil, {list}, boolean, "Arg0 := true if Arg1 == []."}
|
, { 'IS_NIL', 16#33, false, true, true, ?GAS(10), [a,a], is_nil, {list}, boolean, "Arg0 := true if Arg1 == []."}
|
||||||
, { 'CONS', 16#34, false, true, 3, [a,a,a], cons, {any, list}, list, "Arg0 := [Arg1|Arg2]."}
|
, { 'CONS', 16#34, false, true, true, ?GAS(10), [a,a,a], cons, {any, list}, list, "Arg0 := [Arg1|Arg2]."}
|
||||||
, { 'HD', 16#35, false, true, 3, [a,a], hd, {list}, any, "Arg0 := head of list Arg1."}
|
, { 'HD', 16#35, false, true, true, ?GAS(10), [a,a], hd, {list}, any, "Arg0 := head of list Arg1."}
|
||||||
, { 'TL', 16#36, false, true, 3, [a,a], tl, {list}, list, "Arg0 := tail of list Arg1."}
|
, { 'TL', 16#36, false, true, true, ?GAS(10), [a,a], tl, {list}, list, "Arg0 := tail of list Arg1."}
|
||||||
, { 'LENGTH', 16#37, false, true, 3, [a,a], length, {list}, integer, "Arg0 := length of list Arg1."}
|
, { 'LENGTH', 16#37, false, true, true, ?GAS(10), [a,a], length, {list}, integer, "Arg0 := length of list Arg1."}
|
||||||
, { 'NIL', 16#38, false, true, 3, [a], nil, {}, list, "Arg0 := []."}
|
, { 'NIL', 16#38, false, true, true, ?GAS(10), [a], nil, {}, list, "Arg0 := []."}
|
||||||
, { 'STR_JOIN', 16#39, false, true, 3, [a,a,a], str_join, {string, string}, string, "Arg0 := string Arg1 followed by string Arg2."}
|
, { 'APPEND', 16#39, false, true, true, ?GAS(10), [a,a,a], append, {list, list}, list, "Arg0 := Arg1 ++ Arg2."}
|
||||||
, { 'INT_TO_STR', 16#3a, false, true, 3, [a,a], int_to_str, {integer}, string, "Arg0 := turn integer Arg1 into a string."}
|
, { 'STR_JOIN', 16#3a, false, true, true, ?GAS(10), [a,a,a], str_join, {string, string}, string, "Arg0 := string Arg1 followed by string Arg2."}
|
||||||
, { 'ADDR_TO_STR', 16#3b, false, true, 3, [a,a], addr_to_str, {address}, string, "Arg0 := turn address Arg1 into a string."}
|
, { 'INT_TO_STR', 16#3b, false, true, true, ?GAS(100), [a,a], int_to_str, {integer}, string, "Arg0 := turn integer Arg1 into a string."}
|
||||||
, { 'STR_REVERSE', 16#3c, false, true, 3, [a,a], str_reverse, {string}, string, "Arg0 := the reverse of string Arg1."}
|
, { 'ADDR_TO_STR', 16#3c, false, true, true, ?GAS(100), [a,a], addr_to_str, {address}, string, "Arg0 := turn address Arg1 into a string."}
|
||||||
, { 'APPEND', 16#3d, false, true, 3, [a,a,a], append, {list, list}, list, "Arg0 := Arg1 ++ Arg2."}
|
, { 'STR_REVERSE', 16#3d, false, true, true, ?GAS(100), [a,a], str_reverse, {string}, string, "Arg0 := the reverse of string Arg1."}
|
||||||
, { 'INT_TO_ADDR', 16#3e, false, true, 3, [a,a], int_to_addr, {integer}, address, "Arg0 := turn integer Arg1 into an address."}
|
, { 'STR_LENGTH', 16#3e, false, true, true, ?GAS(10), [a,a], str_length, {string}, integer, "Arg0 := The length of the string Arg1."}
|
||||||
, { 'VARIANT', 16#3f, false, true, 3, [a,a,a,a], variant, {integer, integer, integer}, variant, "Arg0 := create a variant of size Arg1 with the tag Arg2 (Arg2 < Arg1) and take Arg3 elements from the stack."}
|
, { 'BYTES_TO_INT', 16#3f, false, true, true, ?GAS(10), [a,a], bytes_to_int, {bytes}, integer, "Arg0 := bytes_to_int(Arg1)"}
|
||||||
, { 'VARIANT_TEST', 16#40, false, true, 3, [a,a,a], variant_test, {variant, integer}, boolean, "Arg0 := true if variant Arg1 has the tag Arg2."}
|
, { 'BYTES_TO_STR', 16#40, false, true, true, ?GAS(100), [a,a], bytes_to_str, {bytes}, string, "Arg0 := bytes_to_str(Arg1)"}
|
||||||
, { 'VARIANT_ELEMENT', 16#41, false, true, 3, [a,a,a], variant_element, {variant, integer}, any, "Arg0 := element number Arg2 from variant Arg1."}
|
, { 'BYTES_CONCAT', 16#41, false, true, true, ?GAS(10), [a,a,a], bytes_concat, {bytes, bytes}, bytes, "Arg0 := bytes_concat(Arg1, Arg2)"}
|
||||||
, { 'BITS_NONEA', 16#42, false, true, 3, [], bits_none, {}, bits, "push an empty bitmap on the stack."}
|
, { 'BYTES_SPLIT', 16#42, false, true, true, ?GAS(10), [a,a,a], bytes_split, {bytes, integer}, bytes, "Arg0 := bytes_split(Arg2, Arg1), where Arg2 is the length of the first chunk."}
|
||||||
, { 'BITS_NONE', 16#43, false, true, 3, [a], bits_none, {}, bits, "Arg0 := empty bitmap."}
|
, { 'INT_TO_ADDR', 16#43, false, true, true, ?GAS(10), [a,a], int_to_addr, {integer}, address, "Arg0 := turn integer Arg1 into an address."}
|
||||||
, { 'BITS_ALLA', 16#44, false, true, 3, [], bits_all, {}, bits, "push a full bitmap on the stack."}
|
, { 'VARIANT', 16#44, false, true, true, ?GAS(10), [a,a,a,a], variant, {integer, integer, integer}, variant, "Arg0 := create a variant of size Arg1 with the tag Arg2 (Arg2 < Arg1) and take Arg3 elements from the stack."}
|
||||||
, { 'BITS_ALL', 16#45, false, true, 3, [a], bits_all, {}, bits, "Arg0 := full bitmap."}
|
, { 'VARIANT_TEST', 16#45, false, true, true, ?GAS(10), [a,a,a], variant_test, {variant, integer}, boolean, "Arg0 := true if variant Arg1 has the tag Arg2."}
|
||||||
, { 'BITS_ALL_N', 16#46, false, true, 3, [a,a], bits_all_n, {integer}, bits, "Arg0 := bitmap with Arg1 bits set."}
|
, { 'VARIANT_ELEMENT', 16#46, false, true, true, ?GAS(10), [a,a,a], variant_element, {variant, integer}, any, "Arg0 := element number Arg2 from variant Arg1."}
|
||||||
, { 'BITS_SET', 16#47, false, true, 3, [a,a,a], bits_set, {bits, integer}, bits, "Arg0 := set bit Arg2 of bitmap Arg1."}
|
, { 'BITS_NONEA', 16#47, false, true, true, ?GAS(10), [], bits_none, {}, bits, "push an empty bitmap on the stack."}
|
||||||
, { 'BITS_CLEAR', 16#48, false, true, 3, [a,a,a], bits_clear, {bits, integer}, bits, "Arg0 := clear bit Arg2 of bitmap Arg1."}
|
, { 'BITS_NONE', 16#48, false, true, true, ?GAS(10), [a], bits_none, {}, bits, "Arg0 := empty bitmap."}
|
||||||
, { 'BITS_TEST', 16#49, false, true, 3, [a,a,a], bits_test, {bits, integer}, boolean, "Arg0 := true if bit Arg2 of bitmap Arg1 is set."}
|
, { 'BITS_ALLA', 16#49, false, true, true, ?GAS(10), [], bits_all, {}, bits, "push a full bitmap on the stack."}
|
||||||
, { 'BITS_SUM', 16#4a, false, true, 3, [a,a], bits_sum, {bits}, integer, "Arg0 := sum of set bits in bitmap Arg1. Exception if infinit bitmap."}
|
, { 'BITS_ALL', 16#4a, false, true, true, ?GAS(10), [a], bits_all, {}, bits, "Arg0 := full bitmap."}
|
||||||
, { 'BITS_OR', 16#4b, false, true, 3, [a,a,a], bits_or, {bits, bits}, bits, "Arg0 := Arg1 v Arg2."}
|
, { 'BITS_ALL_N', 16#4b, false, true, true, ?GAS(10), [a,a], bits_all_n, {integer}, bits, "Arg0 := bitmap with Arg1 bits set."}
|
||||||
, { 'BITS_AND', 16#4c, false, true, 3, [a,a,a], bits_and, {bits, bits}, bits, "Arg0 := Arg1 ^ Arg2."}
|
, { 'BITS_SET', 16#4c, false, true, true, ?GAS(10), [a,a,a], bits_set, {bits, integer}, bits, "Arg0 := set bit Arg2 of bitmap Arg1."}
|
||||||
, { 'BITS_DIFF', 16#4d, false, true, 3, [a,a,a], bits_diff, {bits, bits}, bits, "Arg0 := Arg1 - Arg2."}
|
, { 'BITS_CLEAR', 16#4d, false, true, true, ?GAS(10), [a,a,a], bits_clear, {bits, integer}, bits, "Arg0 := clear bit Arg2 of bitmap Arg1."}
|
||||||
, { 'BALANCE', 16#4e, false, true, 3, [a], balance, {}, integer, "Arg0 := The current contract balance."}
|
, { 'BITS_TEST', 16#4e, false, true, true, ?GAS(10), [a,a,a], bits_test, {bits, integer}, boolean, "Arg0 := true if bit Arg2 of bitmap Arg1 is set."}
|
||||||
, { 'ORIGIN', 16#4f, false, true, 3, [a], origin, {}, address, "Arg0 := Address of contract called by the call transaction."}
|
, { 'BITS_SUM', 16#4f, false, true, true, ?GAS(10), [a,a], bits_sum, {bits}, integer, "Arg0 := sum of set bits in bitmap Arg1. Exception if infinit bitmap."}
|
||||||
, { 'CALLER', 16#50, false, true, 3, [a], caller, {}, address, "Arg0 := The address that signed the call transaction."}
|
, { 'BITS_OR', 16#50, false, true, true, ?GAS(10), [a,a,a], bits_or, {bits, bits}, bits, "Arg0 := Arg1 v Arg2."}
|
||||||
, { 'GASPRICE', 16#51, false, true, 3, [a], gasprice, {}, integer, "Arg0 := The current gas price."}
|
, { 'BITS_AND', 16#51, false, true, true, ?GAS(10), [a,a,a], bits_and, {bits, bits}, bits, "Arg0 := Arg1 ^ Arg2."}
|
||||||
, { 'BLOCKHASH', 16#52, false, true, 3, [a,a], blockhash, {integer}, hash, "Arg0 := The blockhash at height Arg1."}
|
, { 'BITS_DIFF', 16#52, false, true, true, ?GAS(10), [a,a,a], bits_diff, {bits, bits}, bits, "Arg0 := Arg1 - Arg2."}
|
||||||
, { 'BENEFICIARY', 16#53, false, true, 3, [a], beneficiary, {}, address, "Arg0 := The address of the current beneficiary."}
|
, { 'BALANCE', 16#53, false, true, true, ?GAS(10), [a], balance, {}, integer, "Arg0 := The current contract balance."}
|
||||||
, { 'TIMESTAMP', 16#54, false, true, 3, [a], timestamp, {}, integer, "Arg0 := The current timestamp. Unrelaiable, don't use for anything."}
|
, { 'ORIGIN', 16#54, false, true, true, ?GAS(10), [a], origin, {}, address, "Arg0 := Address of contract called by the call transaction."}
|
||||||
, { 'GENERATION', 16#55, false, true, 3, [a], generation, {}, integer, "Arg0 := The block height of the cureent generation."}
|
, { 'CALLER', 16#55, false, true, true, ?GAS(10), [a], caller, {}, address, "Arg0 := The address that signed the call transaction."}
|
||||||
, { 'MICROBLOCK', 16#56, false, true, 3, [a], microblock, {}, integer, "Arg0 := The current micro block number."}
|
, { 'BLOCKHASH', 16#56, false, true, true, ?GAS_IRIS(10, 1000), [a,a], blockhash, {integer}, variant, "Arg0 := The blockhash at height."}
|
||||||
, { 'DIFFICULTY', 16#57, false, true, 3, [a], difficulty, {}, integer, "Arg0 := The current difficulty."}
|
, { 'BENEFICIARY', 16#57, false, true, true, ?GAS(10), [a], beneficiary, {}, address, "Arg0 := The address of the current beneficiary."}
|
||||||
, { 'GASLIMIT', 16#58, false, true, 3, [a], gaslimit, {}, integer, "Arg0 := The current gaslimit."}
|
, { 'TIMESTAMP', 16#58, false, true, true, ?GAS(10), [a], timestamp, {}, integer, "Arg0 := The current timestamp. Unrelaiable, don't use for anything."}
|
||||||
, { 'GAS', 16#59, false, true, 3, [a], gas, {}, integer, "Arg0 := The amount of gas left."}
|
, { 'GENERATION', 16#59, false, true, true, ?GAS(10), [a], generation, {}, integer, "Arg0 := The block height of the cureent generation."}
|
||||||
, { 'ADDRESS', 16#5a, false, true, 3, [a], address, {}, address, "Arg0 := The current contract address."}
|
, { 'MICROBLOCK', 16#5a, false, true, true, ?GAS(10), [a], microblock, {}, integer, "Arg0 := The current micro block number."}
|
||||||
|
, { 'DIFFICULTY', 16#5b, false, true, true, ?GAS(10), [a], difficulty, {}, integer, "Arg0 := The current difficulty."}
|
||||||
|
, { 'GASLIMIT', 16#5c, false, true, true, ?GAS(10), [a], gaslimit, {}, integer, "Arg0 := The current gaslimit."}
|
||||||
|
, { 'GAS', 16#5d, false, true, true, ?GAS(10), [a], gas, {}, integer, "Arg0 := The amount of gas left."}
|
||||||
|
, { 'ADDRESS', 16#5e, false, true, true, ?GAS(10), [a], address, {}, address, "Arg0 := The current contract address."}
|
||||||
|
, { 'GASPRICE', 16#5f, false, true, true, ?GAS(10), [a], gasprice, {}, integer, "Arg0 := The current gas price."}
|
||||||
|
|
||||||
, { 'LOG0', 16#5b, false, true, 3, [a], log, {string}, none, "Create a log message in the call object."}
|
, { 'LOG0', 16#60, false, true, true, ?GAS(1000), [a], log, {string}, none, "Create a log message in the call object."}
|
||||||
, { 'LOG1', 16#5c, false, true, 3, [a,a], log, {integer, string}, none, "Create a log message with one topic in the call object."}
|
, { 'LOG1', 16#61, false, true, true, ?GAS(1100), [a,a], log, {integer, string}, none, "Create a log message with one topic in the call object."}
|
||||||
, { 'LOG2', 16#5d, false, true, 3, [a,a,a], log, {integer, integer, string}, none, "Create a log message with two topics in the call object."}
|
, { 'LOG2', 16#62, false, true, true, ?GAS(1200), [a,a,a], log, {integer, integer, string}, none, "Create a log message with two topics in the call object."}
|
||||||
, { 'LOG3', 16#5e, false, true, 3, [a,a,a,a], log, {integer, integer, integer, string}, none, "Create a log message with three topics in the call object."}
|
, { 'LOG3', 16#63, false, true, true, ?GAS(1300), [a,a,a,a], log, {integer, integer, integer, string}, none, "Create a log message with three topics in the call object."}
|
||||||
, { 'LOG4', 16#5f, false, true, 3, [a,a,a,a,a], log, {integer, integer, integer, integer, string}, none, "Create a log message with four topics in the call object."}
|
, { 'LOG4', 16#64, false, true, true, ?GAS(1400), [a,a,a,a,a], log, {integer, integer, integer, integer, string}, none, "Create a log message with four topics in the call object."}
|
||||||
%% Transaction ops
|
%% Transaction ops
|
||||||
, { 'SPEND', 16#60, false, false, 3, [a,a], spend, {address, integer}, none, "Transfer Arg1 tokens to account Arg0. (If the contract account has at least that many tokens."}
|
, { 'SPEND', 16#65, false, false, true, ?GAS_IRIS(100, 5000), [a,a], spend, {address, integer}, none, "Transfer Arg1 tokens to account Arg0. (If the contract account has at least that many tokens."}
|
||||||
, { 'ORACLE_REGISTER', 16#61, false, false, 3, [a,a,a,a,a,a,a], oracle_register, {signature, address, integer, variant, typerep, typerep}, oracle, "Arg0 := New oracle with address Arg2, query fee Arg3, TTL Arg4, query type Arg5 and response type Arg6. Arg0 contains delegation signature."}
|
, { 'ORACLE_REGISTER', 16#66, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a,a,a,a], oracle_register, {signature, address, integer, variant, typerep, typerep}, oracle, "Arg0 := New oracle with address Arg2, query fee Arg3, TTL Arg4, query type Arg5 and response type Arg6. Arg0 contains delegation signature."}
|
||||||
, { 'ORACLE_QUERY', 16#62, false, false, 3, [a,a,a,a,a,a,a,a], oracle_query, {oracle, any, integer, variant, variant, typerep, typerep}, oracle_query, "Arg0 := New oracle query for oracle Arg1, question in Arg2, query fee in Arg3, query TTL in Arg4, response TTL in Arg5. Typereps for checking oracle type is in Arg6 and Arg7."}
|
, { 'ORACLE_QUERY', 16#67, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a,a,a,a,a], oracle_query, {oracle, any, integer, variant, variant, typerep, typerep}, oracle_query, "Arg0 := New oracle query for oracle Arg1, question in Arg2, query fee in Arg3, query TTL in Arg4, response TTL in Arg5. Typereps for checking oracle type is in Arg6 and Arg7."}
|
||||||
, { 'ORACLE_RESPOND', 16#63, false, false, 3, [a,a,a,a,a,a], oracle_respond, {signature, oracle, oracle_query,any, typerep, typerep}, none, "Respond as oracle Arg1 to query in Arg2 with response Arg3. Arg0 contains delegation signature. Typereps for checking oracle type is in Arg4 and Arg5."}
|
, { 'ORACLE_RESPOND', 16#68, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a,a,a], oracle_respond, {signature, oracle, oracle_query,any, typerep, typerep}, none, "Respond as oracle Arg1 to query in Arg2 with response Arg3. Arg0 contains delegation signature. Typereps for checking oracle type is in Arg4 and Arg5."}
|
||||||
, { 'ORACLE_EXTEND', 16#64, false, false, 3, [a,a,a], oracle_extend, {signature, oracle, variant}, none, "Extend oracle in Arg1 with TTL in Arg2. Arg0 contains delegation signature."}
|
, { 'ORACLE_EXTEND', 16#69, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a], oracle_extend, {signature, oracle, variant}, none, "Extend oracle in Arg1 with TTL in Arg2. Arg0 contains delegation signature."}
|
||||||
, { 'ORACLE_GET_ANSWER', 16#65, false, false, 3, [a,a,a,a,a], oracle_get_answer, {oracle, oracle_query, typerep, typerep}, any, "Arg0 := option variant with answer (if any) from oracle query in Arg1 given by oracle Arg0. Typereps for checking oracle type is in Arg3 and Arg4."}
|
, { 'ORACLE_GET_ANSWER', 16#6a, false, false, true, ?GAS_IRIS(100, 2000), [a,a,a,a,a], oracle_get_answer, {oracle, oracle_query, typerep, typerep}, any, "Arg0 := option variant with answer (if any) from oracle query in Arg1 given by oracle Arg0. Typereps for checking oracle type is in Arg3 and Arg4."}
|
||||||
, { 'ORACLE_GET_QUESTION', 16#66, false, false, 3, [a,a,a,a,a], oracle_get_question, {oracle, oracle_query, typerep, typerep}, any, "Arg0 := question in oracle query Arg2 given to oracle Arg1. Typereps for checking oracle type is in Arg3 and Arg4."}
|
, { 'ORACLE_GET_QUESTION', 16#6b, false, false, true, ?GAS_IRIS(100, 2000), [a,a,a,a,a], oracle_get_question, {oracle, oracle_query, typerep, typerep}, any, "Arg0 := question in oracle query Arg2 given to oracle Arg1. Typereps for checking oracle type is in Arg3 and Arg4."}
|
||||||
, { 'ORACLE_QUERY_FEE', 16#67, false, false, 3, [a,a], oracle_query_fee, {oracle}, integer, "Arg0 := query fee for oracle Arg1"}
|
, { 'ORACLE_QUERY_FEE', 16#6c, false, false, true, ?GAS_IRIS(100, 2000), [a,a], oracle_query_fee, {oracle}, integer, "Arg0 := query fee for oracle Arg1"}
|
||||||
, { 'AENS_RESOLVE', 16#68, false, false, 3, [a,a,a,a], aens_resolve, {string, string, typerep}, variant, "Resolve name in Arg0 with tag Arg1. Arg2 describes the type parameter of the resolved name."}
|
, { 'AENS_RESOLVE', 16#6d, false, false, true, ?GAS_IRIS(100, 2000), [a,a,a,a], aens_resolve, {string, string, typerep}, variant, "Resolve name in Arg0 with tag Arg1. Arg2 describes the type parameter of the resolved name."}
|
||||||
, { 'AENS_PRECLAIM', 16#69, false, false, 3, [a,a,a], aens_preclaim, {signature, address, hash}, none, "Preclaim the hash in Arg2 for address in Arg1. Arg0 contains delegation signature."}
|
, { 'AENS_PRECLAIM', 16#6e, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a], aens_preclaim, {signature, address, hash}, none, "Preclaim the hash in Arg2 for address in Arg1. Arg0 contains delegation signature."}
|
||||||
, { 'AENS_CLAIM', 16#6a, false, false, 3, [a,a,a,a], aens_claim, {signature, address, string, integer}, none, "Claim the name in Arg2 for address in Arg1. Arg3 contains the salt used to hash the preclaim. Arg0 contains delegation signature."}
|
, { 'AENS_CLAIM', 16#6f, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a,a], aens_claim, {signature, address, string, integer, integer}, none, "Attempt to claim the name in Arg2 for address in Arg1 at a price in Arg4. Arg3 contains the salt used to hash the preclaim. Arg0 contains delegation signature."}
|
||||||
, { 'AENS_UPDATE', 16#6b, false, false, 3, [], aens_update, {}, none, "NYI"}
|
, { 'AENS_UPDATE', 16#70, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a,a,a], aens_update, {signature, address, string, variant, variant, variant}, none, "Updates name in Arg2 for address in Arg1. Arg3 contains optional ttl (of type Chain.ttl), Arg4 contains optional client_ttl (of type int), Arg5 contains optional pointers (of type map(string, pointee))"}
|
||||||
, { 'AENS_TRANSFER', 16#6c, false, false, 3, [a,a,a,a], aens_transfer,{signature, address, address, string}, none, "Transfer ownership of name Arg3 from account Arg1 to Arg2. Arg0 contains delegation signature."}
|
, { 'AENS_TRANSFER', 16#71, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a,a], aens_transfer,{signature, address, address, string}, none, "Transfer ownership of name Arg3 from account Arg1 to Arg2. Arg0 contains delegation signature."}
|
||||||
, { 'AENS_REVOKE', 16#6d, false, false, 3, [a,a,a], aens_revoke, {signature, address, string}, none, "Revoke the name in Arg2 from owner Arg1. Arg0 contains delegation signature."}
|
, { 'AENS_REVOKE', 16#72, false, false, false, ?GAS_IRIS(100, 10000), [a,a,a], aens_revoke, {signature, address, string}, none, "Revoke the name in Arg2 from owner Arg1. Arg0 contains delegation signature."}
|
||||||
, { 'BALANCE_OTHER', 16#6e, false, true, 3, [a,a], balance_other, {address}, integer, "Arg0 := The balance of address Arg1."}
|
, { 'BALANCE_OTHER', 16#73, false, true, true, ?GAS_IRIS( 50, 2000), [a,a], balance_other, {address}, integer, "Arg0 := The balance of address Arg1."}
|
||||||
%% TODO: Reorder these before documenting the specification
|
|
||||||
, { 'MAP_SIZE', 16#6f, false, true, 3, [a,a], map_size_, {map}, integer, "Arg0 := The size of the map Arg1."}
|
|
||||||
, { 'MAP_TO_LIST', 16#70, false, true, 3, [a,a], map_to_list, {map}, list, "Arg0 := The tuple list representation of the map Arg1."}
|
|
||||||
, { 'STR_LENGTH', 16#71, false, true, 3, [a,a], str_length, {string}, integer, "Arg0 := The length of the string Arg1."}
|
|
||||||
|
|
||||||
, { 'ECVERIFY', 16#72, false, true, 1300, [a,a,a,a], ecverify, {bytes, address, bytes}, boolean, "Arg0 := ecverify(Hash, PubKey, Signature)"}
|
, { 'VERIFY_SIG', 16#74, false, true, true, ?GAS(1300), [a,a,a,a], verify_sig, {bytes, address, bytes}, boolean, "Arg0 := verify_sig(Hash, PubKey, Signature)"}
|
||||||
, { 'ECVERIFY_SECP256K1', 16#73, false, true, 1300, [a,a,a,a], ecverify_secp256k1, {bytes, bytes, bytes}, boolean, "Arg0 := ecverify_secp256k1(Hash, PubKey, Signature)"}
|
, { 'VERIFY_SIG_SECP256K1',16#75, false, true, true, ?GAS(1300), [a,a,a,a], verify_sig_secp256k1, {bytes, bytes, bytes}, boolean, "Arg0 := verify_sig_secp256k1(Hash, PubKey, Signature)"}
|
||||||
|
|
||||||
, { 'CONTRACT_TO_ADDRESS', 16#74, false, true, 3, [a,a], contract_to_address, {contract}, address, "Arg0 := Arg1 - A no-op type conversion"}
|
, { 'CONTRACT_TO_ADDRESS', 16#76, false, true, true, ?GAS(10), [a,a], contract_to_address, {contract}, address, "Arg0 := Arg1 - A no-op type conversion"}
|
||||||
, { 'AUTH_TX_HASH', 16#75, false, true, 3, [a], auth_tx_hash, {}, variant, "If in GA authentication context return Some(TxHash) otherwise None."}
|
, { 'AUTH_TX_HASH', 16#77, false, true, true, ?GAS(10), [a], auth_tx_hash, {}, variant, "If in GA authentication context return Some(TxHash) otherwise None."}
|
||||||
|
|
||||||
, { 'BYTES_TO_INT', 16#76, false, true, 3, [a,a], bytes_to_int, {bytes}, integer, "Arg0 := bytes_to_int(Arg1)"}
|
, { 'ORACLE_CHECK', 16#78, false, false, true, ?GAS(100), [a,a,a,a], oracle_check, {oracle, typerep, typerep}, bool, "Arg0 := is Arg1 an oracle with the given query (Arg2) and response (Arg3) types"}
|
||||||
, { 'BYTES_TO_STR', 16#77, false, true, 3, [a,a], bytes_to_str, {bytes}, string, "Arg0 := bytes_to_str(Arg1)"}
|
, { 'ORACLE_CHECK_QUERY', 16#79, false, false, true, ?GAS(100), [a,a,a,a,a], oracle_check_query, {oracle, oracle_query, typerep, typerep}, bool, "Arg0 := is Arg2 a query for the oracle Arg1 with the given types (Arg3, Arg4)"}
|
||||||
|
|
||||||
, { 'ORACLE_CHECK', 16#78, false, false, 3, [a,a,a,a], oracle_check, {oracle, typerep, typerep}, bool, "Arg0 := is Arg1 an oracle with the given query (Arg2) and response (Arg3) types"}
|
, { 'IS_ORACLE', 16#7a, false, false, true, ?GAS(100), [a,a], is_oracle, {address}, bool, "Arg0 := is Arg1 an oracle"}
|
||||||
, { 'ORACLE_CHECK_QUERY', 16#79, false, false, 3, [a,a,a,a,a], oracle_check_query, {oracle, oracle_query, typerep, typerep}, bool, "Arg0 := is Arg2 a query for the oracle Arg1 with the given types (Arg3, Arg4)"}
|
, { 'IS_CONTRACT', 16#7b, false, false, true, ?GAS(100), [a,a], is_contract, {address}, bool, "Arg0 := is Arg1 a contract"}
|
||||||
|
, { 'IS_PAYABLE', 16#7c, false, false, true, ?GAS(100), [a,a], is_payable, {address}, bool, "Arg0 := is Arg1 a payable address"}
|
||||||
|
, { 'CREATOR', 16#7d, false, true, true, ?GAS(10), [a], contract_creator, {}, address, "Arg0 := contract creator"}
|
||||||
|
|
||||||
, { 'IS_ORACLE', 16#7a, false, false, 3, [a,a], is_oracle, {address}, bool, "Arg0 := is Arg1 an oracle"}
|
, { 'ECVERIFY_SECP256K1', 16#7e, false, true, true, ?GAS(1300), [a,a,a,a], ecverify_secp256k1, {bytes, bytes, bytes}, bytes, "Arg0 := ecverify_secp256k1(Hash, Addr, Signature)"}
|
||||||
, { 'IS_CONTRACT', 16#7b, false, false, 3, [a,a], is_contract, {address}, bool, "Arg0 := is Arg1 a contract"}
|
, { 'ECRECOVER_SECP256K1', 16#7f, false, true, true, ?GAS(1300), [a,a,a], ecrecover_secp256k1, {bytes, bytes}, bytes, "Arg0 := ecrecover_secp256k1(Hash, Signature)"}
|
||||||
, { 'CREATOR', 16#7c, false, true, 3, [a], contract_creator, {}, address, "Arg0 := contract creator"}
|
|
||||||
|
|
||||||
, { 'DEACTIVATE', 16#fa, false, true, 3, [], deactivate, {}, none, "Mark the current contract for deactivation."}
|
, { 'ADDRESS_TO_CONTRACT', 16#80, false, true, true, ?GAS(10), [a,a], address_to_contract, {address}, contract, "Arg0 := Arg1 - A no-op type conversion"}
|
||||||
, { 'ABORT', 16#fb, true, true, 3, [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."}
|
|
||||||
, { 'EXIT', 16#fc, true, true, 3, [a], exit, {string}, none, "Abort execution (use upp all gas) with error message in Arg0."}
|
, { 'BLS12_381_G1_NEG', 16#81, false, true, true, ?GAS(100), [a,a], bls12_381_g1_neg, {tuple}, tuple, "Arg0 := BLS12_381.g1_neg(Arg1) - Negate a G1-value"}
|
||||||
, { 'NOP', 16#fd, false, true, 1, [], nop, {}, none, "The no op. does nothing."}
|
, { 'BLS12_381_G1_NORM', 16#82, false, true, true, ?GAS(100), [a,a], bls12_381_g1_norm, {tuple}, tuple, "Arg0 := BLS12_381.g1_normalize(Arg1) - Normalize a G1-value"}
|
||||||
|
, { 'BLS12_381_G1_VALID', 16#83, false, true, true, ?GAS(2000), [a,a], bls12_381_g1_valid, {tuple}, bool, "Arg0 := BLS12_381.g1_valid(Arg1) - Check if G1-value is a valid group member"}
|
||||||
|
, { 'BLS12_381_G1_IS_ZERO', 16#84, false, true, true, ?GAS(30), [a,a], bls12_381_g1_is_zero, {tuple}, bool, "Arg0 := BLS12_381.g1_is_zero(Arg1) - Check if G1-value is zero"}
|
||||||
|
, { 'BLS12_381_G1_ADD', 16#85, false, true, true, ?GAS(100), [a,a,a], bls12_381_g1_add, {tuple, tuple}, tuple, "Arg0 := BLS12_381.g1_add(Arg1, Arg2) - Add two G1-values"}
|
||||||
|
, { 'BLS12_381_G1_MUL', 16#86, false, true, true, ?GAS(1000), [a,a,a], bls12_381_g1_mul, {tuple, tuple}, tuple, "Arg0 := BLS12_381.g1_mul(Arg1, Arg2) - Scalar multiplication for a G1-value (Arg1), and an Fr-value"}
|
||||||
|
|
||||||
|
, { 'BLS12_381_G2_NEG', 16#87, false, true, true, ?GAS(100), [a,a], bls12_381_g2_neg, {tuple}, tuple, "Arg0 := BLS12_381.g2_neg(Arg1) - Negate a G2-value"}
|
||||||
|
, { 'BLS12_381_G2_NORM', 16#88, false, true, true, ?GAS(100), [a,a], bls12_381_g2_norm, {tuple}, tuple, "Arg0 := BLS12_381.g2_normalize(Arg1) - Normalize a G2-value"}
|
||||||
|
, { 'BLS12_381_G2_VALID', 16#89, false, true, true, ?GAS(2000), [a,a], bls12_381_g2_valid, {tuple}, bool, "Arg0 := BLS12_381.g2_valid(Arg1) - Check if G2-value is a valid group member"}
|
||||||
|
, { 'BLS12_381_G2_IS_ZERO', 16#8a, false, true, true, ?GAS(30), [a,a], bls12_381_g2_is_zero, {tuple}, bool, "Arg0 := BLS12_381.g2_is_zero(Arg1) - Check if G2-value is zero"}
|
||||||
|
, { 'BLS12_381_G2_ADD', 16#8b, false, true, true, ?GAS(100), [a,a,a], bls12_381_g2_add, {tuple, tuple}, tuple, "Arg0 := BLS12_381.g2_add(Arg1, Arg2) - Add two G2-values"}
|
||||||
|
, { 'BLS12_381_G2_MUL', 16#8c, false, true, true, ?GAS(1000), [a,a,a], bls12_381_g2_mul, {tuple, tuple}, tuple, "Arg0 := BLS12_381.g2_mul(Arg1, Arg2) - Scalar multiplication for a G2-value (Arg2), and an Fr-value"}
|
||||||
|
|
||||||
|
, { 'BLS12_381_GT_INV', 16#8d, false, true, true, ?GAS(100), [a,a], bls12_381_gt_inv, {tuple}, tuple, "Arg0 := BLS12_381.gt_inv(Arg1) - Invert a GT-value"}
|
||||||
|
, { 'BLS12_381_GT_ADD', 16#8e, false, true, true, ?GAS(100), [a,a,a], bls12_381_gt_add, {tuple, tuple}, tuple, "Arg0 := BLS12_381.gt_add(Arg1, Arg2) - Add two GT-values"}
|
||||||
|
, { 'BLS12_381_GT_MUL', 16#8f, false, true, true, ?GAS(100), [a,a,a], bls12_381_gt_mul, {tuple, tuple}, tuple, "Arg0 := BLS12_381.gt_mul(Arg1, Arg2) - Multiply two GT-values"}
|
||||||
|
, { 'BLS12_381_GT_POW', 16#90, false, true, true, ?GAS(2000), [a,a,a], bls12_381_gt_pow, {tuple, tuple}, tuple, "Arg0 := BLS12_381.gt_pow(Arg1, Arg2) - Scalar exponentiation for a GT-value (Arg2), and an Fr-value"}
|
||||||
|
, { 'BLS12_381_GT_IS_ONE', 16#91, false, true, true, ?GAS(30), [a,a], bls12_381_gt_is_one, {tuple}, bool, "Arg0 := BLS12_381.gt_is_one(Arg1) - Check if a GT value is \"one\""}
|
||||||
|
, { 'BLS12_381_PAIRING', 16#92, false, true, true, ?GAS(12000), [a,a,a], bls12_381_pairing, {tuple, tuple}, tuple, "Arg0 := BLS12_381.pairing(Arg1, Arg2) - Find the pairing of a G1-value (Arg1) and a G2-value (Arg2)"}
|
||||||
|
, { 'BLS12_381_MILLER_LOOP', 16#93, false, true, true, ?GAS(5000), [a,a,a], bls12_381_miller_loop, {tuple, tuple}, tuple, "Arg0 := BLS12_381.miller_loop(Arg1, Arg2) - Do the Miller-loop step of pairing for a G1-value (Arg1) and a G2-value (Arg2)"}
|
||||||
|
, { 'BLS12_381_FINAL_EXP', 16#94, false, true, true, ?GAS(7000), [a,a], bls12_381_final_exp, {tuple}, tuple, "Arg0 := BLS12_381.final_exp(Arg1) - Do the final exponentiation in pairing"}
|
||||||
|
|
||||||
|
, { 'BLS12_381_INT_TO_FR', 16#95, false, true, true, ?GAS(30), [a,a], bls12_381_int_to_fr, {tuple}, tuple, "Arg0 := to_montgomery(Arg1) - Convert (Big)integer to montgomery representation (32 bytes)"}
|
||||||
|
, { 'BLS12_381_INT_TO_FP', 16#96, false, true, true, ?GAS(30), [a,a], bls12_381_int_to_fp, {tuple}, tuple, "Arg0 := to_montgomery(Arg1) - Convert (Big)integer to montgomery representation (48 bytes)"}
|
||||||
|
, { 'BLS12_381_FR_TO_INT', 16#97, false, true, true, ?GAS(30), [a,a], bls12_381_fr_to_int, {tuple}, tuple, "Arg0 := from_montgomery(Arg1) - Convert montgomery representation (32 bytes) to integer"}
|
||||||
|
, { 'BLS12_381_FP_TO_INT', 16#98, false, true, true, ?GAS(30), [a,a], bls12_381_fp_to_int, {tuple}, tuple, "Arg0 := from_montgomery(Arg1) - Convert montgomery representation (48 bytes) to integer"}
|
||||||
|
|
||||||
|
, { 'AENS_LOOKUP', 16#99, false, false, true, ?GAS(2000), [a,a], aens_lookup, {string}, variant, "Lookup the name of Arg0. Returns option(AENS.name)"}
|
||||||
|
, { 'ORACLE_EXPIRY', 16#9a, false, false, true, ?GAS(2000), [a,a], oracle_expiry, {oracle}, int, "Arg0 := expiry block for oracle Arg1"}
|
||||||
|
, { 'AUTH_TX', 16#9b, false, true, true, ?GAS(100 ), [a], auth_tx, {}, variant, "If in GA authentication context return Some(Tx) otherwise None."}
|
||||||
|
|
||||||
|
, { 'STR_TO_LIST', 16#9c, false, true, true, ?GAS(100), [a,a], str_to_list, {string}, list, "Arg0 := string converted to list of characters"}
|
||||||
|
, { 'STR_FROM_LIST', 16#9d, false, true, true, ?GAS(100), [a,a], str_from_list, {list}, string, "Arg0 := string converted from list of characters"}
|
||||||
|
, { 'STR_TO_UPPER', 16#9e, false, true, true, ?GAS(100), [a,a], str_to_upper, {string}, string, "Arg0 := to_upper(string)"}
|
||||||
|
, { 'STR_TO_LOWER', 16#9f, false, true, true, ?GAS(100), [a,a], str_to_lower, {string}, string, "Arg0 := to_lower(string)"}
|
||||||
|
, { 'CHAR_TO_INT', 16#a0, false, true, true, ?GAS(10), [a,a], char_to_int, {char}, int, "Arg0 := integer representation of UTF-8 character"}
|
||||||
|
, { 'CHAR_FROM_INT', 16#a1, false, true, true, ?GAS(10), [a,a], char_from_int, {int}, variant, "Arg0 := Some(UTF-8 character) from integer if valid, None if not valid."}
|
||||||
|
|
||||||
|
, { 'CALL_PGR', 16#a2, true, false, true, ?GAS(100), [a,is,a,a,a,a,a], call_pgr, {contract, string, typerep, typerep, integer, integer, bool}, variant, "Potentially protected remote call. Arg5 is protected flag, otherwise as CALL_GR."}
|
||||||
|
|
||||||
|
, { 'CREATE', 16#a3, true, false, true, ?GAS(10000), [a,a,a], create, {contract_bytearray, typerep, integer}, contract, "Deploys a contract with a bytecode Arg1 and value Arg3. The `init` arguments should be placed on the stack and match the type in Arg2. Writes contract address to the top of the accumulator stack. If an account on the resulting address did exist before the call, the `payable` flag will be updated."}
|
||||||
|
, { 'CLONE', 16#a4, true, false, true, ?GAS(5000), [a,a,a,a], clone, {contract, typerep, integer, bool}, any, "Clones the contract under Arg1 and deploys it with value of Arg3. The `init` arguments should be placed on the stack and match the type in Arg2. Writes contract (or `None` on fail when protected) to the top of the accumulator stack. Does not copy the existing contract's store – it will be initialized by a fresh call to the `init` function. If an account on the resulting address did exist before the call, the `payable` flag will be updated."}
|
||||||
|
, { 'CLONE_G', 16#a5, true, false, true, ?GAS(5000), [a,a,a,a,a], clone_g, {contract, typerep, integer, integer, bool}, any, "Like `CLONE` but additionally limits the gas of the `init` call by Arg3"}
|
||||||
|
, { 'BYTECODE_HASH', 16#a6, false, true, true, ?GAS(100), [a,a], bytecode_hash, {contract}, variant, "Arg0 := hash of the deserialized contract's bytecode under address given in Arg1 (or `None` on fail). Fails on AEVM contracts and contracts deployed before Iris."}
|
||||||
|
|
||||||
|
, { 'FEE', 16#a7, false, true, true, ?GAS(10), [a], fee, {}, integer, "Arg0 := The fee for the current call tx."}
|
||||||
|
|
||||||
|
, { 'ADDRESS_TO_BYTES', 16#a8, false, true, true, ?GAS(10), [a, a], addr_to_bytes, {address}, bytes, "Arg0 := the byte representation of the address"}
|
||||||
|
, { 'POSEIDON', 16#a9, false, true, true, ?GAS(6000), [a, a, a], poseidon, {integer, integer}, integer, "Arg0 := the Poseidon hash of Arg1 and Arg2 - all integers in the BLS12-381 scalar field"}
|
||||||
|
, { 'MULMOD', 16#aa, false, true, true, ?GAS(10), [a, a, a, a], mulmod, {integer, integer, integer}, integer, "Arg0 := (Arg1 * Arg2) mod Arg3"}
|
||||||
|
, { 'BAND', 16#ab, false, true, true, ?GAS(10), [a, a, a], bin_and, {integer, integer}, integer, "Arg0 := Arg1 & Arg2"}
|
||||||
|
, { 'BOR', 16#ac, false, true, true, ?GAS(10), [a, a, a], bin_or, {integer, integer}, integer, "Arg0 := Arg1 | Arg2"}
|
||||||
|
, { 'BXOR', 16#ad, false, true, true, ?GAS(10), [a, a, a], bin_xor, {integer, integer}, integer, "Arg0 := Arg1 ^ Arg2"}
|
||||||
|
, { 'BNOT', 16#ae, false, true, true, ?GAS(10), [a, a], bin_not, {integer}, integer, "Arg0 := ~Arg1"}
|
||||||
|
, { 'BSL', 16#af, false, true, true, ?GAS(10), [a, a, a], bin_sl, {integer, integer}, integer, "Arg0 := Arg1 << Arg2"}
|
||||||
|
, { 'BSR', 16#b0, false, true, true, ?GAS(10), [a, a, a], bin_sr, {integer, integer}, integer, "Arg0 := Arg1 >> Arg2"}
|
||||||
|
|
||||||
|
, { 'DEACTIVATE', 16#fa, false, true, true, ?GAS(10), [], deactivate, {}, none, "Mark the current contract for deactivation."}
|
||||||
|
, { 'ABORT', 16#fb, true, true, true, ?GAS(10), [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."}
|
||||||
|
, { 'EXIT', 16#fc, true, true, true, ?GAS(10), [a], exit, {string}, none, "Abort execution (use upp all gas) with error message in Arg0."}
|
||||||
|
, { 'NOP', 16#fd, false, true, true, ?GAS(1), [], nop, {}, none, "The no op. does nothing."}
|
||||||
%% FUNCTION 16#fe "Function declaration and entrypoint."
|
%% FUNCTION 16#fe "Function declaration and entrypoint."
|
||||||
%% EXTEND 16#ff "Reserved for future extensions beyond one byte opcodes."
|
%% EXTEND 16#ff "Reserved for future extensions beyond one byte opcodes."
|
||||||
].
|
].
|
||||||
@@ -205,16 +270,18 @@ generate_opcodes_ops(Modulename, HrlFile, SrcDir, Ops) ->
|
|||||||
Args = lists:flatten([gen_args(Op) || Op <- Ops]),
|
Args = lists:flatten([gen_args(Op) || Op <- Ops]),
|
||||||
EndBB = lists:flatten([gen_bb(Op) || Op <- Ops]),
|
EndBB = lists:flatten([gen_bb(Op) || Op <- Ops]),
|
||||||
InAuth = lists:flatten([gen_in_auth(Op) || Op <- Ops]),
|
InAuth = lists:flatten([gen_in_auth(Op) || Op <- Ops]),
|
||||||
ResType = lists:flatten([gen_res_type(Op) || Op <- Ops]),
|
Offchain = lists:flatten([gen_allowed_offchain(Op) || Op <- Ops]),
|
||||||
|
GasCost = lists:flatten([gen_gas_cost(Op) || Op <- Ops]),
|
||||||
|
|
||||||
io:format(File, "~s", [prelude("Provides opcode primitives.\n")]),
|
io:format(File, "~s", [prelude("Provides opcode primitives.\n")]),
|
||||||
io:format(File, "~s", [ops_exports(Modulename, HrlFile,
|
io:format(File, "~s", [ops_exports(Modulename, HrlFile,
|
||||||
["args/1\n"
|
["args/1\n"
|
||||||
" , end_bb/1\n"
|
" , end_bb/1\n"
|
||||||
" , in_auth/1\n"
|
" , in_auth/1\n"
|
||||||
|
" , allowed_offchain/1\n"
|
||||||
" , mnemonic/1\n"
|
" , mnemonic/1\n"
|
||||||
" , m_to_op/1\n"
|
" , m_to_op/1\n"
|
||||||
" , result_type/1\n"
|
" , gas_cost/1\n"
|
||||||
])]),
|
])]),
|
||||||
|
|
||||||
io:format(File, "%% FATE mnemonics\n~s", [Mnemonic]),
|
io:format(File, "%% FATE mnemonics\n~s", [Mnemonic]),
|
||||||
@@ -232,8 +299,11 @@ generate_opcodes_ops(Modulename, HrlFile, SrcDir, Ops) ->
|
|||||||
io:format(File, "%% Is FATE Op allowed in GA Authentication context?\n~s", [InAuth]),
|
io:format(File, "%% Is FATE Op allowed in GA Authentication context?\n~s", [InAuth]),
|
||||||
io:format(File, "in_auth(_) -> false.\n\n", []),
|
io:format(File, "in_auth(_) -> false.\n\n", []),
|
||||||
|
|
||||||
io:format(File, "%% What is the result type.\n~s", [ResType]),
|
io:format(File, "%% Is FATE Op allowed in a state channel offchain context?\n~s", [Offchain]),
|
||||||
io:format(File, "result_type(_) -> none.\n\n", []),
|
io:format(File, "allowed_offchain(_) -> false.\n\n", []),
|
||||||
|
|
||||||
|
io:format(File, "%% Base cost of operation\n~s", [GasCost]),
|
||||||
|
io:format(File, "gas_cost(Op) -> exit({bad_opcode, Op}).\n\n", []),
|
||||||
|
|
||||||
file:close(File).
|
file:close(File).
|
||||||
|
|
||||||
@@ -277,7 +347,7 @@ generate_code_ops(Modulename, SrcDir, Ops) ->
|
|||||||
file:close(File).
|
file:close(File).
|
||||||
|
|
||||||
gen_type(#{type_name := TypeName, type := Type}) ->
|
gen_type(#{type_name := TypeName, type := Type}) ->
|
||||||
lists:flatten(io_lib:format("-type ~-26s :: ~s.\n",
|
lists:flatten(io_lib:format("-type ~-29s :: ~s.\n",
|
||||||
[TypeName, Type])).
|
[TypeName, Type])).
|
||||||
|
|
||||||
gen_fate_code_type(#{type_name := TypeName}) ->
|
gen_fate_code_type(#{type_name := TypeName}) ->
|
||||||
@@ -355,29 +425,32 @@ ops_exports(Module, HrlFile, Exports) ->
|
|||||||
[Module, Exports])).
|
[Module, Exports])).
|
||||||
|
|
||||||
gen_mnemonic(#{opname := Name, macro := Macro}) ->
|
gen_mnemonic(#{opname := Name, macro := Macro}) ->
|
||||||
lists:flatten(io_lib:format("mnemonic(~21s) -> ~21w ;\n",
|
lists:flatten(io_lib:format("mnemonic(~24s) -> ~24w ;\n",
|
||||||
[Macro, Name])).
|
[Macro, Name])).
|
||||||
|
|
||||||
gen_m_to_op(#{opname := Name, macro := Macro}) ->
|
gen_m_to_op(#{opname := Name, macro := Macro}) ->
|
||||||
lists:flatten(io_lib:format("m_to_op(~21w) -> ~21s ;\n",
|
lists:flatten(io_lib:format("m_to_op(~24w) -> ~24s ;\n",
|
||||||
[Name, Macro])).
|
[Name, Macro])).
|
||||||
|
|
||||||
gen_args(#{macro := Macro, arity := Arity}) ->
|
gen_args(#{macro := Macro, arity := Arity}) ->
|
||||||
lists:flatten(io_lib:format("args(~21s) -> ~2w ;\n",
|
lists:flatten(io_lib:format("args(~24s) -> ~2w ;\n",
|
||||||
[Macro, Arity])).
|
[Macro, Arity])).
|
||||||
|
|
||||||
gen_bb(#{macro := Macro, end_bb := EndBB}) ->
|
gen_bb(#{macro := Macro, end_bb := EndBB}) ->
|
||||||
lists:flatten(io_lib:format("end_bb(~21s) -> ~w ;\n",
|
lists:flatten(io_lib:format("end_bb(~24s) -> ~w ;\n",
|
||||||
[Macro, EndBB])).
|
[Macro, EndBB])).
|
||||||
|
|
||||||
gen_in_auth(#{macro := Macro, in_auth := InAuth}) ->
|
gen_in_auth(#{macro := Macro, in_auth := InAuth}) ->
|
||||||
lists:flatten(io_lib:format("in_auth(~21s) -> ~w ;\n",
|
lists:flatten(io_lib:format("in_auth(~24s) -> ~w ;\n",
|
||||||
[Macro, InAuth])).
|
[Macro, InAuth])).
|
||||||
|
|
||||||
gen_res_type(#{macro := Macro, res_type := ResType}) ->
|
gen_allowed_offchain(#{macro := Macro, offchain := Offchain}) ->
|
||||||
lists:flatten(io_lib:format("result_type(~21s) -> ~w ;\n",
|
lists:flatten(io_lib:format("allowed_offchain(~24s) -> ~w ;\n",
|
||||||
[Macro, ResType])).
|
[Macro, Offchain])).
|
||||||
|
|
||||||
|
gen_gas_cost(#{macro := Macro, gas := Gas}) ->
|
||||||
|
lists:flatten(io_lib:format("gas_cost(~24s) -> ~w ;\n",
|
||||||
|
[Macro, Gas])).
|
||||||
|
|
||||||
prelude(Doc) ->
|
prelude(Doc) ->
|
||||||
"%%%-------------------------------------------------------------------\n"
|
"%%%-------------------------------------------------------------------\n"
|
||||||
@@ -393,11 +466,11 @@ prelude(Doc) ->
|
|||||||
|
|
||||||
|
|
||||||
gen_defines(#{opname := Name, opcode := OpCode}) ->
|
gen_defines(#{opname := Name, opcode := OpCode}) ->
|
||||||
lists:flatten(io_lib:format("-define(~-26w, 16#~2.16.0b).\n", [Name, OpCode])).
|
lists:flatten(io_lib:format("-define(~-29w, 16#~2.16.0b).\n", [Name, OpCode])).
|
||||||
|
|
||||||
gen([]) ->
|
gen([]) ->
|
||||||
[];
|
[];
|
||||||
gen([{OpName, OpCode, EndBB, InAuth, Gas, FateFormat, Constructor, ArgTypes, ResType, Doc} | Rest]) ->
|
gen([{OpName, OpCode, EndBB, InAuth, AllowedOffchain, Gas, FateFormat, Constructor, ArgTypes, ResType, Doc} | Rest]) ->
|
||||||
Arity = length(FateFormat),
|
Arity = length(FateFormat),
|
||||||
Name = atom_to_list(OpName),
|
Name = atom_to_list(OpName),
|
||||||
LowerName = string:to_lower(Name),
|
LowerName = string:to_lower(Name),
|
||||||
@@ -415,6 +488,7 @@ gen([{OpName, OpCode, EndBB, InAuth, Gas, FateFormat, Constructor, ArgTypes, Res
|
|||||||
, arity => Arity
|
, arity => Arity
|
||||||
, end_bb => EndBB
|
, end_bb => EndBB
|
||||||
, in_auth => InAuth
|
, in_auth => InAuth
|
||||||
|
, offchain => AllowedOffchain
|
||||||
, format => FateFormat
|
, format => FateFormat
|
||||||
, macro => Macro
|
, macro => Macro
|
||||||
, type_name => TypeName
|
, type_name => TypeName
|
||||||
@@ -488,25 +562,33 @@ gen_asm_pp(Module, Path, Ops) ->
|
|||||||
io:format(File, "format_op(Op, _Symbols) -> io_lib:format(\";; Bad Op: ~~w\\n\", [Op]).\n", []),
|
io:format(File, "format_op(Op, _Symbols) -> io_lib:format(\";; Bad Op: ~~w\\n\", [Op]).\n", []),
|
||||||
file:close(File).
|
file:close(File).
|
||||||
|
|
||||||
gen_format(#{opname := Name}) when (Name =:= 'CALL_R') or (Name =:= 'CALL_TR') ->
|
gen_format(#{opname := Name}) when (Name =:= 'CALL_R') ->
|
||||||
io_lib:format("format_op({~w, {immediate, Contract}, {immediate, Function}, Value}, Symbols) ->\n"
|
io_lib:format("format_op({~w, {immediate, Contract}, {immediate, Function}, ArgType, RetType, Value}, Symbols) ->\n"
|
||||||
" [\"~s \", lookup(Contract, Symbols), \".\", "
|
" [\"~s \", lookup(Contract, Symbols), \".\", "
|
||||||
"lookup(Function, Symbols), \" \", "
|
"lookup(Function, Symbols), \" \", "
|
||||||
|
"format_arg(a, ArgType), \" \", "
|
||||||
|
"format_arg(a, RetType), \" \", "
|
||||||
"format_arg(a, Value)];\n"
|
"format_arg(a, Value)];\n"
|
||||||
"format_op({~w, Contract, {immediate, Function}, Value}, Symbols) ->\n"
|
"format_op({~w, Contract, {immediate, Function}, ArgType, RetType, Value}, Symbols) ->\n"
|
||||||
"[\"~s \", format_arg(a, Contract), \".\", "
|
"[\"~s \", format_arg(a, Contract), \".\", "
|
||||||
"lookup(Function, Symbols), \" \", "
|
"lookup(Function, Symbols), \" \", "
|
||||||
|
"format_arg(a, ArgType), \" \", "
|
||||||
|
"format_arg(a, RetType), \" \", "
|
||||||
"format_arg(a, Value)];\n",
|
"format_arg(a, Value)];\n",
|
||||||
[Name, atom_to_list(Name), Name, atom_to_list(Name)]);
|
[Name, atom_to_list(Name), Name, atom_to_list(Name)]);
|
||||||
gen_format(#{opname := Name}) when (Name =:= 'CALL_GR') or (Name =:= 'CALL_GTR') ->
|
gen_format(#{opname := Name}) when (Name =:= 'CALL_GR') ->
|
||||||
io_lib:format("format_op({~w, {immediate, Contract}, {immediate, Function}, Value, Gas}, Symbols) ->\n"
|
io_lib:format("format_op({~w, {immediate, Contract}, {immediate, Function}, ArgType, RetType, Value, Gas}, Symbols) ->\n"
|
||||||
" [\"~s \", lookup(Contract, Symbols), \".\", "
|
" [\"~s \", lookup(Contract, Symbols), \".\", "
|
||||||
"lookup(Function, Symbols), \" \", "
|
"lookup(Function, Symbols), \" \", "
|
||||||
|
"format_arg(a, ArgType), \" \", "
|
||||||
|
"format_arg(a, RetType), \" \", "
|
||||||
"format_arg(a, Value), \" \", "
|
"format_arg(a, Value), \" \", "
|
||||||
"format_arg(a, Gas)];\n"
|
"format_arg(a, Gas)];\n"
|
||||||
"format_op({~w, Contract, {immediate, Function}, Value, Gas}, Symbols) ->\n"
|
"format_op({~w, Contract, {immediate, Function}, ArgType, RetType, Value, Gas}, Symbols) ->\n"
|
||||||
"[\"~s \", format_arg(a, Contract), \".\", "
|
"[\"~s \", format_arg(a, Contract), \".\", "
|
||||||
"lookup(Function, Symbols), \" \", "
|
"lookup(Function, Symbols), \" \", "
|
||||||
|
"format_arg(a, ArgType), \" \", "
|
||||||
|
"format_arg(a, RetType), \" \", "
|
||||||
"format_arg(a, Value), \" \", "
|
"format_arg(a, Value), \" \", "
|
||||||
"format_arg(a, Gas)];\n",
|
"format_arg(a, Gas)];\n",
|
||||||
[Name, atom_to_list(Name), Name, atom_to_list(Name)]);
|
[Name, atom_to_list(Name), Name, atom_to_list(Name)]);
|
||||||
@@ -705,51 +787,3 @@ gen_variant() ->
|
|||||||
3 -> "(| 2 | 0 | ( " ++ imm_arg() ++ ", " ++ imm_arg() ++ " ) |)"
|
3 -> "(| 2 | 0 | ( " ++ imm_arg() ++ ", " ++ imm_arg() ++ " ) |)"
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
%% TODO: add gas cost and end_bb/in_auth?
|
|
||||||
generate_documentation(Filename) ->
|
|
||||||
{ok, File} = file:open(Filename, [write]),
|
|
||||||
Instructions = lists:flatten([gen_doc(Op)++"\n" || Op <- get_ops()]),
|
|
||||||
io:format(File,
|
|
||||||
"### Operations\n\n"
|
|
||||||
"| OpCode | Name | Args | Description |\n"
|
|
||||||
"| --- | --- | --- | --- |\n"
|
|
||||||
"~s"
|
|
||||||
, [Instructions]),
|
|
||||||
io:format(File, "\n", []),
|
|
||||||
file:close(File).
|
|
||||||
|
|
||||||
gen_doc(#{ opname := Name
|
|
||||||
, opcode := OpCode
|
|
||||||
, arity := _Arity
|
|
||||||
, end_bb := _EndBB
|
|
||||||
, format := FateFormat
|
|
||||||
, macro := _Macro
|
|
||||||
, type_name := _TypeName
|
|
||||||
, doc := Doc
|
|
||||||
, gas := _Gas
|
|
||||||
, type := _Type
|
|
||||||
, constructor := _Constructor
|
|
||||||
, constructor_type := _ConstructorType
|
|
||||||
}) ->
|
|
||||||
Arguments =
|
|
||||||
case FateFormat of
|
|
||||||
[] -> "";
|
|
||||||
_ -> lists:join(" ",
|
|
||||||
[format_arg_doc(A) ||
|
|
||||||
A <-
|
|
||||||
lists:zip(FateFormat,
|
|
||||||
lists:seq(0,length(FateFormat)-1))])
|
|
||||||
end,
|
|
||||||
io_lib:format("| 0x~.16b | ~w | ~s | ~s |\n",
|
|
||||||
[ OpCode
|
|
||||||
, Name
|
|
||||||
, Arguments
|
|
||||||
, Doc]).
|
|
||||||
|
|
||||||
format_arg_doc({a, N}) -> io_lib:format("Arg~w", [N]);
|
|
||||||
format_arg_doc({is,_N}) -> "Identifier";
|
|
||||||
format_arg_doc({ii,_N}) -> "Integer";
|
|
||||||
format_arg_doc({li,_N}) -> "[Integers]";
|
|
||||||
format_arg_doc({t,_N}) -> "Type".
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,218 @@
|
|||||||
|
%%%-------------------------------------------------------------------
|
||||||
|
%%% @copyright (C) 2019, Aeternity Anstalt
|
||||||
|
%%% @doc
|
||||||
|
%%% Functions for manipulating FATE maps. In particular for mediating
|
||||||
|
%%% between plain map values (represented by Erlang maps) and maps that are
|
||||||
|
%%% fully or partially saved in the contract store.
|
||||||
|
%%% @end
|
||||||
|
%%% -------------------------------------------------------------------
|
||||||
|
-module(aeb_fate_maps).
|
||||||
|
|
||||||
|
-include("aeb_fate_data.hrl").
|
||||||
|
|
||||||
|
-export([ allocate_store_maps/2
|
||||||
|
, has_store_maps/1
|
||||||
|
, unfold_store_maps/2
|
||||||
|
, refcount/1
|
||||||
|
, refcount_zero/0
|
||||||
|
, refcount_diff/2
|
||||||
|
, refcount_union/1
|
||||||
|
, refcount_union/2
|
||||||
|
, no_used_ids/0 ]).
|
||||||
|
|
||||||
|
-export_type([used_ids/0, maps/0, refcount/0]).
|
||||||
|
|
||||||
|
%% Size in bytes of serialization of a map for which we turn it into a store
|
||||||
|
%% map. It's not worth turning small maps into store maps.
|
||||||
|
%% Under consensus!
|
||||||
|
-ifdef(TEST).
|
||||||
|
-define(STORE_MAP_THRESHOLD, 0).
|
||||||
|
-else.
|
||||||
|
-define(STORE_MAP_THRESHOLD, 100).
|
||||||
|
-endif.
|
||||||
|
|
||||||
|
-type fate_value() :: aeb_fate_data:fate_type().
|
||||||
|
-type fate_value_or_tombstone() :: fate_value() | ?FATE_MAP_TOMBSTONE.
|
||||||
|
-type id() :: integer().
|
||||||
|
-type used_ids() :: list(id()).
|
||||||
|
-type maps() :: #{ id() => aeb_fate_data:fate_map() | aeb_fate_data:fate_store_map() }.
|
||||||
|
|
||||||
|
%% -- Allocating store maps --------------------------------------------------
|
||||||
|
|
||||||
|
-spec allocate_store_maps(used_ids(), [fate_value_or_tombstone()]) -> {[fate_value_or_tombstone()], maps()}.
|
||||||
|
allocate_store_maps(Used, Vals) ->
|
||||||
|
{_Used, Vals1, Maps} = allocate_store_maps_l(Used, Vals, #{}),
|
||||||
|
{Vals1, Maps}.
|
||||||
|
|
||||||
|
allocate_store_maps(Used, ?FATE_MAP_TOMBSTONE = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_TRUE = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_FALSE = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_UNIT = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_BITS(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_BYTES(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_ADDRESS(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_CONTRACT(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_ORACLE(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_ORACLE_Q(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_CHANNEL(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_TYPEREP(_) = Val, Maps) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, Val, Maps) when ?IS_FATE_INTEGER(Val) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, Val, Maps) when ?IS_FATE_STRING(Val) -> {Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_TUPLE(Val), Maps) ->
|
||||||
|
{Used1, Vals, Maps1} = allocate_store_maps_l(Used, tuple_to_list(Val), Maps),
|
||||||
|
{Used1, ?FATE_TUPLE(list_to_tuple(Vals)), Maps1};
|
||||||
|
allocate_store_maps(Used, Val, Maps) when ?IS_FATE_LIST(Val) ->
|
||||||
|
{Used1, Vals, Maps1} = allocate_store_maps_l(Used, ?FATE_LIST_VALUE(Val), Maps),
|
||||||
|
{Used1, ?MAKE_FATE_LIST(Vals), Maps1};
|
||||||
|
allocate_store_maps(Used, ?FATE_VARIANT(Arities, Tag, Vals), Maps) ->
|
||||||
|
{Used1, Vals1, Maps1} = allocate_store_maps_l(Used, tuple_to_list(Vals), Maps),
|
||||||
|
{Used1, ?FATE_VARIANT(Arities, Tag, list_to_tuple(Vals1)), Maps1};
|
||||||
|
allocate_store_maps(Used, Val, Maps) when ?IS_FATE_MAP(Val) ->
|
||||||
|
{Used1, KVs, Maps1} = allocate_store_maps_m(Used, ?FATE_MAP_VALUE(Val), Maps),
|
||||||
|
Val1 = ?MAKE_FATE_MAP(KVs),
|
||||||
|
case byte_size(aeb_fate_encoding:serialize(Val1)) < ?STORE_MAP_THRESHOLD of
|
||||||
|
true -> {Used1, Val1, Maps1};
|
||||||
|
false ->
|
||||||
|
{Id, Used2} = next_id(Used1),
|
||||||
|
{Used2, ?FATE_STORE_MAP(#{}, Id), Maps1#{Id => Val1}}
|
||||||
|
end;
|
||||||
|
allocate_store_maps(Used, ?FATE_STORE_MAP(Cache, _Id) = Val, Maps) when Cache =:= #{} ->
|
||||||
|
{Used, Val, Maps};
|
||||||
|
allocate_store_maps(Used, ?FATE_STORE_MAP(Cache, Id), Maps) ->
|
||||||
|
{NewId, Used1} = next_id(Used),
|
||||||
|
{Used2, Cache1, Maps1} = allocate_store_maps_m(Used1, Cache, Maps),
|
||||||
|
{Used2, ?FATE_STORE_MAP(#{}, NewId), Maps1#{NewId => ?FATE_STORE_MAP(Cache1, Id)}}.
|
||||||
|
|
||||||
|
allocate_store_maps_l(Used, [], Maps) -> {Used, [], Maps};
|
||||||
|
allocate_store_maps_l(Used, [H | T], Maps) ->
|
||||||
|
{Used1, H1, Maps1} = allocate_store_maps(Used, H, Maps),
|
||||||
|
{Used2, T1, Maps2} = allocate_store_maps(Used1, T, Maps1),
|
||||||
|
{Used2, [H1 | T1], Maps2}.
|
||||||
|
|
||||||
|
allocate_store_maps_m(Used, Val, Maps) ->
|
||||||
|
maps:fold(fun(K, V, {Us, M, Ms}) ->
|
||||||
|
{Us1, V1, Ms1} = allocate_store_maps(Us, V, Ms),
|
||||||
|
{Us1, M#{ K => V1 }, Ms1}
|
||||||
|
end, {Used, #{}, Maps}, Val).
|
||||||
|
|
||||||
|
%% -- Unfolding store maps ---------------------------------------------------
|
||||||
|
|
||||||
|
-type unfold_fun() :: fun((id()) -> aeb_fate_data:fate_map()).
|
||||||
|
|
||||||
|
-spec unfold_store_maps(unfold_fun(), fate_value_or_tombstone()) -> fate_value_or_tombstone().
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_MAP_TOMBSTONE = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_TRUE = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_FALSE = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_UNIT = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_BITS(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_BYTES(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_ADDRESS(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_CONTRACT(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_ORACLE(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_ORACLE_Q(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_CHANNEL(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, ?FATE_TYPEREP(_) = Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, Val) when ?IS_FATE_INTEGER(Val) -> Val;
|
||||||
|
unfold_store_maps(_Unfold, Val) when ?IS_FATE_STRING(Val) -> Val;
|
||||||
|
unfold_store_maps(Unfold, ?FATE_TUPLE(Val)) ->
|
||||||
|
Vals = unfold_store_maps_l(Unfold, tuple_to_list(Val)),
|
||||||
|
?FATE_TUPLE(list_to_tuple(Vals));
|
||||||
|
unfold_store_maps(Unfold, Val) when ?IS_FATE_LIST(Val) ->
|
||||||
|
?MAKE_FATE_LIST(unfold_store_maps_l(Unfold, ?FATE_LIST_VALUE(Val)));
|
||||||
|
unfold_store_maps(Unfold, ?FATE_VARIANT(Arities, Tag, Vals)) ->
|
||||||
|
Vals1 = unfold_store_maps_l(Unfold, tuple_to_list(Vals)),
|
||||||
|
?FATE_VARIANT(Arities, Tag, list_to_tuple(Vals1));
|
||||||
|
unfold_store_maps(Unfold, Val) when ?IS_FATE_MAP(Val) ->
|
||||||
|
?MAKE_FATE_MAP(unfold_store_maps_m(Unfold, ?FATE_MAP_VALUE(Val)));
|
||||||
|
unfold_store_maps(Unfold, ?FATE_STORE_MAP(Cache, Id)) ->
|
||||||
|
StoreMap = Unfold(Id),
|
||||||
|
maps:fold(fun write_cache/3, unfold_store_maps(Unfold, StoreMap),
|
||||||
|
unfold_store_maps_m(Unfold, Cache)).
|
||||||
|
|
||||||
|
unfold_store_maps_l(Unfold, Vals) ->
|
||||||
|
[ unfold_store_maps(Unfold, Val) || Val <- Vals ].
|
||||||
|
|
||||||
|
unfold_store_maps_m(Unfold, Val) ->
|
||||||
|
maps:map(fun(_, V) -> unfold_store_maps(Unfold, V) end, Val).
|
||||||
|
|
||||||
|
write_cache(Key, ?FATE_MAP_TOMBSTONE, Map) ->
|
||||||
|
maps:remove(Key, Map);
|
||||||
|
write_cache(Key, Val, Map) ->
|
||||||
|
Map#{ Key => Val }.
|
||||||
|
|
||||||
|
%% -- Reference counting -----------------------------------------------------
|
||||||
|
|
||||||
|
-type refcount() :: #{id() => integer()}.
|
||||||
|
|
||||||
|
-spec refcount_zero() -> refcount().
|
||||||
|
refcount_zero() -> #{}.
|
||||||
|
|
||||||
|
-spec refcount_diff(refcount(), refcount()) -> refcount().
|
||||||
|
refcount_diff(New, Old) ->
|
||||||
|
maps:fold(fun(K, N, C) -> maps:update_with(K, fun(M) -> M - N end, -N, C) end,
|
||||||
|
New, Old).
|
||||||
|
|
||||||
|
-spec refcount_union([refcount()]) -> refcount().
|
||||||
|
refcount_union(Counts) -> lists:foldl(fun refcount_union/2, #{}, Counts).
|
||||||
|
|
||||||
|
-spec refcount_union(refcount(), refcount()) -> refcount().
|
||||||
|
refcount_union(A, B) ->
|
||||||
|
maps:fold(fun(K, N, C) -> maps:update_with(K, fun(M) -> M + N end, N, C) end,
|
||||||
|
B, A).
|
||||||
|
|
||||||
|
-spec has_store_maps(fate_value()) -> boolean().
|
||||||
|
has_store_maps(Val) ->
|
||||||
|
refcount_zero() /= refcount(Val).
|
||||||
|
|
||||||
|
-spec refcount(fate_value()) -> refcount().
|
||||||
|
refcount(Val) -> refcount(Val, #{}).
|
||||||
|
|
||||||
|
-spec refcount(fate_value_or_tombstone(), refcount()) -> refcount().
|
||||||
|
refcount(?FATE_MAP_TOMBSTONE, Count) -> Count;
|
||||||
|
refcount(?FATE_TRUE, Count) -> Count;
|
||||||
|
refcount(?FATE_FALSE, Count) -> Count;
|
||||||
|
refcount(?FATE_UNIT, Count) -> Count;
|
||||||
|
refcount(?FATE_BITS(_), Count) -> Count;
|
||||||
|
refcount(?FATE_BYTES(_), Count) -> Count;
|
||||||
|
refcount(?FATE_ADDRESS(_), Count) -> Count;
|
||||||
|
refcount(?FATE_CONTRACT(_), Count) -> Count;
|
||||||
|
refcount(?FATE_ORACLE(_), Count) -> Count;
|
||||||
|
refcount(?FATE_ORACLE_Q(_), Count) -> Count;
|
||||||
|
refcount(?FATE_CHANNEL(_), Count) -> Count;
|
||||||
|
refcount(?FATE_TYPEREP(_), Count) -> Count;
|
||||||
|
refcount(Val, Count) when ?IS_FATE_INTEGER(Val) -> Count;
|
||||||
|
refcount(Val, Count) when ?IS_FATE_STRING(Val) -> Count;
|
||||||
|
refcount(?FATE_TUPLE(Val), Count) ->
|
||||||
|
refcount_l(tuple_to_list(Val), Count);
|
||||||
|
refcount(Val, Count) when ?IS_FATE_LIST(Val) ->
|
||||||
|
refcount_l(?FATE_LIST_VALUE(Val), Count);
|
||||||
|
refcount(?FATE_VARIANT(_Arities, _Tag, Vals), Count) ->
|
||||||
|
refcount_l(tuple_to_list(Vals), Count);
|
||||||
|
refcount(Val, Count) when ?IS_FATE_MAP(Val) ->
|
||||||
|
refcount_m(?FATE_MAP_VALUE(Val), Count);
|
||||||
|
refcount(?FATE_STORE_MAP(Cache, Id), Count) ->
|
||||||
|
refcount_m(Cache, maps:update_with(Id, fun(N) -> N + 1 end, 1, Count)).
|
||||||
|
|
||||||
|
refcount_l(Vals, Count) ->
|
||||||
|
lists:foldl(fun refcount/2, Count, Vals).
|
||||||
|
|
||||||
|
refcount_m(Val, Count) ->
|
||||||
|
%% No maps in map keys
|
||||||
|
maps:fold(fun(_, ?FATE_MAP_TOMBSTONE, C) -> C;
|
||||||
|
(_, V, C) -> refcount(V, C) end, Count, Val).
|
||||||
|
|
||||||
|
%% -- Map id allocation ------------------------------------------------------
|
||||||
|
|
||||||
|
-spec no_used_ids() -> used_ids().
|
||||||
|
no_used_ids() -> [].
|
||||||
|
|
||||||
|
-spec next_id(used_ids()) -> {id(), used_ids()}.
|
||||||
|
next_id(UsedIds) ->
|
||||||
|
next_id(UsedIds, 0, []).
|
||||||
|
|
||||||
|
next_id(Used, J, Acc) when Used == []; J < hd(Used) ->
|
||||||
|
{J, lists:reverse(Acc) ++ [J | Used]};
|
||||||
|
next_id([I | Used], I, Acc) ->
|
||||||
|
next_id(Used, I + 1, [I | Acc]);
|
||||||
|
next_id([I | Used], J, Acc) when J > I ->
|
||||||
|
next_id(Used, J, [I | Acc]).
|
||||||
+32
-2
@@ -14,6 +14,7 @@
|
|||||||
, heap_value_maps/1
|
, heap_value_maps/1
|
||||||
, heap_value_offset/1
|
, heap_value_offset/1
|
||||||
, heap_value_heap/1
|
, heap_value_heap/1
|
||||||
|
, heap_value_byte_size/1
|
||||||
, heap_fragment_maps/1
|
, heap_fragment_maps/1
|
||||||
, heap_fragment_offset/1
|
, heap_fragment_offset/1
|
||||||
, heap_fragment_heap/1
|
, heap_fragment_heap/1
|
||||||
@@ -90,6 +91,25 @@ heap_value_offset({_, Heap}) -> Heap#heap.offset.
|
|||||||
binary() | #{non_neg_integer() => non_neg_integer()}.
|
binary() | #{non_neg_integer() => non_neg_integer()}.
|
||||||
heap_value_heap({_, Heap}) -> Heap#heap.heap.
|
heap_value_heap({_, Heap}) -> Heap#heap.heap.
|
||||||
|
|
||||||
|
%% -- Byte size of a heap value ----------------------------------------------
|
||||||
|
|
||||||
|
-spec heap_value_byte_size(heap_value()) -> non_neg_integer().
|
||||||
|
heap_value_byte_size({_, Heap}) ->
|
||||||
|
Value = Heap#heap.heap,
|
||||||
|
Maps = Heap#heap.maps,
|
||||||
|
ValueSize =
|
||||||
|
if is_binary(Value) -> byte_size(Value);
|
||||||
|
true -> 0 end,
|
||||||
|
MapsSize =
|
||||||
|
lists:sum([ pmap_size(Map) || Map <- maps:values(Maps#maps.maps) ]),
|
||||||
|
ValueSize + MapsSize.
|
||||||
|
|
||||||
|
pmap_size(#pmap{data = stored}) -> 0;
|
||||||
|
pmap_size(#pmap{data = Data}) when is_map(Data) ->
|
||||||
|
lists:sum([ byte_size(Key) + byte_size(Val)
|
||||||
|
|| {Key, Val} <- maps:to_list(Data),
|
||||||
|
Val /= tombstone ]).
|
||||||
|
|
||||||
%% -- Value to binary --------------------------------------------------------
|
%% -- Value to binary --------------------------------------------------------
|
||||||
|
|
||||||
-spec to_binary(aeb_aevm_data:data()) -> aeb_aevm_data:heap().
|
-spec to_binary(aeb_aevm_data:data()) -> aeb_aevm_data:heap().
|
||||||
@@ -113,11 +133,15 @@ to_binary1(Data, Address) when is_binary(Data) ->
|
|||||||
%% a string
|
%% a string
|
||||||
Words = aeb_memory:binary_to_words(Data),
|
Words = aeb_memory:binary_to_words(Data),
|
||||||
{Address,<<(size(Data)):256, << <<W:256>> || W <- Words>>/binary>>};
|
{Address,<<(size(Data)):256, << <<W:256>> || W <- Words>>/binary>>};
|
||||||
|
to_binary1({contract_bytearray, FateCode}, Address) when is_binary(FateCode) ->
|
||||||
|
Words = aeb_memory:binary_to_words(FateCode),
|
||||||
|
{Address,<<(size(FateCode)):256, << <<W:256>> || W <- Words>>/binary>>};
|
||||||
to_binary1(none, Address) -> to_binary1({variant, 0, []}, Address);
|
to_binary1(none, Address) -> to_binary1({variant, 0, []}, Address);
|
||||||
to_binary1({some, Value}, Address) -> to_binary1({variant, 1, [Value]}, Address);
|
to_binary1({some, Value}, Address) -> to_binary1({variant, 1, [Value]}, Address);
|
||||||
to_binary1(word, Address) -> to_binary1({?TYPEREP_WORD_TAG}, Address);
|
to_binary1(word, Address) -> to_binary1({?TYPEREP_WORD_TAG}, Address);
|
||||||
to_binary1(string, Address) -> to_binary1({?TYPEREP_STRING_TAG}, Address);
|
to_binary1(string, Address) -> to_binary1({?TYPEREP_STRING_TAG}, Address);
|
||||||
to_binary1(typerep, Address) -> to_binary1({?TYPEREP_TYPEREP_TAG}, Address);
|
to_binary1(typerep, Address) -> to_binary1({?TYPEREP_TYPEREP_TAG}, Address);
|
||||||
|
to_binary1(contract_bytearray, Address) -> to_binary1({?TYPEREP_CONTRACT_BYTEARRAY_TAG}, Address);
|
||||||
to_binary1(function, Address) -> to_binary1({?TYPEREP_FUN_TAG}, Address);
|
to_binary1(function, Address) -> to_binary1({?TYPEREP_FUN_TAG}, Address);
|
||||||
to_binary1({list, T}, Address) -> to_binary1({?TYPEREP_LIST_TAG, T}, Address);
|
to_binary1({list, T}, Address) -> to_binary1({?TYPEREP_LIST_TAG, T}, Address);
|
||||||
to_binary1({option, T}, Address) -> to_binary1({variant, [[], [T]]}, Address);
|
to_binary1({option, T}, Address) -> to_binary1({variant, [[], [T]]}, Address);
|
||||||
@@ -248,8 +272,14 @@ from_binary(Visited, typerep, Heap, V) ->
|
|||||||
?TYPEREP_TUPLE_TAG -> {tuple, Arg({list, typerep})};
|
?TYPEREP_TUPLE_TAG -> {tuple, Arg({list, typerep})};
|
||||||
?TYPEREP_VARIANT_TAG -> {variant, Arg({list, {list, typerep}})};
|
?TYPEREP_VARIANT_TAG -> {variant, Arg({list, {list, typerep}})};
|
||||||
?TYPEREP_MAP_TAG -> {map, Arg(typerep), Arg1(typerep, 2)};
|
?TYPEREP_MAP_TAG -> {map, Arg(typerep), Arg1(typerep, 2)};
|
||||||
?TYPEREP_FUN_TAG -> function
|
?TYPEREP_FUN_TAG -> function;
|
||||||
end.
|
?TYPEREP_CONTRACT_BYTEARRAY_TAG -> contract_bytearray
|
||||||
|
end;
|
||||||
|
from_binary(_, contract_bytearray, Heap, V) ->
|
||||||
|
FateCodeSize = heap_word(Heap, V),
|
||||||
|
BitAddr = 8*(V+32),
|
||||||
|
<<_:BitAddr,Bytes:FateCodeSize/binary,_/binary>> = Heap,
|
||||||
|
{contract_bytearray, Bytes}.
|
||||||
|
|
||||||
map_binary_to_value(KeyType, ValType, N, Bin, Ptr) ->
|
map_binary_to_value(KeyType, ValType, N, Bin, Ptr) ->
|
||||||
%% Avoid looping on bogus sizes
|
%% Avoid looping on bogus sizes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{application, aebytecode,
|
{application, aebytecode,
|
||||||
[{description, "Bytecode definitions, serialization and deserialization for aeternity."},
|
[{description, "Bytecode definitions, serialization and deserialization for aeternity."},
|
||||||
{vsn, "2.1.0"},
|
{vsn, "3.2.0"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{applications,
|
{applications,
|
||||||
[kernel,
|
[kernel,
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ sources() ->
|
|||||||
, "immediates"
|
, "immediates"
|
||||||
, "names"
|
, "names"
|
||||||
, "oracles"
|
, "oracles"
|
||||||
%% , "all_instructions"
|
, "meta"
|
||||||
].
|
].
|
||||||
|
|
||||||
check_roundtrip(File) ->
|
check_roundtrip(File) ->
|
||||||
|
|||||||
@@ -83,6 +83,15 @@ sources() ->
|
|||||||
aeb_fate_data:make_variant([0,1,2,3,4,5],
|
aeb_fate_data:make_variant([0,1,2,3,4,5],
|
||||||
3, {aeb_fate_data:make_boolean(true),
|
3, {aeb_fate_data:make_boolean(true),
|
||||||
aeb_fate_data:make_list(make_int_list(3)),
|
aeb_fate_data:make_list(make_int_list(3)),
|
||||||
aeb_fate_data:make_string(<<"foo">>)})
|
aeb_fate_data:make_string(<<"foo">>)}),
|
||||||
|
%% contract C =
|
||||||
|
%% type state = int
|
||||||
|
%% entrypoint init() = 2137
|
||||||
|
|
||||||
].
|
%% cb_+FFGA6Af6sHTrctrcNGwEa8MPei7iEHIjnxcsBzlA5IK0Yn11sCllP5E1kQfADcANwAaDoJvgggZAQM/jC8BEUTWRB8RaW5pdIIvAIU0LjMuMAD7u
|
||||||
|
aeb_fate_data:make_contract_bytearray(
|
||||||
|
<<248,81,70,3,160,31,234,193,211,173,203,107,112,209,176,17,175,12,61,232,187,
|
||||||
|
136,65,200,142,124,92,176,28,229,3,146,10,209,137,245,214,192,165,148,254,68,
|
||||||
|
214,68,31,0,55,0,55,0,26,14,130,111,130,8,25,1,3,63,140,47,1,17,68,214,68,31,
|
||||||
|
17,105,110,105,116,130,47,0,133,52,46,51,46,48,0>>)
|
||||||
|
].
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
ADD a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
ADDR_TO_STR a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,249 +0,0 @@
|
|||||||
;; CONTRACT all_instructions
|
|
||||||
|
|
||||||
;; Dont expect this contract to typecheck or run.
|
|
||||||
;; Just used to check assembler rountrip of all instructions.
|
|
||||||
|
|
||||||
FUNCTION foo () : {tuple, []}
|
|
||||||
RETURN
|
|
||||||
|
|
||||||
RETURNR a
|
|
||||||
|
|
||||||
CALL "foo"
|
|
||||||
|
|
||||||
CALL_R arg125 foo 0
|
|
||||||
|
|
||||||
CALL_T "foo"
|
|
||||||
|
|
||||||
CALL_TR arg245 foo 4711
|
|
||||||
|
|
||||||
CALL_GTR arg245 foo 0 100
|
|
||||||
|
|
||||||
CALL_GR arg245 foo 0 4711
|
|
||||||
|
|
||||||
JUMP 5514251025295783441695716053282666408426
|
|
||||||
|
|
||||||
JUMPIF arg196 0x12c651665
|
|
||||||
|
|
||||||
SWITCH_V2 a 63 33
|
|
||||||
|
|
||||||
SWITCH_V3 var4 0x1d61723dd 79 7
|
|
||||||
|
|
||||||
SWITCH_VN arg0 [1, 2, 3]
|
|
||||||
|
|
||||||
PUSH var80
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
|
|
||||||
STORE arg183 var225
|
|
||||||
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INC a
|
|
||||||
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
ADD a a a
|
|
||||||
|
|
||||||
SUB arg35 arg165 var74
|
|
||||||
|
|
||||||
MUL 44 35 "foo"
|
|
||||||
|
|
||||||
DIV 263838340369912686645632650718169038811 a a
|
|
||||||
|
|
||||||
MOD var113 arg80 arg207
|
|
||||||
|
|
||||||
POW a a a
|
|
||||||
|
|
||||||
LT a 78 var81
|
|
||||||
|
|
||||||
GT arg19 4729414120208894485838100532547810615352 var175
|
|
||||||
|
|
||||||
EQ 85 a arg164
|
|
||||||
|
|
||||||
ELT a arg226 a
|
|
||||||
|
|
||||||
EGT a 1 var250
|
|
||||||
|
|
||||||
NEQ a a a
|
|
||||||
|
|
||||||
AND var255 0x294a24f6 var189
|
|
||||||
|
|
||||||
OR (| [2,0] | 0 | ( (), (42) ) |) arg168 var107
|
|
||||||
|
|
||||||
NOT arg124 a
|
|
||||||
|
|
||||||
TUPLE var999 5019186157739257888756115213149493826410
|
|
||||||
|
|
||||||
ELEMENT arg148 var25 a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_LOOKUP a a a
|
|
||||||
|
|
||||||
MAP_LOOKUPD var112 arg35 a var112
|
|
||||||
|
|
||||||
MAP_UPDATE false a a a
|
|
||||||
|
|
||||||
MAP_DELETE arg180 a var1
|
|
||||||
|
|
||||||
MAP_MEMBER a { true => 4} 94
|
|
||||||
|
|
||||||
MAP_FROM_LIST () a
|
|
||||||
|
|
||||||
MAP_TO_LIST a { true => 4 }
|
|
||||||
|
|
||||||
MAP_SIZE a { true => 42 }
|
|
||||||
|
|
||||||
NIL arg91
|
|
||||||
|
|
||||||
IS_NIL a var6
|
|
||||||
|
|
||||||
CONS arg185 "foo" a
|
|
||||||
|
|
||||||
HD a var124
|
|
||||||
|
|
||||||
TL arg223 a
|
|
||||||
|
|
||||||
LENGTH var216 a
|
|
||||||
|
|
||||||
APPEND { 203961992615221001243597889146034217896 => 0x1f53a1843} 281217554184165828643225535776787296845 a
|
|
||||||
|
|
||||||
STR_JOIN a a 7144184027126178769820155907121270843348
|
|
||||||
|
|
||||||
INT_TO_STR var238 a
|
|
||||||
|
|
||||||
ADDR_TO_STR a arg216
|
|
||||||
|
|
||||||
STR_REVERSE a @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
|
|
||||||
STR_LENGTH a "foo"
|
|
||||||
|
|
||||||
INT_TO_ADDR arg127 var207
|
|
||||||
|
|
||||||
VARIANT a a 0x1f7b72200 a
|
|
||||||
|
|
||||||
VARIANT_TEST a arg217 a
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a arg103 arg108
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL_N a arg135
|
|
||||||
|
|
||||||
BITS_SET arg150 a { 0x1a715e2a6 => 3}
|
|
||||||
|
|
||||||
BITS_CLEAR arg98 a arg164
|
|
||||||
|
|
||||||
BITS_TEST a a (| [0,0,3] | 2 | (1, "foo", ()) |)
|
|
||||||
|
|
||||||
BITS_SUM a a
|
|
||||||
|
|
||||||
BITS_OR var20 var186 a
|
|
||||||
|
|
||||||
BITS_AND a 4 arg203
|
|
||||||
|
|
||||||
BITS_DIFF var200 arg247 var20
|
|
||||||
|
|
||||||
ADDRESS a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
ORIGIN arg216
|
|
||||||
|
|
||||||
CALLER a
|
|
||||||
|
|
||||||
GASPRICE arg119
|
|
||||||
|
|
||||||
BLOCKHASH a arg110
|
|
||||||
|
|
||||||
CALL_VALUE a
|
|
||||||
|
|
||||||
BENEFICIARY var163
|
|
||||||
|
|
||||||
TIMESTAMP a
|
|
||||||
|
|
||||||
GENERATION 242795038229506961431398379342231049652
|
|
||||||
|
|
||||||
MICROBLOCK arg43
|
|
||||||
|
|
||||||
DIFFICULTY var24
|
|
||||||
|
|
||||||
GASLIMIT arg220
|
|
||||||
|
|
||||||
GAS var35
|
|
||||||
|
|
||||||
LOG0 a
|
|
||||||
|
|
||||||
LOG1 arg86 arg208
|
|
||||||
|
|
||||||
LOG2 a a (| [0,1,3] | 2 | (1, "foo", ()) |)
|
|
||||||
|
|
||||||
LOG3 arg15 arg211 var139 arg44
|
|
||||||
|
|
||||||
LOG4 a a 9 a a
|
|
||||||
|
|
||||||
DEACTIVATE
|
|
||||||
|
|
||||||
SPEND @ak_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv var136
|
|
||||||
|
|
||||||
ORACLE_REGISTER arg29 48 ((| [0,1,3] | 2 | (1, "foo", ()) |)) arg65 { <> => false} <>
|
|
||||||
|
|
||||||
ORACLE_QUERY
|
|
||||||
|
|
||||||
ORACLE_RESPOND
|
|
||||||
|
|
||||||
ORACLE_EXTEND
|
|
||||||
|
|
||||||
ORACLE_GET_ANSWER
|
|
||||||
|
|
||||||
ORACLE_GET_QUESTION
|
|
||||||
|
|
||||||
ORACLE_QUERY_FEE
|
|
||||||
|
|
||||||
AENS_RESOLVE
|
|
||||||
|
|
||||||
AENS_PRECLAIM
|
|
||||||
|
|
||||||
AENS_CLAIM
|
|
||||||
|
|
||||||
AENS_UPDATE
|
|
||||||
|
|
||||||
AENS_TRANSFER
|
|
||||||
|
|
||||||
AENS_REVOKE
|
|
||||||
|
|
||||||
ECVERIFY
|
|
||||||
|
|
||||||
SHA3 a
|
|
||||||
|
|
||||||
SHA256 a
|
|
||||||
|
|
||||||
BLAKE2B a
|
|
||||||
|
|
||||||
ABORT a
|
|
||||||
|
|
||||||
EXIT var120
|
|
||||||
|
|
||||||
NOP
|
|
||||||
|
|
||||||
RETURNR ()
|
|
||||||
|
|
||||||
BALANCE_OTHER a arg0
|
|
||||||
|
|
||||||
SETELEMENT a 2 (1, "two", 3) 2
|
|
||||||
|
|
||||||
AUTH_TX_HASH
|
|
||||||
|
|
||||||
CONTRACT_TO_ADDRESS @ct_nv5B93FPzRHrGNmMdTDfGdd5xGZvep3MVSpJqzcQmMp59bBCv
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
AND a true true
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
APPEND a [1] [2]
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
BALANCE a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
BITS_ALL a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
BITS_ALL_N a 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
BITS_ALLA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
BITS_AND a <101010> <010101>
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
BITS_CLEAR a <101010> 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
BITS_DIFF a <101010> <010101>
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
BITS_NONE a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
BITS_NONEA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
BITS_OR a <101010> <010101>
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
BITS_SET a <101010> 2
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
BITS_SUM a <101010>
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
BITS_TEST a <101010> 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
BLAKE2B a "This is a string"
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
BLOCKHASH var3 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
CALLER var3
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
CONS a 42 []
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
DEC a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
DECA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
DIV a 1 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
DUP 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
DUPA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
EGT a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
ELEMENT a 0 (42)
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
ELT a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
;; CONTRACT empty
|
|
||||||
|
|
||||||
FUNCTION run () : integer
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
EQ a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
GASPRICE var3
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
GT a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
HD a [42]
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
INC a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
INCA
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
INT_TO_ADDR a 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
INT_TO_STR a 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
IS_NIL a []
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
LENGTH a [42]
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
LT a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
MAP_DELETE a { 42 => true } 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
MAP_EMPTY a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
MAP_FROM_LIST a [ ( 42, true) ]
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
MAP_LOOKUP a { 42 => true } 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
MAP_LOOKUPD a { 42 => true } 41 false
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
MAP_MEMBER a { 42 => true } 42
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
MAP_UPDATE a { 42 => true } 42 false
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
;; CONTRACT meta
|
||||||
|
|
||||||
|
FUNCTION meta() : boolean
|
||||||
|
CREATE @cb_+PJGA6A4Fz4T2LHV5knITCldR3rqO7HrXO2zhOAR9JWNbhf8Q8C4xbhx/gx8JckANwAXfQBVACAAAP4vhlvZADcABwECgv5E1kQfADcBBzcACwAWMBReAHMAFjBvJFMAFjBvggOoFAAUABQSggABAz/+tIwWhAA3AAdTAAD+1jB5kAQ3AAcLAAD+6MRetgA3AQc3ABoGggABAz+4TS8GEQx8JclFY2FsbGVyX2lzX2NyZWF0b3IRL4Zb2Q1nZXQRRNZEHxFpbml0EbSMFoQdYmFsYW5jZRHWMHmQFXZhbHVlEejEXrYNc2V0gi8AhTQuMy4wAUqQ8s4= a 2137
|
||||||
|
|
||||||
|
CLONE a arg0 2137 false
|
||||||
|
CLONE_G a arg0 2137 10000 false
|
||||||
|
|
||||||
|
BYTECODE_HASH a a
|
||||||
|
BYTECODE_HASH a a
|
||||||
|
EQ a a a
|
||||||
|
RETURNR a
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
MOD a 1 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
MUL a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -4,8 +4,8 @@ FUNCTION preclaim(address, {bytes, 32}) : {tuple, []}
|
|||||||
AENS_PRECLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1
|
AENS_PRECLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1
|
||||||
RETURNR {}
|
RETURNR {}
|
||||||
|
|
||||||
FUNCTION claim(address, string, integer) : {tuple, []}
|
FUNCTION claim(address, string, integer, integer) : {tuple, []}
|
||||||
AENS_CLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1 arg2
|
AENS_CLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1 arg2 arg3
|
||||||
RETURNR {}
|
RETURNR {}
|
||||||
|
|
||||||
FUNCTION transfer(address, address, {bytes, 32}) : {tuple, []}
|
FUNCTION transfer(address, address, {bytes, 32}) : {tuple, []}
|
||||||
@@ -19,5 +19,3 @@ FUNCTION revoke(address, {bytes, 32}) : {tuple, []}
|
|||||||
FUNCTION resolve(string, string) : {variant, [{tuple, []}, {tuple, [address]}]}
|
FUNCTION resolve(string, string) : {variant, [{tuple, []}, {tuple, [address]}]}
|
||||||
AENS_RESOLVE a arg0 arg1 'address
|
AENS_RESOLVE a arg0 arg1 'address
|
||||||
RETURN
|
RETURN
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
NEQ a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
NIL a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
NOT a true
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
OR a true true
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
ORIGIN var3
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
POP a
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
POW a 1 1
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
PUSH 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
SETELEMENT a 0 (42) 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
SHA256 a "This is a string"
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
STORE var3 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
STR_JOIN a "hello " "world!"
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
STR_REVERSE a "abba"
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; CONTRACT empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
SUB a 0 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -28,15 +28,11 @@ FUNCTION tailcall(integer) -> integer
|
|||||||
INCA
|
INCA
|
||||||
CALL_T "inc"
|
CALL_T "inc"
|
||||||
|
|
||||||
FUNCTION remote_call(integer) : integer
|
;; FUNCTION remote_call(integer) : integer
|
||||||
PUSH arg0
|
;; PUSH arg0
|
||||||
CALL_R remote.add_five 0
|
;; CALL_R remote.add_five {tuple, [integer]} integer 0 ;; typereps don't parse
|
||||||
INCA
|
;; INCA
|
||||||
RETURN
|
;; RETURN
|
||||||
|
|
||||||
FUNCTION remote_tailcall(integer) : integer
|
|
||||||
PUSH arg0
|
|
||||||
CALL_TR remote add_five 0
|
|
||||||
|
|
||||||
;; Test the code from the shell
|
;; Test the code from the shell
|
||||||
;; _build/default/rel/aessembler/bin/aessembler console
|
;; _build/default/rel/aessembler/bin/aessembler console
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
TL a [42]
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH 0
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
TUPLE a 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
;; Contract empty_loop
|
|
||||||
|
|
||||||
FUNCTION run (integer) : integer
|
|
||||||
STORE var0 arg0
|
|
||||||
PUSH (0)
|
|
||||||
JUMP 1
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
VARIANT_ELEMENT a (| [1] | 0 | (42) |) 0
|
|
||||||
|
|
||||||
DEC var0
|
|
||||||
GT var1 var0 0
|
|
||||||
JUMPIF var1 1
|
|
||||||
|
|
||||||
RETURNR 0
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user