-
Notifications
You must be signed in to change notification settings - Fork 142
Patched #1242 #1293
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
base: master
Are you sure you want to change the base?
Patched #1242 #1293
Changes from all commits
0dadb5b
2d33163
27be9f1
6d82f87
eee1999
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -539,7 +539,7 @@ Pointer::isDereferenceable(const expr &bytes0, uint64_t align, | |
| expr bytes = bytes0.zextOrTrunc(bits_for_offset); | ||
|
|
||
| auto block_constraints = [&](const Pointer &p) { | ||
| expr ret = p.isBlockAlive(); | ||
| expr ret = (iswrite || is_asm) ? p.isBlockAlive() : true; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the iswrite condition only applies to stack variables. |
||
| if (iswrite) | ||
| ret &= p.isWritable() && !p.isNoWrite(); | ||
| else if (!ignore_accessability) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ; EXPECT: ERROR: Source is more defined than target | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the name of the test is not very good. this is testing that the load is not UB. |
||
|
|
||
| define i8 @src() { | ||
| %p = alloca i8 | ||
| call void @llvm.lifetime.start.p0(ptr %p) | ||
| call void @llvm.lifetime.end.p0(ptr %p) | ||
| %v = load i8, ptr %p | ||
| ret i8 %v | ||
| } | ||
|
|
||
| define i8 @tgt() { | ||
| unreachable | ||
| } | ||
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.
missing expr::mkUInt here
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 it be;
expr is_alive = isBlockAlive(expr::mkUInt(bid, Pointer::bitsShortBid()), local);