-
Notifications
You must be signed in to change notification settings - Fork 29
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
sum from mapping of structs? #144
Comments
Are you using Scribble for any smart contracts going into production, Miguel? I'd love to talk about it and maybe extend an offer for some free fuzzing campaigns with https://fuzzing.diligence.tools I can also swing by Subvisual's office when I'm back in Portugal so we can discuss Scribble/Fuzzing usage in greater detail! 😊 |
@naps62 unfortunately that can't be expressed with scribble at the moment. To say that, you need a map function, that maps each struct Account in the |
@cd1m0 thanks. I'd appreciate it yes I'm sure there are several ways to achieve this. The idea of ghost state sounds very interesting for many other reasons as well, but it also feels like out of scope for scribble. |
Similar question I had when playing with the tool is whether it is possible to compute a sum by combining let and forall and then specifing an invariant on top of that (e.g., if_succeeds, sum over forall <= some value. My understanding is that this is not doable as of today unless we break down the function into smaller functions and apply separate statements there? |
@nettrino you're correct - it is not currently possible. However could you post a sample of what you would like supported? If there is enough interest in this feature, and if we can figure out a way to implement it thats friendly to underlying tools (fuzzers/sym. exec engines/verifiers for example) then we can consider it. |
Is it possible to achieve something like this?
The text was updated successfully, but these errors were encountered: