Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cargo-klee
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
cargo-klee
Commits
9c2b272b
Commit
9c2b272b
authored
6 years ago
by
Per
Browse files
Options
Downloads
Patches
Plain Diff
src/foo.rs docs updated
parent
e16765b6
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
klee-examples/src/foo.rs
+13
-13
13 additions, 13 deletions
klee-examples/src/foo.rs
with
13 additions
and
13 deletions
klee-examples/src/foo.rs
+
13
−
13
View file @
9c2b272b
//! Showcase how individual fields can be made symbolic
//! Showcase how individual fields can be made symbolic
//! $ cargo klee --bin foo
--release
-r -k -g -v
//! $ cargo klee --bin foo -r -k -g -v
//! ...
//! ...
//! Reading symbols from register.replay...done.
//! Reading symbols from register.replay...done.
//!
//!
//! (gdb) set env KTEST_FILE=klee-last/test000001.ktest
//! (gdb) set env KTEST_FILE=klee-last/test000001.ktest
//! (gdb) run
//! (gdb) run
# for the generated test the program will run to end
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/debug/deps/foo.replay
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/debug/deps/foo.replay
//! [Inferior 1 (process 25074) exited with code 01]
//! [Inferior 1 (process 25074) exited with code 01]
//!
//!
//! (gdb) set env KTEST_FILE=klee-last/test000002.ktest
//! (gdb) set env KTEST_FILE=klee-last/test000002.ktest
//! (gdb) run
//! (gdb) run
# for the generated test the program will panic du to a division by zero, line 60
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/debug/deps/foo.replay
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/debug/deps/foo.replay
//!
//!
//! Program received signal SIGILL, Illegal instruction.
//! Program received signal SIGILL, Illegal instruction.
//! rust_begin_unwind (_info=0x7fffffffd6a8)
//! rust_begin_unwind (_info=0x7fffffffd9b8) at /home/pln/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.3.1/src/lib.rs:31
//! at /home/pln/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.3.1/src/lib.rs:31
//! 31 unsafe { intrinsics::abort() }
//! 31 unsafe { intrinsics::abort() }
//!
//! (gdb) backtrace
//! (gdb) backtrace
//! #0 rust_begin_unwind (_info=0x7fffffffd6a8)
//! #0 rust_begin_unwind (_info=0x7fffffffd9b8) at /home/pln/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.3.1/src/lib.rs:31
//! at /home/pln/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.3.1/src/lib.rs:31
//! #1 0x000055555555530c in core::panicking::panic_fmt () at src/libcore/panicking.rs:85
//! #1 0x000055555555530c in core::panicking::panic_fmt ()
//! at src/libcore/panicking.rs:85
//! #2 0x000055555555538b in core::panicking::panic () at src/libcore/panicking.rs:49
//! #2 0x000055555555538b in core::panicking::panic () at src/libcore/panicking.rs:49
//! #3 0x0000555555555281 in foo::f2 (u=0) at src/foo.rs:60
//! #3 0x0000555555555281 in foo::f2 (u=0) at src/foo.rs:60
//! #4 0x0000555555555234 in main () at src/foo.rs:51
//! #4 0x0000555555555234 in main () at src/foo.rs:51
//!
//! (gdb) frame 4
//! (gdb) frame 4
//! #4 0x0000555555555234 in main () at src/foo.rs:51
//! #4 0x0000555555555234 in main () at src/foo.rs:51
//! 46 let _ = f2(f1(u.a));
//! 51 let _ = f2(f1(u.a));
//! (gdb) print u
//!
//! //! (gdb) print u
//! $1 = foo::A {a: 255, b: 7}
//! $1 = foo::A {a: 255, b: 7}
#![no_std]
#![no_std]
...
...
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