Skip to content
Snippets Groups Projects
Commit 2733789a authored by Blinningjr's avatar Blinningjr
Browse files

Finished get_sign.rs

parent 57fed02f
Branches
No related tags found
No related merge requests found
...@@ -109,13 +109,17 @@ mod ll { ...@@ -109,13 +109,17 @@ mod ll {
// What was the generated hash. // What was the generated hash.
// //
// [your answer here] // [your answer here]
// 85c57be6132dac1d
// //
// B) Inspecting the test cases. // B) Inspecting the test cases.
// //
// Figure out to run `ktest-tool` on the generated test cases. // Figure out to run `ktest-tool` on the generated test cases.
// (Hint, it is just a matter of paths.) // (Hint, it is just a matter of paths.)
// //
// [your answer here] // [your answer here] TODO: What is the question here?
// ktest-tool target/debug/examples/klee-out-0/test000001.ktest x < 0 return -1
// ktest-tool target/debug/examples/klee-out-0/test000002.ktest x > 0 retunr 1
// ktest-tool target/debug/examples/klee-out-0/test000003.ktest x = 0 retunr 0
// //
// C) Replaying your test cases. // C) Replaying your test cases.
// //
...@@ -136,6 +140,7 @@ mod ll { ...@@ -136,6 +140,7 @@ mod ll {
// > ls *.o // > ls *.o
// //
// [your answer here] // [your answer here]
// get_sign-85c57be6132dac1d.o
// //
// Now we need to link it with the `libkleeRuntest`. // Now we need to link it with the `libkleeRuntest`.
// //
...@@ -154,14 +159,17 @@ mod ll { ...@@ -154,14 +159,17 @@ mod ll {
// Now run the code in the debugger. What path was triggered. // Now run the code in the debugger. What path was triggered.
// //
// [your answer here] // [your answer here]
// x < 0, return -1
// //
// Change to test000002, what path does it trigger. // Change to test000002, what path does it trigger.
// //
// [your answer here] // [your answer here]
// x > 0, return 1
// //
// And finally change to test000003, what path was triggered. // And finally change to test000003, what path was triggered.
// //
// [your answer here] // [your answer here]
// x = 0, return 0
// //
// D) Remarks and conclusions. // D) Remarks and conclusions.
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment