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

Exercise D

parent 4edbab26
Branches
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ int main() ...@@ -113,7 +113,7 @@ int main()
// //
// Did the result correspond to the expected path for the test? // Did the result correspond to the expected path for the test?
// //
// [your answer here] // [YES]
// //
// > KTEST_FILE=klee-last/test000002.ktest ./a.out // > KTEST_FILE=klee-last/test000002.ktest ./a.out
// //
...@@ -121,7 +121,7 @@ int main() ...@@ -121,7 +121,7 @@ int main()
// //
// Did the result correspond to the expected path for the test? // Did the result correspond to the expected path for the test?
// //
// [your answer here] // [YES]
// //
// > KTEST_FILE=klee-last/test000003.ktest ./a.out // > KTEST_FILE=klee-last/test000003.ktest ./a.out
// //
...@@ -129,7 +129,7 @@ int main() ...@@ -129,7 +129,7 @@ int main()
// //
// Did the result correspond to the expected path for the test? // Did the result correspond to the expected path for the test?
// //
// [your answer here] // [NO]
// //
// Why not? Confer to shell error codes: // Why not? Confer to shell error codes:
// //
...@@ -157,14 +157,14 @@ int main() ...@@ -157,14 +157,14 @@ int main()
// //
// What value do you get, and why? // What value do you get, and why?
// //
// [your answer here] // [$1 = 0]
// //
// Step the code // Step the code
// > (gdb) next // > (gdb) next
// //
// What path did it take, and why? // What path did it take, and why?
// //
// [your answer here] // [Path return 0; becasue x == 0]
// //
// Now we can try with another test: // Now we can try with another test:
// //
...@@ -177,7 +177,7 @@ int main() ...@@ -177,7 +177,7 @@ int main()
// //
// Which path did it take, and why? // Which path did it take, and why?
// //
// [your answer here] // [Path return 1; becasue x > 0]
// //
// And finally: // And finally:
// //
...@@ -185,7 +185,7 @@ int main() ...@@ -185,7 +185,7 @@ int main()
// //
// Which path did it take, and why? // Which path did it take, and why?
// //
// [your answer here] // [Path return -1; because x < 0]
// //
// E) Under the hood. // E) Under the hood.
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment