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
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
Mark Hakansson
cargo-klee
Commits
cafef982
Commit
cafef982
authored
6 years ago
by
Per Lindgren
Browse files
Options
Downloads
Patches
Plain Diff
commenting example
parent
cb5a6ef9
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/main2.rs
+36
-0
36 additions, 0 deletions
klee-examples/src/main2.rs
with
36 additions
and
0 deletions
klee-examples/src/main2.rs
+
36
−
0
View file @
cafef982
//! showcase volatile register
//!
//! $ cargo klee --bin main2 -r -g
//! ...
//! Reading symbols from main2.replay...done.
//!
//! (gdb) set env KTEST_FILE=klee-last/test000001.ktest
//! (gdb) run
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/release/deps/main2.replay
//! [Inferior 1 (process 25074) exited with code 01]
//!
//! (gdb) set env KTEST_FILE=klee-last/test000003.ktest
//! (gdb) run
//! Starting program: /home/pln/rust/cargo-klee/klee-examples/target/release/deps/main2.replay
//! rust_begin_unwind (_info=0x7fffffffd678)
//! at /home/pln/.cargo/git/checkouts/cargo-klee-8f30fda3bd23bb30/68dc73d/src/lang_items.rs:66
//! unsafe { intrinsics::abort() }
//! (gdb) backtrace
//! #0 rust_begin_unwind (_info=0x7fffffffd678)
//! at /home/pln/.cargo/git/checkouts/cargo-klee-8f30fda3bd23bb30/68dc73d/src/lang_items.rs:6
//! #1 0x000055555555531c in core::panicking::panic_fmt () at src/libcore/panicking.rs:95
//! #2 0x000055555555539b in core::panicking::panic () at src/libcore/panicking.rs:59
//! #3 0x00005555555552a6 in main () at src/main2.rs:54
//! (gdb) q
//! A debugging session is active.
//!
//! Inferior 1 [process 25893] will be killed.
//! $ ktest-tool --write-int target/debug/deps/klee-last/test000003.ktest
//! ktest file : 'target/debug/deps/klee-last/test000003.ktest'
//! args : ['/home/pln/rust/cargo-klee/klee-examples/target/debug/deps/main2-2a0fc03ce12ab528.ll']
//! num objects: 2
//! object 0: name: b'register'
//! object 0: size: 4
//! object 0: data: 0
//! object 1: name: b'register'
//! object 1: size: 4
//! object 1: data: 0
#![no_std]
#![no_main]
...
...
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