-
Notifications
You must be signed in to change notification settings - Fork 24
Memory composition support #7
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
af17fd7
to
a065454
Compare
a065454
to
11cf1a5
Compare
sergeypospelov
requested changes
Mar 6, 2023
I am not sure about fun <RegionId : URegionId, Key, Sort : USort> memcpy(
fromKey: Key,
toKey: Key,
fromRegion: UMemoryRegion<RegionId, Key, Sort>
) |
- RegionId made generic - No instantiator constructors - Composer is less than 70 lines now - No unclear heap interfaces extensions - Memcpy is entirely implemented
sergeypospelov
requested changes
Mar 15, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add tests on composition of URangeUpdateNode
s.
CaelmBleidd
commented
Mar 16, 2023
5ed85f7
to
7ff8aa1
Compare
1f0af7f
to
be28b95
Compare
petrukhinandrew
added a commit
to petrukhinandrew/usvm
that referenced
this pull request
Apr 4, 2025
* update type argument rendering logic * fix mockMvc1 field name, when mockMvc not present * add JcSpringImportManager * remove redundant cp argument from annotations * JcDeadCodeTransformer rework * update jacodb version * fix lint * remove redundant check * remove redundant super calls
petrukhinandrew
added a commit
to petrukhinandrew/usvm
that referenced
this pull request
May 5, 2025
* update type argument rendering logic * fix mockMvc1 field name, when mockMvc not present * add JcSpringImportManager * remove redundant cp argument from annotations * JcDeadCodeTransformer rework * update jacodb version * fix lint * remove redundant check * remove redundant super calls
Saloed
pushed a commit
that referenced
this pull request
Jun 2, 2025
* Add support for memory composition * Review fixes * Composition refactoring and array copying implementation - RegionId made generic - No instantiator constructors - Composer is less than 70 lines now - No unclear heap interfaces extensions - Memcpy is entirely implemented * Refactoring * Review fixes --------- Co-authored-by: Dmitry Mordvinov <[email protected]>
petrukhinandrew
added a commit
to petrukhinandrew/usvm
that referenced
this pull request
Jun 19, 2025
* update type argument rendering logic * fix mockMvc1 field name, when mockMvc not present * add JcSpringImportManager * remove redundant cp argument from annotations * JcDeadCodeTransformer rework * update jacodb version * fix lint * remove redundant check * remove redundant super calls
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for memory composition.
Minor changes:
UContext
with values fromKContext
UConcreteHeapRef
RegionId
generic parameter in many placesUMemoryRegions
file into three:MemoryRegions
,UMemoryUpdates
, andUpdateNodes
, containing corresponding classes and their inheritors.isEmpty
returning true for theUniverse
regionUFlatUpdates
Unsolved problems:
keyMapper
is still an uncomposable object, that leads to a problem with recalculation of lower bounds in lambda closure inside theURangedUpdateNode
Open questions:
memcpy
function contain a memory region? Can we have a heap without regions?writeArrayLength
? Create an abstract class? Or an external interface? Or implement a default behaviour throwing an errorAdded tests:
org.usvm.MapCompositionTest
for map operations in different classesorg.usvm.MemoryRegionTests#testMultipleWriteTheSameUpdateNode
for key deduplicationorg.usvm.CompositionTest
for composition as an operation