-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generation of dynamic member function calls with memoization + p…
…ropagating of impurity information across chained calls (#1015) Closes #1012 closes #1013 ### Summary of Changes - fix generation of dynamic member function calls with memoization - fix propagating of impurity information across chained calls - added a lot of tests to verify The new `memoized_dynamic_call` is introduced + `memoized_static_call` is used for global and static functions. Calculating global / static function keys directly in the runner would be a larger refactor and is not implemented here. As there is no dynamic dispatch / inheritance for global / static functions, this is not (as) important. As a drive-by-fix, python calls on class members are now properly memoized, including the instance the python call was declared on. The code is also refactored to be a bit simpler, as the `memoized_dynamic_call` function defers some of the responsibility to the runner. --------- Co-authored-by: megalinter-bot <[email protected]> Co-authored-by: Lars Reimann <[email protected]>
- Loading branch information
1 parent
f888027
commit 19015c3
Showing
16 changed files
with
148 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.