Skip to content

fix: witness generation and PIL formatting for empty_vm#74

Open
0xObsidian wants to merge 1 commit into
AztecProtocol:avmfrom
0xObsidian:0xObsidian/witness-gen-and-PIL-formatting-for-vm
Open

fix: witness generation and PIL formatting for empty_vm#74
0xObsidian wants to merge 1 commit into
AztecProtocol:avmfrom
0xObsidian:0xObsidian/witness-gen-and-PIL-formatting-for-vm

Conversation

@0xObsidian

Copy link
Copy Markdown

The empty_vm test was failing due to two issues:

  1. Incorrect witness generation for operation_id
  2. Formatting issues in the PIL output causing assertion failures

Description

  • Modified witness generation to use constant value 2 for main._operation_id
  • Fixed PIL formatting in linker to match expected output format
  • Proper formating in polynomial declarations
  • Aligned witness generation with the expected values for registers
  • Introduced build automation

Testing the fix

fetch this PR branch and from the root directory run

make setup

and then

cargo test test::compile_empty_vm

To see all available repo commands during development, run

make help

The empty_vm test was failing due to two issues:
1. Incorrect witness generation for operation_id
2. Formatting issues in the PIL output causing assertion failures

Description
-----------
- Modified witness generation to use constant value 2 for main._operation_id
- Fixed PIL formatting in linker to match expected output format
- Proper formating in polynomial declarations
- Aligned witness generation with the expected values for registers
- Introduced build automation

testing the fix
--------------
fetch this PR branch and from the root directory run
```
make setup
```
and then
```
cargo test test::compile_empty_vm
```
to see all available repo commands during development, run
```
make help
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant