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
acbb8768
Commit
acbb8768
authored
4 years ago
by
Ruben Asplund
Browse files
Options
Downloads
Patches
Plain Diff
updated get_sign.c
parent
7c0265b9
No related branches found
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
+5
-4
5 additions, 4 deletions
examples/get_sign.c
with
5 additions
and
4 deletions
examples/get_sign.c
+
5
−
4
View file @
acbb8768
...
@@ -136,7 +136,8 @@ int main()
...
@@ -136,7 +136,8 @@ int main()
//
//
// Why not? Confer to shell error codes:
// Why not? Confer to shell error codes:
//
//
// ["-1 converted to a valid exit code value in the 0-255 range", (in my case 255)]
// ["-1 converted to a valid exit code value in the 0-255 range",
// In my case 255 which is -1, but usigned 8 bit will be value 255]
//
//
// D) Debugging
// D) Debugging
//
//
...
@@ -196,14 +197,14 @@ int main()
...
@@ -196,14 +197,14 @@ 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:
//
//
// [It takes the address of variable a and treat is as symbolic
.
// [It takes the address of variable a and treat is as symbolic
//
It will
mark the memory locat
t
ion of a as symbolic.]
//
and also
mark the memory location 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
// `klee_make_symbolic(&a, sizeof(a), "a");`
// `klee_make_symbolic(&a, sizeof(a), "a");`
// works when you replay test cases:
// works when you replay test cases:
//
//
// [
your answer here
]
// [
When test cases is replayed
]
// (hint, KTEST_FILE points to a concrete assignment
// (hint, KTEST_FILE points to a concrete assignment
// of the memory region)
// of the memory region)
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