Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to explicitly specify possible values for data #15

Closed
dgpv opened this issue Oct 14, 2023 · 2 comments
Closed

Add ability to explicitly specify possible values for data #15

dgpv opened this issue Oct 14, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@dgpv
Copy link
Owner

dgpv commented Oct 14, 2023

Like:

  • "placeholder $a will not be above 453453"
  • "value on the stack here must only be one of 4,6,12,x('4834')"
  • "reference &r data length should not exceed 32"
  • etc.

and use this to assist the analysis - it can reduce the solving times, and limit the scope of the analysis, if, for example, we specify possible values for dynamic stack index for PICK

While in case of placeholders, this would work as an explicit constraints ("will not be above ..."), in case of values on the stack and references it will be different

For values on the stack and references, we actually want to check if the "restriction" condition is true, and add a warning if it is not.

For dynamic indexes on the stack, such warning should be prominent, and tell that the analysis is incomplete. This is because for dynamic arguments, we will need to create a separate execution path for each possible value of dynamic stack index. If we use this "restriction" to limit the number of created/analyzed execution paths, and we know that the the condition can be false, we know that our analysis will be incomplete.

@dgpv
Copy link
Owner Author

dgpv commented Nov 14, 2023

#18 fixes this

@dgpv dgpv added this to the version 0.1.2 milestone Nov 14, 2023
@dgpv dgpv added fixed and removed fixed labels Nov 14, 2023
@dgpv
Copy link
Owner Author

dgpv commented Nov 15, 2023

#18 was merged, closing

@dgpv dgpv closed this as completed Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant