Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5239,7 +5239,7 @@ and doCondExp (asconst: bool) (* Try to evaluate the conditional expression
| _ ->
let (se, e, t) = doExp asconst e (AExp None) in
ignore (checkBool t e);
CEExp (se, if !lowerConstants then constFold asconst e else e)
CEExp (se, if !lowerConstants || asconst then constFold asconst e else e)

and compileCondExp (asconst:bool) (ce: condExpRes) (st: chunk) (sf: chunk) : chunk =
match ce with
Expand Down