Comments (4)
Hi @mFragaBA, thank you for the bug report!
As far as I can say this error occurs because procedures encrypt_shuffle
and remask_shuffle
in the player.masm
don't specify the number of locals, both of them should have at least 2
. Without it program tries to calculate the indexes for the local values, which causes the subtraction with underflow. We should add a proper check in this place to print the real error message.
Although it is still unclear why the —release
version works fine, probably it is connected with some optimizations of the compiler and assembler. Are you sure that you use encrypt_shuffle
and remask_shuffle
procedures during the test?
from miden-vm.
Are you sure that you use
encrypt_shuffle
andremask_shuffle
procedures during the test?
Yeap! Notes shuffle.masm
and remask.mask
(they call encrypt_shuffle
and remask_shuffle
) get consumed during the test.
BTW, thanks for debugging the issue! I tried for a bit but I'm not too familiar with the compiler internals yet
from miden-vm.
Although it is still unclear why the
—release
version works fine,
In release
mode, the compiler don't emit overflow/underflow checks as far as I now.
We should add a proper check in this place to print the real error message.
Yes - let's do that.
from miden-vm.
Closed by #1372.
from miden-vm.
Related Issues (20)
- Detect invalid stack access by child procedure HOT 3
- `MastForest` and `MastNodeId`: add `Tag` generic parameter HOT 3
- Return proper error message from the `mem_ops` in case of underflow HOT 1
- Rework field and u32 comparison instructions HOT 1
- Add tracing support to the VM HOT 1
- Stable procedure order when compiling with Assembler::compile_module
- Allow procedures with the same name to differ on the number of locals HOT 1
- Allow user to define error codes
- Change `u32assert2` error code type to `u32` HOT 1
- VM should ensure that the last operation is a `HALT` HOT 1
- Remove unused `Hasher` aux column HOT 1
- Meta data useful for LogUp-GKR HOT 4
- Proposition to refactor the multiset checks across the codebase HOT 3
- Fix `ChipletsVTableColBuilder`
- MAST deserialization: don't recompute all node hashes HOT 1
- `MastForest`: Ensure that the number of nodes is less than 2^30 HOT 2
- Rename `internals` feature to `testing` HOT 1
- Add tests on `Windows` in CI
- Using the univariate sum-check IOP from Aurora to implement final evaluation claim
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miden-vm.