Skip to content
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

crucible-llvm: Skip llvm.experimental.noalias.scope.decl and llvm.dbg.assign #1205

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,8 @@ callFunction defSet instr tailCall_ fnTy fn args assign_f
, "llvm.dbg.declare"
, "llvm.dbg.addr"
, "llvm.dbg.value"
, "llvm.dbg.assign" -- Added in LLVM 16
, "llvm.experimental.noalias.scope.decl" -- Added in LLVM 12
, "llvm.lifetime.start"
, "llvm.lifetime.start.p0"
, "llvm.lifetime.start.p0i8"
Expand Down
14 changes: 14 additions & 0 deletions crux-llvm/test-data/golden/T1196.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
void foo(int* restrict p0, int* restrict p1) {
*p0 = *p1;
}

__attribute__((noinline)) void test_inline_foo(int* p0, int* p1) {
foo(p0, p1);
}

int main(void) {
int p0 = 0;
int p1 = 1;
test_inline_foo(&p0, &p1);
return 0;
}
1 change: 1 addition & 0 deletions crux-llvm/test-data/golden/T1196.z3.good
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Crux] Overall status: Valid.
8 changes: 8 additions & 0 deletions crux-llvm/test-data/golden/T1204.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
__attribute__((noinline)) int foo(int x[2]) {
return x[0];
}

int main(void) {
int x[2] = { 0, 0 };
return foo(x);
}
1 change: 1 addition & 0 deletions crux-llvm/test-data/golden/T1204.z3.good
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Crux] Overall status: Valid.
Loading