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
Constant subslice is modelled as the whole allocation #4971
The assertions that hold when the program runs (S.len() == 3, T.len() == 2, S[0] == 2) fail. Constants built with split_first or a slice pattern ([_, rest @ ..]) behave the same way. Slicing A at run time (&A[1..]) is correct.
The Slice arm of codegen_const_ptr (kani-compiler/src/codegen_cprover_gotoc/codegen/operand.rs) takes the length from the whole pointee allocation (data.bytes.len() divided by the element size) and points the data at the start of that allocation, so the pointer's offset into it and the slice's own length are not used. The str arm does the same with raw_bytes(). #3021 is an assertion failure in the same arm.
Activity
Read constant pointer offsets and slice lengths from the pointer
Read constant pointer offsets and slice lengths from the pointer
Read constant pointer offsets and slice lengths from the pointer (mod…