Coder Social home page Coder Social logo

Comments (4)

Fumuran avatar Fumuran commented on August 16, 2024 1

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.

mFragaBA avatar mFragaBA commented on August 16, 2024 1

Are you sure that you use encrypt_shuffle and remask_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.

bobbinth avatar bobbinth commented on August 16, 2024

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.

bobbinth avatar bobbinth commented on August 16, 2024

Closed by #1372.

from miden-vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.