本文整理匯總了Python中pysmt.walkers.DagWalker._push_with_children_to_stack方法的典型用法代碼示例。如果您正苦於以下問題:Python DagWalker._push_with_children_to_stack方法的具體用法?Python DagWalker._push_with_children_to_stack怎麽用?Python DagWalker._push_with_children_to_stack使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pysmt.walkers.DagWalker
的用法示例。
在下文中一共展示了DagWalker._push_with_children_to_stack方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _push_with_children_to_stack
# 需要導入模塊: from pysmt.walkers import DagWalker [as 別名]
# 或者: from pysmt.walkers.DagWalker import _push_with_children_to_stack [as 別名]
def _push_with_children_to_stack(self, formula, **kwargs):
"""Add children to the stack."""
# Deal with quantifiers
if formula.is_quantifier():
# 1. We invoke the relevant function (walk_exists or
# walk_forall) to print the formula
fun = self.functions[formula.node_type()]
res = fun(formula, args=None, **kwargs)
# 2. We memoize the result
key = self._get_key(formula, **kwargs)
self.memoization[key] = res
else:
DagWalker._push_with_children_to_stack(self, formula, **kwargs)