You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dummy example where users may want to use shadow memory to track how this code is being used. E.g.: Shadow memory could be used to track if the union has been initialized and which type has been used.
The text was updated successfully, but these errors were encountered:
Introduces a data structure, `ShadowMem<T>`, with two methods:
```rust
pub fn set<U>(&mut self, ptr: *const U, val: T)
pub fn get<U>(&self, ptr: *const U) -> T
```
for setting and getting values of type `T` associated with the memory location that `ptr` points to.
Towards #3184
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
Requested feature: Add support to shadow memory
Use case: Allow users to extend their code for verification without impacting runtime
Test case:
Dummy example where users may want to use shadow memory to track how this code is being used. E.g.: Shadow memory could be used to track if the union has been initialized and which type has been used.
The text was updated successfully, but these errors were encountered: