Skip to content

Type promotion in compound assignments is broken #4208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peterschrammel opened this issue Feb 16, 2019 · 1 comment
Closed

Type promotion in compound assignments is broken #4208

peterschrammel opened this issue Feb 16, 2019 · 1 comment

Comments

@peterschrammel
Copy link
Member

peterschrammel commented Feb 16, 2019

The program

void main()
{
  signed char i, j;
  i = j;
  i += 1;
}

yields a goto program:

signed char i;
signed char j;
i = j;
(signed int)i = (signed int)i + 1;

Broken since e78e7d1

See also #4209.

@tautschnig
Copy link
Collaborator

The fix is now included in #3770.

tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 17, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 18, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 18, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 18, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 18, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 18, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 19, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 20, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 20, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 20, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 27, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Feb 27, 2019
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
tautschnig added a commit to tautschnig/cbmc that referenced this issue Dec 27, 2020
Doing so during goto-program conversion will ensure we can generate appropriate
conversion checks.

Fixes: diffblue#4208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants