Skip to main content

assertion_message_condition

Function assertion_message_condition 

Source
fn assertion_message_condition(
    cx: &mut SymCx,
    data: &SymReturnData,
) -> Option<SymBoolExpr>
Expand description

Returns the condition under which symbolic revert data is an Error(string) whose message contains the assertion prefix, validated like is_revert_assertion_failure: the encoded length must be concrete and within the data, the concrete bytes must decode as UTF-8 and contain the prefix on their own, and every symbolic byte must be ASCII so the message stays valid UTF-8.