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
{{ message }}
Repository navigation
Investigate whether we can use interpreted values rather than byte array values for playback #1527
let det_vals:Vec<Vec<u8>> = vec![// 0ul <- interpreted value
vec![0,0,0,0,0,0,0,0],// <- byte array value// 8192ul
vec![0,32,0,0,0,0,0,0],// 0
vec![0],];
We might be able to initialize directly with the interpreted value, at least for some primitive types. However, we should see whether this is really possible for all primitive types. The types / UX might get messy if we start to mix using interpreted values versus using byte array values.
We could use something like a Vec<&dyn Any> instead. When reading the value, we can compare the TypeId of each and even provide a nice error if they don't match.
I tried this out, but I bump into a problem where u64 (on 64 bit machines) and usize both translate to __CPROVER_size_t type and isize and i64 will both translate to long int. We need to investigate further if it's possible to differentiate between them.
So to do this we would probably need to get the type from the instance we are parsing. I.e., we would need to have a map from mangled name to the type.
Activity
celinval commentedon Jan 26, 2023
We could use something like a
Vec<&dyn Any>instead. When reading the value, we can compare the TypeId of each and even provide a nice error if they don't match.celinval commentedon Jun 23, 2023
I tried this out, but I bump into a problem where
u64(on 64 bit machines) andusizeboth translate to__CPROVER_size_ttype andisizeandi64will both translate tolong int. We need to investigate further if it's possible to differentiate between them.celinval commentedon Jun 26, 2023
Or maybe just translate
usize/isizetou{width}/i{width}celinval commentedon Jul 17, 2024
Another problem I faced was with
char.So to do this we would probably need to get the type from the instance we are parsing. I.e., we would need to have a map from mangled name to the type.