Skip to content

Comments

Support machine arithmetic types on the heap#59

Merged
zafer-esen merged 1 commit intomasterfrom
heap-ilp-fix
Dec 18, 2025
Merged

Support machine arithmetic types on the heap#59
zafer-esen merged 1 commit intomasterfrom
heap-ilp-fix

Conversation

@zafer-esen
Copy link
Collaborator

A fix to support machine arithmetic (using -arithMode) in programs with heaps. Fixes #55 and #56.

("O_UInt", HeapObj.CtorSignature(List(("getUInt", HeapObj.OtherSort(Sort.Nat))), ObjSort)),
("O_Addr", HeapObj.CtorSignature(List(("getAddr", HeapObj.AddrSort)), ObjSort)),
("O_AddrRange", HeapObj.CtorSignature(List(("getAddrRange", HeapObj.AddrRangeSort)), ObjSort))
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following is an improvement, but still not ideal. Ideally, we collect which program types can be on the heap, and use only those types in predefSignatures.

@zafer-esen zafer-esen marked this pull request as ready for review December 15, 2025 12:53
@zafer-esen zafer-esen merged commit 62c504e into master Dec 18, 2025
0 of 2 checks passed
@zafer-esen zafer-esen deleted the heap-ilp-fix branch December 18, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception with ILP32 mode and integer arrays

1 participant