-
Notifications
You must be signed in to change notification settings - Fork 76
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
Support for inline assembler & goto
instructions in inline assembler
#1326
base: master
Are you sure you want to change the base?
Conversation
@@ -724,7 +724,7 @@ struct | |||
Array (CArrays.set ask n (array_idx_top) v) | |||
| t , Blob n -> Blob (Blobs.invalidate_value ask t n) | |||
| _ , Thread tid -> Thread (Threads.join (Threads.top ()) tid) | |||
| _ , JmpBuf _ -> state (* TODO: no top jmpbuf *) | |||
| _ , JmpBuf (b, c, _) -> JmpBuf(b, c, true) |
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.
The comment should probably still remain, as we normally would have to do more here but just haven't gotten around to it yet.
@@ -73,6 +75,17 @@ struct | |||
ctx.local | |||
end | |||
|
|||
let asm ctx outs ins = | |||
if not !ignore_asm then begin |
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.
Should the asm_is_top
flag impact all analyses? If this check be moved into the mCP
, so that it only needs to be done once?
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.
I think it probably should be at the FromSpec
level even. And the top-level asm_is_nop
option should probably be replaced with something more organized like sem.asm.nop
.
Depends on goblint/cil#161.
The tests with annotations will come in very few days.
We are sorry for this (right now still) unpolished state.
Changes in goblint-cil:
Changes in analyzer: all changes are switched off by default and can be turned on by --disable asm_is_nop