Skip to content

Commit

Permalink
[feat] Prefer a smaller integer vaule in a model
Browse files Browse the repository at this point in the history
  • Loading branch information
misonijnik committed Oct 17, 2023
1 parent d0e280b commit cdc1f7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/klee-test-comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ void __assert_fail(const char *assertion, const char *file, unsigned int line,
int __VERIFIER_nondet_int(void) {
int x;
klee_make_symbolic(&x, sizeof(x), "int");
klee_prefer_cex(&x, x < 1024);
return x;
}

unsigned int __VERIFIER_nondet_uint(void) {
unsigned int x;
klee_make_symbolic(&x, sizeof(x), "unsigned int");
klee_prefer_cex(&x, x < 1024);
return x;
}

Expand Down

0 comments on commit cdc1f7f

Please sign in to comment.