Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
klee_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Niklas Lundberg
klee_tutorial
Commits
2733789a
Commit
2733789a
authored
4 years ago
by
Blinningjr
Browse files
Options
Downloads
Patches
Plain Diff
Finished get_sign.rs
parent
57fed02f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/get_sign.rs
+9
-1
9 additions, 1 deletion
examples/get_sign.rs
with
9 additions
and
1 deletion
examples/get_sign.rs
+
9
−
1
View file @
2733789a
...
@@ -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.
//
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment