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

Add an annotation asserting that a value is a return value #144

Closed
chrispyles opened this issue Jan 5, 2022 · 0 comments · Fixed by #158
Closed

Add an annotation asserting that a value is a return value #144

chrispyles opened this issue Jan 5, 2022 · 0 comments · Fixed by #158

Comments

@chrispyles
Copy link
Contributor

chrispyles commented Jan 5, 2022

Add an annotation that is similar to a value annotation but which specifically asserts that a value was returned by a function (that is, was the value of arg when the trace function was called for the return event).

Consider matrix exponentiation A^p when p == 1: the matrix A always shows up in the memory footprint as long as it's used inside the function body, but the return value of the function is not necessarily A. This may also help design references for problems that suffer from the issues described in #62.

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

Successfully merging a pull request may close this issue.

1 participant