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
Pre- and post-order byte operator lowering behave differently #4380
lower_byte_operators (in expr_lowering.h) uses a pre-order visit strategy -- that is, remove byte ops from child expressions before removing this byte operator. By contrast the SMT2 backend (prior to #4379) used a post-order strategy: it called lower_byte_extract or lower_byte_update on each expression as it was found and then recursed over the result, lowering the parent operation before the child.
While these might have different results for various reasons, their meaning should be the same. However test cbmc/Pointer_byte_extract5 varies, failing more assertions (spuriously) when a preorder strategy is used.
It seems all our fixes to byte-operator lowering have since resolved the problem - even forward-porting the changes from the branch no longer reproduces the issue. Closing.
Activity
tautschnig commentedon Mar 30, 2026
It seems all our fixes to byte-operator lowering have since resolved the problem - even forward-porting the changes from the branch no longer reproduces the issue. Closing.