phino-0.0.159: test-resources/evaluate-packs/parks-a-firing-whose-operand-reaches-the-terminator.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# 'block' is applied to 'buffer' only, so its void 'data' stays unfilled and
# the 'dataize' operand 'ρ.data.size' of 'L_dataized' reaches the terminator ⊥.
# Under '_partial' that parks the firing the way an operand parked on a λ
# function no entry answers does, rather than ending the run: the protocol
# writes 'unanswered(⊥)' with the term 𝔻 could not dataize (#1401). The
# firing of 'L_dataized' stands in the 'morph' operand of 'L_entry', which
# gets stuck right there and is parked as a whole, instead of handing on the
# residue its operand parked on (#2014).
symbolic: |
- λ: L_dataized
dataize:
𝛿1: $.target
𝑛: Φ.bytes( φ ↦ ⟦ λ ⤍ 𝜎 ⟧ )
- λ: L_entry
dataize:
𝛿1: $.n
morph:
𝑛1: $.v.φ
𝑛: 𝑛1
location: 'Q.l🌵.e1'
partial: true
input: >
⟦
number ↦ ⟦ φ ↦ ∅ ⟧,
bytes ↦ ⟦ φ ↦ ∅, size ↦ ⟦ λ ⤍ L_bytes_size ⟧ ⟧,
dataized ↦ ⟦ target ↦ ∅, λ ⤍ L_dataized ⟧,
block ↦ ⟦ data ↦ ∅, buffer ↦ ∅, read ↦ ⟦ φ ↦ Φ.dataized( target ↦ ξ.ρ.data.size ).as-bytes ⟧ ⟧,
l🌵 ↦ ⟦
mark ↦ ⟦ n ↦ ∅, v ↦ ∅, λ ⤍ L_entry ⟧,
e1 ↦ Φ.l🌵.mark( n ↦ Φ.number( φ ↦ Φ.bytes( φ ↦ ⟦ Δ ⤍ 3F-F0-00-00-00-00-00-00 ⟧ ) ) )( v ↦ Φ.block( buffer ↦ Φ.bytes( φ ↦ ⟦ λ ⤍ 𝜎1 ⟧ ) ).read ).φ
⟧
⟧
result: '⟦ n ↦ 1, v ↦ Φ.block( buffer ↦ Φ.bytes( φ ↦ 𝜎1:λ ) ).read, λ ⤍ L_entry ⟧.φ'
protocol: |
𝕄(Φ.l🌵.e1):
𝑛·0·1 := ⟦ n ↦ ∅, v ↦ ∅, λ ⤍ L_entry ⟧( n ↦ 1.0 )
𝑛·0·2 := ⟦ n ↦ 1.0, v ↦ ∅, λ ⤍ L_entry ⟧
𝑛·0·3 := 𝑛·0·2( v ↦ Φ.block( buffer ↦ Φ.bytes( φ ↦ 𝜎1:λ ) ).read )
𝑛·0·4 := ⟦ n ↦ 1.0, v ↦ Φ.block( buffer ↦ Φ.bytes( φ ↦ 𝜎1:λ ) ).read, λ ⤍ L_entry ⟧
𝔼(L_entry):
𝔻(ξ.n):
𝕄(ξ.n):
𝑛·1·1 := 1.0
𝑛·1·2 := Φ.bytes( φ ↦ 3F-F0-00-00-00-00-00-00:Δ ):φ
morphed 𝑛·1·3 := 𝑛·1·2
boxed 𝑛·1·4 := 𝑛·1·3.φ
𝕄(𝑛·1·4):
𝑛·1·5 := Φ.bytes( φ ↦ 3F-F0-00-00-00-00-00-00:Δ )
𝑛·1·6 := ⟦ φ ↦ 3F-F0-00-00-00-00-00-00:Δ, size ↦ L_bytes_size:λ ⟧
morphed 𝑛·1·7 := 𝑛·1·6
boxed 𝑛·1·8 := 𝑛·1·7.φ
𝛿·1·1 := 3F-F0-00-00-00-00-00-00 # 1.0
𝛿1·1 := 𝛿·1·1 # 𝔻(ξ.n)
𝕄(ξ.v.φ):
𝑛·1·9 := Φ.block( buffer ↦ Φ.bytes( φ ↦ 𝜎1:λ ) )
𝑛·1·10 := ⟦ data ↦ ∅, buffer ↦ Φ.bytes( φ ↦ 𝜎1:λ ), read ↦ Φ.dataized( target ↦ ρ.data.size ).as-bytes:φ ⟧
𝑛·1·11 := Φ.dataized( target ↦ ⊥ )
𝑛·1·12 := ⟦ target ↦ ⊥, λ ⤍ L_dataized ⟧
𝔼(L_dataized):
unanswered ⊥ # 𝔻(⊥)
stuck ⊥
stuck ⊥