Skip to content

Commit

Permalink
adpating to the new proofman
Browse files Browse the repository at this point in the history
  • Loading branch information
hecmas committed Dec 17, 2024
1 parent 6319349 commit b5c0466
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion state-machines/binary/src/binary_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<F: PrimeField> BinaryExtensionSM<F> {

self.binary_extension_table_sm.unregister_predecessor();

self.std.unregister_predecessor(self.wcm.get_pctx(), None);
self.std.unregister_predecessor();

Check failure on line 103 in state-machines/binary/src/binary_extension.rs

View workflow job for this annotation

GitHub Actions / Test on x86_64

this method takes 2 arguments but 0 arguments were supplied

Check failure on line 103 in state-machines/binary/src/binary_extension.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

this method takes 2 arguments but 0 arguments were supplied
}
}

Expand Down
2 changes: 1 addition & 1 deletion state-machines/mem/pil/mem_align.pil
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ airtemplate MemAlign(const int N = 2**10, const int RC = 2, const int CHUNK_NUM
for (int i = 0; i < RC; i++) {
value[i] === sel_prove * prove_val[i] + sel_assume * assume_val[i];
}
permutation(MEMORY_ID, expressions: [wr * (MEMORY_STORE_OP - MEMORY_LOAD_OP) + MEMORY_LOAD_OP, addr * CHUNK_NUM + offset, step, width, ...value], sel: sel_prove - sel_assume, bus_type: PIOP_BUS_PROD);
permutation(MEMORY_ID, expressions: [wr * (MEMORY_STORE_OP - MEMORY_LOAD_OP) + MEMORY_LOAD_OP, addr * CHUNK_NUM + offset, step, width, ...value], sel: sel_prove - sel_assume);
}
3 changes: 1 addition & 2 deletions state-machines/mem/src/input_data_sm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ impl<F: PrimeField> InputDataSM<F> {

pub fn unregister_predecessor(&self) {
if self.registered_predecessors.fetch_sub(1, Ordering::SeqCst) == 1 {
let pctx = self.wcm.get_pctx();
self.std.unregister_predecessor(pctx, None);
self.std.unregister_predecessor();

Check failure on line 73 in state-machines/mem/src/input_data_sm.rs

View workflow job for this annotation

GitHub Actions / Test on x86_64

this method takes 2 arguments but 0 arguments were supplied

Check failure on line 73 in state-machines/mem/src/input_data_sm.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

this method takes 2 arguments but 0 arguments were supplied
}
}
pub fn prove(&self, inputs: &[MemInput]) {
Expand Down
2 changes: 1 addition & 1 deletion state-machines/mem/src/mem_align_sm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<F: PrimeField> MemAlignSM<F> {
}

self.mem_align_rom_sm.unregister_predecessor();
self.std.unregister_predecessor(pctx, None);
self.std.unregister_predecessor();

Check failure on line 131 in state-machines/mem/src/mem_align_sm.rs

View workflow job for this annotation

GitHub Actions / Test on x86_64

this method takes 2 arguments but 0 arguments were supplied

Check failure on line 131 in state-machines/mem/src/mem_align_sm.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

this method takes 2 arguments but 0 arguments were supplied
}
}

Expand Down
3 changes: 1 addition & 2 deletions state-machines/mem/src/mem_sm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ impl<F: PrimeField> MemSM<F> {

pub fn unregister_predecessor(&self) {
if self.registered_predecessors.fetch_sub(1, Ordering::SeqCst) == 1 {
let pctx = self.wcm.get_pctx();
self.std.unregister_predecessor(pctx, None);
self.std.unregister_predecessor();

Check failure on line 78 in state-machines/mem/src/mem_sm.rs

View workflow job for this annotation

GitHub Actions / Test on x86_64

this method takes 2 arguments but 0 arguments were supplied

Check failure on line 78 in state-machines/mem/src/mem_sm.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

this method takes 2 arguments but 0 arguments were supplied
}
}

Expand Down
3 changes: 1 addition & 2 deletions state-machines/mem/src/rom_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ impl<F: PrimeField> RomDataSM<F> {

pub fn unregister_predecessor(&self) {
if self.registered_predecessors.fetch_sub(1, Ordering::SeqCst) == 1 {
let pctx = self.wcm.get_pctx();
self.std.unregister_predecessor(pctx, None);
self.std.unregister_predecessor();

Check failure on line 65 in state-machines/mem/src/rom_data.rs

View workflow job for this annotation

GitHub Actions / Test on x86_64

this method takes 2 arguments but 0 arguments were supplied

Check failure on line 65 in state-machines/mem/src/rom_data.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

this method takes 2 arguments but 0 arguments were supplied
}
}

Expand Down

0 comments on commit b5c0466

Please sign in to comment.