diff options
author | Julian Büning <julian.buening@rwth-aachen.de> | 2019-05-31 12:32:10 +0200 |
---|---|---|
committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2020-06-25 16:30:10 +0100 |
commit | a5524ee8393c06e6328b91b623ab4a8112301f0b (patch) | |
tree | 61c77df24d415fc83836e7ba4a1890e85c7369c2 /test | |
parent | 537f4e1e2558aac56e0a5894aec848d7af0ec71e (diff) | |
download | klee-a5524ee8393c06e6328b91b623ab4a8112301f0b.tar.gz |
add simple unknown bitcast alias test from the original issue
Diffstat (limited to 'test')
-rw-r--r-- | test/regression/2019-05-31_simple-unknown-bitcast-alias.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/regression/2019-05-31_simple-unknown-bitcast-alias.ll b/test/regression/2019-05-31_simple-unknown-bitcast-alias.ll new file mode 100644 index 00000000..ea164308 --- /dev/null +++ b/test/regression/2019-05-31_simple-unknown-bitcast-alias.ll @@ -0,0 +1,22 @@ +; RUN: %llvmas %s -o=%t.bc +; RUN: rm -rf %t.klee-out +; RUN: %klee -output-source -output-dir=%t.klee-out %t.bc + +; bitcast of @foo2, which is not known yet +@foo3 = alias i16 (...), bitcast (i32 (...)* @foo2 to i16 (...)*) +; @foo is not known yet +@foo2 = alias i32 (...), i32 (...)* @foo +@foo = alias i32 (...), bitcast (i32 ()* @__foo to i32 (...)*) + +define i32 @__foo() { +entry: + ret i32 42 +} + +define i32 @main() { +entry: + call i32 (...) @foo() + call i32 (...) @foo2() + call i16 (...) @foo3() + ret i32 0 +} |