Skip to content

Conversation

@greenhat
Copy link
Contributor

@greenhat greenhat commented Jul 5, 2024

This PR is stacked on the #237 and should be merged after it

Close #234
Close #230

This PR fixes the following errors:

  • assert in intrinsics::mem::replace_element,
  • storing not in the word address in intrinsics::mem::store_felt_unchecked,
  • loading from not from a pointer, but a value(partial) in intrinsics::mem::load_sw causing "out of bounds memory access".

Adds proptest for mem::intrinsics::store_sw/load_sw.

@greenhat greenhat changed the title [9/x] Test for mem::intrinsics::store_sw, fix assert in get_inputs test (clk=451) [9/x] Test for mem::intrinsics::store_sw/load_sw, fix assert in get_inputs test (clk=451) Jul 8, 2024
@greenhat greenhat force-pushed the greenhat/i230-get-inputs-clk451-assert branch from bad9227 to 357916d Compare July 8, 2024 08:52
@greenhat greenhat force-pushed the greenhat/i230-get-inputs-clk451-assert branch from 357916d to a9c5689 Compare July 9, 2024 14:42
@greenhat greenhat force-pushed the greenhat/emu-print-stack-option branch from 1ce9065 to 79d1c24 Compare July 9, 2024 15:00
@greenhat greenhat force-pushed the greenhat/i230-get-inputs-clk451-assert branch from a9c5689 to b0edae2 Compare July 9, 2024 15:03
@greenhat greenhat marked this pull request as ready for review July 9, 2024 15:06
@greenhat greenhat requested a review from bitwalker July 9, 2024 15:14
@greenhat greenhat changed the title [9/x] Test for mem::intrinsics::store_sw/load_sw, fix assert in get_inputs test (clk=451) [9/x] Test for mem::intrinsics::store_sw/load_sw, fix assert in get_inputs test (clk=451) and other errors Jul 9, 2024
Copy link
Collaborator

@bitwalker bitwalker left a comment

Choose a reason for hiding this comment

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

Nice work!

@greenhat greenhat force-pushed the greenhat/emu-print-stack-option branch from 79d1c24 to fb59577 Compare July 17, 2024 12:42
`intrinsics::mem::store_felt_unchecked`,
`intrinsics::mem::load_sw` #230

- assert in `intrinsics::mem::replace_element`,
- storing not in the word address in `intrinsics::mem::store_felt_unchecked`,
-loading from not from a pointer, but a value(partial) in
`intrinsics::mem::load_sw` causing "out of bounds memory access".
Add test for `mem::intrinsics::store_sw/load_sw`
@greenhat greenhat force-pushed the greenhat/i230-get-inputs-clk451-assert branch from b0edae2 to 41491cb Compare July 17, 2024 13:13
Base automatically changed from greenhat/emu-print-stack-option to main July 18, 2024 03:21
@bitwalker bitwalker merged commit 4f35fd6 into main Jul 18, 2024
@bitwalker bitwalker deleted the greenhat/i230-get-inputs-clk451-assert branch July 18, 2024 03:22
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.

Tests for intrinsics::mem::store_sw/load_sw Failing assert in intrinsics::mem::replace_element in executing get_inputs test (clk=451) in VM

3 participants