Skip to content

Commit

Permalink
Revert "Much better handling of the default caller."
Browse files Browse the repository at this point in the history
Too slow.

This reverts commit 75f4e89.
  • Loading branch information
palkeo committed Jul 13, 2019
1 parent 579de85 commit 065e474
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pakala/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ def check_state(self, state, path=None):

for s in path:
solver.add(list(s.env.extra_constraints()))
solver.add(
[
s.env.caller == utils.DEFAULT_CALLER,
s.env.origin == utils.DEFAULT_CALLER,
]
)

# Calls
total_sent = sum(s.env.value for s in path)
Expand Down
2 changes: 1 addition & 1 deletion pakala/recursive_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def address(self):

@property
def caller(self):
return utils.DEFAULT_CALLER
return self.reference_states[0][0].env.caller

def _search_path(self, composite_state, path):
logger.debug("Search path: %s", path)
Expand Down

0 comments on commit 065e474

Please sign in to comment.