phino-0.0.169: test-resources/evaluate-packs/cuts-an-entry-that-answers-with-a-firing-of-itself.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# The same entry answering with a firing of itself, under '_acyclic': morphing
# comes back to the very dispatch it is already reducing, so it stops there
# instead of going round until the budget is gone, and answers the dispatch
# with a fresh symbol (#2307). The budget is generous here, so what ends the
# run is the cut and not the limit.
symbolic: |
- Ξ»: L_loop
π: β¦ Ξ» β€ L_loop β§
location: 'Q.x'
acyclic: proven
steps: 250
input: 'β¦ x β¦ β¦ Ξ» β€ L_loop β§.foo β§'
result: 'π1:Ξ»'
protocol: |
π(Ξ¦.x):
πΌ(L_loop):
πΒ·1Β·1 β L_loop:Ξ» # π of L_loop
π(πΒ·1Β·1):
morphed πΒ·1Β·2 β L_loop:Ξ»
πΒ·1Β·3 β L_loop:Ξ» # π(πΒ·1Β·1)
evaluated πΒ·1Β·4 β L_loop:Ξ» # L_loop:Ξ»
looped π1 # proven, repeats L_loop:Ξ»
morphed πΒ·0Β·1 β π1:Ξ»