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

Small fixes #128

Merged
merged 1 commit into from
Oct 5, 2023
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
6 changes: 6 additions & 0 deletions include/klee-test-comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ unsigned int __VERIFIER_nondet_uint(void) {
return x;
}

unsigned __int128 __VERIFIER_nondet_uint128(void) {
unsigned __int128 x;
klee_make_symbolic(&x, sizeof(x), "unsigned __int128");
return x;
}

unsigned __VERIFIER_nondet_unsigned(void) {
unsigned x;
klee_make_symbolic(&x, sizeof(x), "unsigned");
Expand Down
11 changes: 11 additions & 0 deletions test/Feature/uint128.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: %clang %s -emit-llvm %O0opt -c -g -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out %t1.bc 2>&1 | FileCheck %s
// CHECK-NOT: failed external call
#include "klee-test-comp.c"
extern unsigned __int128 __VERIFIER_nondet_uint128();

int main() {
__int128 x = __VERIFIER_nondet_uint128();
return x > 0;
}
Loading