Skip to content
Snippets Groups Projects
Commit 43ee88ae authored by Ruben Asplund's avatar Ruben Asplund
Browse files

Exercise E

parent be39debc
Branches 4b
No related tags found
No related merge requests found
...@@ -9,8 +9,11 @@ int get_sign(int x) ...@@ -9,8 +9,11 @@ int get_sign(int x)
{ {
if (x == 0) if (x == 0)
return 0; return 0;
if (x == 1)
return 0;
if (x < 0) if (x < 2)
return -1; return -1;
else else
return 1; return 1;
...@@ -193,7 +196,8 @@ int main() ...@@ -193,7 +196,8 @@ int main()
// `klee_make_symbolic(&a, sizeof(a), "a");` // `klee_make_symbolic(&a, sizeof(a), "a");`
// works when you run `klee` to generate test cases: // works when you run `klee` to generate test cases:
// //
// [your answer here] // [It takes the address of variable a and treat is as symbolic.
// It will mark the memory locattion of a as symbolic.]
// (hint, mark memory region as symbolic) // (hint, mark memory region as symbolic)
// //
// Explain in your own words how // Explain in your own words how
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment