Skip to content
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

Use int32 for constant integers #228

Open
MattWindsor91 opened this issue Oct 20, 2020 · 0 comments
Open

Use int32 for constant integers #228

MattWindsor91 opened this issue Oct 20, 2020 · 0 comments
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Enhancement New feature or request

Comments

@MattWindsor91
Copy link
Collaborator

We assume (implicitly!) that the environment for which we are generating C programs has 32-bit integers (eg 32-bit systems and LLP64/LP64 64-bit systems). This means that, for safety, every constant we generate is always 32-bit. However, we currently store constants as int, not int32; this is fine on 64-bit systems, but on 32-bit ones OCaml integers are 31-bit, and we lose the top end of the range.

Ideally, we should store integers as int32, and revisit this if and when we support other sizes of integer.

@MattWindsor91 MattWindsor91 added Type:Enhancement New feature or request Area:Fuzzer Specifically affecting the program mutator labels Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant