Skip to content

Conversation

@karoliineh
Copy link
Member

We want integer overflow safety checks from our internal dashboard implementation to be reported for unary minus operations to constants. However, when constant folding is enabled, this case should still handled in cil.ml:

| UnOp(unop, e1, tres) -> begin
  ...
  match unop with
    Neg -> const_if_not_overflow (UnOp(Neg,Const(CInt(i,ik,s)),tres)) tk (neg_cilint ic)
    ...

@sim642 sim642 added the cleanup label Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants