Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to use Seer for concolic testing? #5

Open
minhnhdo opened this issue Mar 12, 2018 · 1 comment
Open

Anyway to use Seer for concolic testing? #5

minhnhdo opened this issue Mar 12, 2018 · 1 comment

Comments

@minhnhdo
Copy link

minhnhdo commented Mar 12, 2018

Hi, I'd like to use seer for concolic testing. However, the examples are all code with main functions, and do not show how to hook into the engine for extension. I'd like to run concolic testing on library functions rather than whole programs. Could you please give me some pointers on how to achieve this?

@dwrensha
Copy link
Owner

I'd like to run concolic testing on library functions rather than whole programs.

Seer's logic for choosing what code to execute is here:

if let Some((entry_node_id, _)) = *state.session.entry_fn.borrow() {

We could add the ability to run functions that have a certain attribute. E.g. Miri has the ability to run functions that are marked #[test]: https://github.com/solson/miri/blob/919604e1ead8294c8ca14f101be4380ea1ea370c/miri/bin/miri.rs#L110-L124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants