Closed
Description
CBMC can't currently handle correctly conditional statements without the 2nd operand, e.g., C = A?: B
, equivalent to C = A ? A : B
The following example causes CBMC to return the error
file conditional.c line 6 function main: symex_assign: unexpected side effect: gcc_conditional_expression
int A = 10;
int B = 20;
int main()
{
int C = A ?: B;
__CPROVER_assert(0,"");
}