Skip to content

Add missed constraints for reduced value,ins/ext instructions,and initial next pc#198

Merged
eigmax merged 7 commits intoProjectZKM:mainfrom
weilzkm:fix-audit
May 29, 2025
Merged

Add missed constraints for reduced value,ins/ext instructions,and initial next pc#198
eigmax merged 7 commits intoProjectZKM:mainfrom
weilzkm:fix-audit

Conversation

@weilzkm
Copy link
Copy Markdown
Contributor

@weilzkm weilzkm commented May 28, 2025

No description provided.

cols.next_next_pc = Word::from(event.next_next_pc);
cols.next_pc_range_checker.populate(event.next_pc);
cols.target_pc_range_checker.populate(target_pc);
cols.next_next_pc_range_checker.populate(event.next_next_pc);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to range check the target_pc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next_next_pc will be target pc when branching. target pc will be unused when not branching. So I think check on next_next_pc can replace check on target pc.

@eigmax eigmax merged commit 513cf78 into ProjectZKM:main May 29, 2025
3 checks passed
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.

2 participants