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

crucible_points_to doesn't work with function return value of pointer type #177

Closed
brianhuffman opened this issue Feb 20, 2017 · 0 comments
Assignees

Comments

@brianhuffman
Copy link
Contributor

This issue applies to the crucible-integration branch of saw-script.

If we compile the following C file to LLVM bitcode

static int val = 3;
int *test() {
	return (&val);
}

and run the following saw-script command

crucible_llvm_verify "test" []
  do {
    ret <- crucible_execute_func [];
    crucible_points_to ret (crucible_term {{ 3:[32] }});
  };

then we get the following error

Non-pointer value in points-to assertion

even though the return value actually has pointer type.

@brianhuffman brianhuffman self-assigned this Feb 21, 2017
@atomb atomb closed this as completed in 2456a89 Apr 11, 2017
brianhuffman pushed a commit that referenced this issue Apr 26, 2021
Add `OpenTerm` operations.
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

1 participant