Skip to content

Only constant fold for shitfleft when defined#123

Merged
michael-schwarz merged 1 commit intodevelopfrom
issue_122
Nov 15, 2022
Merged

Only constant fold for shitfleft when defined#123
michael-schwarz merged 1 commit intodevelopfrom
issue_122

Conversation

@michael-schwarz
Copy link
Copy Markdown
Member

This removes some constant folding for shiftleft that hide potential undefined behavior for signed types.

Closes #122

@michael-schwarz michael-schwarz merged commit 3d079de into develop Nov 15, 2022
@michael-schwarz michael-schwarz deleted the issue_122 branch November 15, 2022 12:55
sim642 added a commit to goblint/analyzer that referenced this pull request Nov 15, 2022
@sim642 sim642 added this to the 2.0.1 milestone Nov 21, 2022
sim642 added a commit to sim642/opam-repository that referenced this pull request Nov 23, 2022
CHANGES:

* Fix scope of enum definition in return type (goblint/cil#112, goblint/cil#113).
* Fix signed integer left shift constant folding overflow (goblint/cil#122, goblint/cil#123).
* Fix `fitsInInt` for booleans (goblint/cil#111).
* Mark more loop statement locations synthetic (goblint/cil#125).
* Optimize integer truncation (goblint/cil#115).
* Fix FrontC and Cabs2cil partial application (goblint/cil#116).
* Fix external usage of `freshLabel` (goblint/cil#121).
mrstanb pushed a commit to adelavais/analyzer that referenced this pull request Nov 24, 2022
BilelGho pushed a commit to BilelGho/analyzer that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

constFold unsound on signed int bit shift

2 participants