Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

How to get the covered paths for a found path #121

Closed
leithon opened this issue Feb 12, 2017 · 1 comment
Closed

How to get the covered paths for a found path #121

leithon opened this issue Feb 12, 2017 · 1 comment
Labels

Comments

@leithon
Copy link

leithon commented Feb 12, 2017

With pg.explore(find = find), I can generate the target path as pg.found[0].

If I want to get the exercised path objects of pg.found[0], how could I do?

I know the addresses of execrised blocks can be accessed by path.addr_trace[], for path objects, how to access them?

Thanks.

@zardus
Copy link
Member

zardus commented Feb 12, 2017

You can iterate through the history of the path with path.history_iterator. Each history object has information regarding the blocks executed, constraints added, and so forth along the path.

There's no good way to get the original path objects -- in most cases, they'll have already been garbage collected.

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

No branches or pull requests

3 participants