Skip to content
Snippets Groups Projects
Commit 16c7a57e authored by Blinningjr's avatar Blinningjr
Browse files

finished examples/get_sign.rs

parent d10668a1
No related branches found
No related tags found
No related merge requests found
...@@ -79,12 +79,13 @@ fn main() { ...@@ -79,12 +79,13 @@ fn main() {
// How does `klee-sys` and `cargo-klee` score on a 0..5 scale? // How does `klee-sys` and `cargo-klee` score on a 0..5 scale?
// //
// [your answer here] // [your answer here]
// TODO: 5? // 4
// //
// If below 5, what could be done to improve the UX/IX? // If below 5, what could be done to improve the UX/IX?
// //
// [your answer here] // [your answer here]
// TODO // There are a lot of flags in the command which makes it a bit long to write. Maybe add a new
// command for emitting llvm-ir files or maybe combine some of the flags into one.
// //
// C) Inner workings. // C) Inner workings.
// //
...@@ -96,7 +97,16 @@ fn main() { ...@@ -96,7 +97,16 @@ fn main() {
// What modules in `klee-sys` does this feature enable? // What modules in `klee-sys` does this feature enable?
// //
// [your answer here] // [your answer here]
// TODO // ll and lib_klee_analysis
//
// // re-exports for klee-analysis
// #[cfg(feature = "klee-analysis")]
// mod lib_klee_analysis;
// #[cfg(feature = "klee-analysis")]
// pub mod ll; // low level bindings
// #[cfg(feature = "klee-analysis")]
// pub use lib_klee_analysis::*; // re-export functions and macros
//
// //
// Have a look at the source code of `cargo klee`. // Have a look at the source code of `cargo klee`.
// (The actual sub-command is in the folder `cargo-klee`.) // (The actual sub-command is in the folder `cargo-klee`.)
...@@ -105,7 +115,23 @@ fn main() { ...@@ -105,7 +115,23 @@ fn main() {
// Which one will it pick, and why? // Which one will it pick, and why?
// //
// [your answer here] // [your answer here]
// TODO // It does a lookup from the parent file ".."
//
// The Related code:
// let mut path: PathBuf = if is_example {
// project.path(Artifact::Example(file), profile, None, &host)?
// } else {
// project.path(Artifact::Bin(file), profile, None, &host)?
// };
//
//
// ...
//
// path = path.parent().expect("unreachable").to_path_buf();
//
// if is_binary {
// path = path.join("deps"); // the .ll file is placed in ../deps
// }
// //
// Actually this is one of the "bad seeds" in the internal design. // Actually this is one of the "bad seeds" in the internal design.
// Seems there is no "stable" way of controlling/retrieving the "metadata" // Seems there is no "stable" way of controlling/retrieving the "metadata"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment