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

Track multiple variables with the same query #27

Open
tomkurtz opened this issue Jun 6, 2021 · 1 comment
Open

Track multiple variables with the same query #27

tomkurtz opened this issue Jun 6, 2021 · 1 comment

Comments

@tomkurtz
Copy link

tomkurtz commented Jun 6, 2021

Hello,

Is it possible to create a query that will track two variables?
For example:

void main() {
	foo();
	bar();
}

void foo() {
	queryTarget("a1", "b1");
}

void bar() {
	queryTarget("a2", "b2");
}

void queryTarget(String x, String y) {}

Given that my entry point is main, if I query x, I would get a1 and a2. Then if I query y, I would get b1 and b2. Obviously the results I expect are the sets (a1,b1) and (a2,b2), and NOT (a1,b2) or (a2,b1).
How can this be done?

Thanks,
Tom

@johspaeth
Copy link
Member

HI @tomkurtz

that is indeed possible and similar to what has been implemented in this class which allows to trigger multiple queries and share their contexts in between.

I.e. you would trigger the first query for x under the context of foo or bar and then you can also trigger a second query for y under the same context.

For your case the logic referenced abot might need some slight adoption though.

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