@@ -1734,7 +1734,6 @@ impl CopyTable {
1734
1734
Self {
1735
1735
q_enable,
1736
1736
is_first : meta. advice_column ( ) ,
1737
- // id: meta.advice_column_in(SecondPhase),
1738
1737
id : word:: Word :: new ( [ meta. advice_column ( ) , meta. advice_column ( ) ] ) ,
1739
1738
tag : BinaryNumberChip :: configure ( meta, q_enable, None ) ,
1740
1739
addr : meta. advice_column ( ) ,
@@ -1800,7 +1799,6 @@ impl CopyTable {
1800
1799
let mut reader = CopyThread {
1801
1800
tag : copy_event. src_type ,
1802
1801
is_rw : copy_event. is_source_rw ( ) ,
1803
- //id: number_or_hash_to_field(©_event.src_id, challenges.evm_word()),
1804
1802
id : number_or_hash_to_word ( & copy_event. src_id ) ,
1805
1803
front_mask : true ,
1806
1804
addr : copy_event. src_addr ,
@@ -1814,7 +1812,6 @@ impl CopyTable {
1814
1812
let mut writer = CopyThread {
1815
1813
tag : copy_event. dst_type ,
1816
1814
is_rw : copy_event. is_destination_rw ( ) ,
1817
- //id: number_or_hash_to_field(©_event.dst_id, challenges.evm_word()),
1818
1815
id : number_or_hash_to_word ( & copy_event. dst_id ) ,
1819
1816
front_mask : true ,
1820
1817
addr : copy_event. dst_addr ,
@@ -1902,15 +1899,9 @@ impl CopyTable {
1902
1899
* value_word_bytes = [ 0 ; 32 ] ;
1903
1900
* value_word_prev_bytes = [ 0 ; 32 ] ;
1904
1901
}
1905
- // thread.word_rlc = thread.word_rlc * challenges.evm_word() + value;
1906
- // thread.word_rlc_prev = if is_read_step {
1907
- // thread.word_rlc // Reader does not change the word.
1908
- // } else {
1909
- // thread.word_word_prev * challenges.evm_word() + value_prev
1910
- // };
1902
+
1911
1903
let word_index = ( step_idx as u64 / 2 ) % 32 ;
1912
1904
value_word_bytes[ word_index as usize ] = copy_step. value ;
1913
- //println!("word_index {}, value_word_bytes {:?}", word_index, value_word_bytes);
1914
1905
1915
1906
let u256_word = U256 :: from_big_endian ( value_word_bytes) ;
1916
1907
thread. value_word = word:: Word :: from ( u256_word) . into_value ( ) ;
@@ -2079,19 +2070,17 @@ impl<F: Field> LookupTable<F> for CopyTable {
2079
2070
vec ! [
2080
2071
meta. query_fixed( self . q_enable, Rotation :: cur( ) ) ,
2081
2072
meta. query_advice( self . is_first, Rotation :: cur( ) ) ,
2082
- //meta.query_advice(self.id, Rotation::cur()), // src_id
2083
2073
meta. query_advice( self . id. lo( ) , Rotation :: cur( ) ) , // src_id
2084
2074
meta. query_advice( self . id. hi( ) , Rotation :: cur( ) ) , // src_id
2085
2075
self . tag. value( Rotation :: cur( ) ) ( meta) , // src_tag
2086
- //meta.query_advice(self.id, Rotation::next()), // dst_id
2087
2076
meta. query_advice( self . id. lo( ) , Rotation :: next( ) ) , // dst_id
2088
2077
meta. query_advice( self . id. hi( ) , Rotation :: next( ) ) , // dst_id
2089
- self . tag. value( Rotation :: next( ) ) ( meta) , // dst_tag
2090
- meta. query_advice( self . addr, Rotation :: cur( ) ) , // src_addr
2078
+ self . tag. value( Rotation :: next( ) ) ( meta) , // dst_tag
2079
+ meta. query_advice( self . addr, Rotation :: cur( ) ) , // src_addr
2091
2080
meta. query_advice( self . src_addr_end, Rotation :: cur( ) ) , // src_addr_end
2092
- meta. query_advice( self . addr, Rotation :: next( ) ) , // dst_addr
2081
+ meta. query_advice( self . addr, Rotation :: next( ) ) , // dst_addr
2093
2082
meta. query_advice( self . real_bytes_left, Rotation :: cur( ) ) , // real_length
2094
- meta. query_advice( self . rlc_acc, Rotation :: cur( ) ) , // rlc_acc
2083
+ meta. query_advice( self . rlc_acc, Rotation :: cur( ) ) , // rlc_acc
2095
2084
meta. query_advice( self . rw_counter, Rotation :: cur( ) ) , // rw_counter
2096
2085
meta. query_advice( self . rwc_inc_left, Rotation :: cur( ) ) , // rwc_inc_left
2097
2086
]
0 commit comments