Skip to content

Commit

Permalink
Remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Jul 16, 2024
1 parent b992e9e commit d9840d4
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 32 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ global insert_accessed_storage_keys:
%jump_neq_const(@U256_MAX, storage_key_found)
// The storage key is not in the list.
PANIC

storage_key_found:
// The address was already in the list
// stack: pred_ptr, addr, key, retdest
Expand Down
3 changes: 1 addition & 2 deletions evm_arithmetization/src/cpu/kernel/asm/core/nonce.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ global increment_nonce:
// stack: account_ptr, address, retdest
DUP1 ISZERO %jumpi(increment_nonce_no_such_account)
// stack: nonce_ptr, address, retdest
DUP1
%mload_trie_data
DUP1 %mload_trie_data
// stack: nonce, nonce_ptr, address, retdest
DUP1 DUP4 %journal_add_nonce_change
// stack: nonce, nonce_ptr, address, retdest
Expand Down
3 changes: 1 addition & 2 deletions evm_arithmetization/src/cpu/kernel/asm/core/process_txn.asm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ global process_normalized_txn:
// stack: sender, retdest

// Assert sender has no code.
DUP1 %ext_code_empty
%assert_nonzero(invalid_txn_1)
DUP1 %ext_code_empty %assert_nonzero(invalid_txn_1)
// stack: sender, retdest

// Assert sender balance >= gas_limit * gas_price + value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ revert_account_destroyed_contd:
%assert_nonzero
%add_const(1)
// stack: target_balance_ptr, address, prev_balance, retdest
DUP3 DUP2 %mload_trie_data
DUP3
DUP2 %mload_trie_data
// stack: target_balance, prev_balance, target_balance_ptr, address, prev_balance, retdest
SUB SWAP1 %mstore_trie_data
// stack: address, prev_balance, retdest
Expand All @@ -33,4 +34,4 @@ revert_account_destroyed_contd:
// stack: account_balance_payload_ptr, prev_balance, retdest
%mstore_trie_data
JUMP

12 changes: 4 additions & 8 deletions evm_arithmetization/src/cpu/kernel/asm/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,9 @@ global execute_withdrawals:
global perform_final_checks:
// stack: cum_gas, txn_counter, num_nibbles, txn_nb
// Check that we end up with the correct `cum_gas`, `txn_nb` and bloom filter.
%mload_global_metadata(@GLOBAL_METADATA_BLOCK_GAS_USED_AFTER)
%assert_eq

DUP3 %mload_global_metadata(@GLOBAL_METADATA_TXN_NUMBER_AFTER)
%assert_eq
%mload_global_metadata(@GLOBAL_METADATA_BLOCK_GAS_USED_AFTER) %assert_eq
DUP3
%mload_global_metadata(@GLOBAL_METADATA_TXN_NUMBER_AFTER) %assert_eq
%pop3

PROVER_INPUT(trie_ptr::state)
Expand All @@ -180,8 +177,7 @@ global perform_final_checks:
global check_state_trie:
%set_final_tries
%mpt_hash_state_trie %mload_global_metadata(@GLOBAL_METADATA_STATE_TRIE_DIGEST_AFTER)
%assert_eq
%mpt_hash_state_trie %mload_global_metadata(@GLOBAL_METADATA_STATE_TRIE_DIGEST_AFTER) %assert_eq
global check_txn_trie:
%mpt_hash_txn_trie %mload_global_metadata(@GLOBAL_METADATA_TXN_TRIE_DIGEST_AFTER) %assert_eq
global check_receipt_trie:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ global mpt_delete:
DUP1 %eq_const(@MPT_NODE_EXTENSION) %jumpi(mpt_delete_extension)
DUP1 %eq_const(@MPT_NODE_LEAF) %jumpi(mpt_delete_leaf)
%eq_const(@MPT_NODE_EMPTY) %jumpi(panic) // This should never happen.
PANIC

mpt_delete_leaf:
Expand Down
1 change: 0 additions & 1 deletion evm_arithmetization/src/cpu/kernel/asm/mpt/hash/hash.asm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ global encode_or_hash_node:
SWAP2 %add_const(2)
%stack (cur_len, encode_value, hash, retdest) -> (retdest, hash, 32, cur_len)
JUMP

encode_or_hash_concrete_node:
%stack (node_type, node_ptr, encode_value, cur_len) -> (node_type, node_ptr, encode_value, cur_len, maybe_hash_node)
%jump(encode_node)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ global sload_current:
// Storage key not found. Return default value_ptr = 0,
// which derefs to 0 since @SEGMENT_TRIE_DATA[0] = 0.
%stack (value_ptr, retdest) -> (retdest, 0)
JUMP

storage_key_exists:
// stack: value_ptr, retdest
%mload_trie_data
// stack: value, retdest
SWAP1
JUMP

// Read a word from the current account's storage trie.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,9 @@ sload_with_addr:
// Storage key not found. Return default value_ptr = 0,
// which derefs to 0 since @SEGMENT_TRIE_DATA[0] = 0.
%stack (value_ptr, retdest) -> (retdest, 0)
JUMP

storage_key_exists:
global storage_key_exists:
// stack: value_ptr, retdest
%mload_trie_data
// stack: value, retdest
Expand Down
1 change: 0 additions & 1 deletion evm_arithmetization/tests/erc721.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ fn test_erc721() -> anyhow::Result<()> {
};

let max_cpu_len_log = 20;

let mut timing = TimingTree::new("prove", log::Level::Debug);

let proofs = prove_all_segments::<F, C, D>(
Expand Down
3 changes: 0 additions & 3 deletions trace_decoder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ rlp = { workspace = true }
serde = { workspace = true }
serde_with = { workspace = true }
thiserror = { workspace = true }
serde_json = { workspace = true }
plonky2 = { workspace = true }


# Local dependencies
mpt_trie = { workspace = true }
Expand Down

0 comments on commit d9840d4

Please sign in to comment.