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
Ruben Asplund
klee_tutorial
Commits
b7069f4c
Commit
b7069f4c
authored
4 years ago
by
Ruben Asplund
Browse files
Options
Downloads
Patches
Plain Diff
Exercise D
parent
4edbab26
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/get_sign.c
+7
-7
7 additions, 7 deletions
examples/get_sign.c
with
7 additions
and
7 deletions
examples/get_sign.c
+
7
−
7
View file @
b7069f4c
...
@@ -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.
//
//
...
...
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