-
Notifications
You must be signed in to change notification settings - Fork 131
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
SeaM implementation #473
Open
danblitzhou
wants to merge
44
commits into
seahorn:dev14
Choose a base branch
from
danblitzhou:xiang-thesis-seam
base: dev14
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
SeaM implementation #473
Conversation
This file contains 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
(to sqaush): use rewriter to apply pattern recursively feat(ExprVisitor): set selected kids to visit instead of always visit all (tsquash): use more restrained vistor to only visit first arg of store (tsquash): rename, cleanup use simple custom rewriter for array store; revert m_selectedKids
in house version is gud feat(mem-repr): iterative rewriter for ITE expr
(intrim): cached visit; stateless rules (intrim): OOP design
(to-squash): handle ites as well feat(to-squash): bvadd rules finalized
draft(nmr): present stack ptr expr with based obj type draft(nmr): low precision but sound addr filtering draft(hybrid): push down bvadd; better addrs range draft(hybrid): AddrRange data struc to keep track of isTop
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.
Implementation for MSc thesis SeaM memory representation:
lib/seahorn/BvOpSem2RawMemMgr.hh
, addm_spObjName:="sea.obj"
to represent pointer objects base in the form ofsea.obj.N
; during translation of allocation, use functionmkBasedPtr(base, offset)
to create object bases --base:=m_spObjName
,offset
is the end address ofStaticOpSemAllocator::salloc(Expr bytes, uint32_t align = 0)
;memcpy
andmemset
: defined new intermediateExpr
node typesMEMSET_WORDS
,MEMCPY_WORDS
ininclude/seahorn/Expr/ExprOpMem.hh
include/seahorn/Expr/ExprAddrRangeMap.hh
andlib/seahorn/Smt/ExprAddrRangeMap.cc
; unit tests inunits/units_arm.cpp
Expr
node typeSTORE_MAP
and accompanying operations ininclude/seahorn/Expr/ExprOpArray.hh
; added cons list like node typeCONS
ininclude/seahorn/Expr/ExprOpMisc.hh
; unit tests inunits/units_store_map.cpp
include/seahorn/Expr/ExprRewriter.hh
andlib/seahorn/Smt/ExprRewriter.cc
; rewrite rules defined ininclude/seahorn/Expr/ExprRewriteRule.hh
replaces draft PR Hybrid memory representation #400