# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The memo of '--acyclic=plausible' serves the operands of a firing as much# as the walk: the two branches of this fork spell one term, so the sum the# second one starts from is the formation the first one fired, and the# second branch reaches the normal form the first reached, symbol and all,# through a firing that reduces nothing and answers what the first one did.# The branches are met as 'morph' operands of the fork and not as bindings# the deep walk went over first, since the fork is fired by the dispatch off# it (#1476).symbolic: | - Ξ»: L_number_gt dataize: πΏ1: $.Ο πΏ2: $.x π: Ξ¦.bool( Ο β¦ β¦ Ξ» β€ π β§ ) - Ξ»: L_number_plus dataize: πΏ1: $.Ο πΏ2: $.x π: Ξ¦.number( Ο β¦ β¦ Ξ» β€ π β§ ) - Ξ»: L_fork dataize: πΏ1: $.Ο morph: π1: $.then π2: $.else π: π1location: 'Q.@'acyclic: plausibleinput: > β¦ bytes(Ο) β¦ β¦β§, bool(Ο) β¦ β¦ if β¦ β¦ Ο β¦ β
, then β¦ β
, else β¦ β
, Ξ» β€ L_fork β§ β§, number(Ο) β¦ β¦ gt(Ο, x) β¦ β¦ Ξ» β€ L_number_gt β§, plus(Ο, x) β¦ β¦ Ξ» β€ L_number_plus β§ β§, @ β¦ 5.gt( 0 ).if( 1.plus( 2 ).plus( 3 ), 1.plus( 2 ).plus( 3 ) ).plus( 9 ) β§result: 'β¦ x β¦ 9, Ξ» β€ L_number_plus β§'protocol: | π(Ξ¦.Ο): πΒ·0Β·1 := 5 πΒ·0Β·2 := πΒ·0Β·1.gt( x β¦ 0 ) πΌ(L_number_gt): π»(Ξ¦.aπ΅0): π(Ξ¦.aπ΅0): πΒ·1Β·1 := 5 πΒ·1Β·2 := Ξ¦.bytes( Ο β¦ 40-14-00-00-00-00-00-00:Ξ ) πΏΒ·1Β·1 := 40-14-00-00-00-00-00-00 # 5.0 πΏ1Β·1 := πΏΒ·1Β·1 # π»(ΞΎ.Ο) π»(Ξ¦.aπ΅1): π(Ξ¦.aπ΅1): πΒ·1Β·3 := 0 πΒ·1Β·4 := Ξ¦.bytes( Ο β¦ 00-00-00-00-00-00-00-00:Ξ ) πΏΒ·1Β·2 := 00-00-00-00-00-00-00-00 # 0.0 πΏ2Β·1 := πΏΒ·1Β·2 # π»(ΞΎ.x) πΒ·1Β·5 := Ξ¦.bool( Ο β¦ π1:Ξ» ) # π π(πΒ·1Β·5): πΒ·1Β·6 := Ξ¦.bool( Ο β¦ π1:Ξ» ) πΒ·1Β·7 := πΒ·1Β·6 # π(πΒ·1Β·5) πΒ·0Β·3 := πΒ·1Β·6.if( then β¦ 1.plus( 2 ).plus( 3 ) ) πΒ·0Β·4 := πΒ·0Β·3( else β¦ 1.plus( 2 ).plus( 3 ) ) πΌ(L_fork): π»(Ξ¦.aπ΅2): π(Ξ¦.aπ΅2): πΒ·2Β·1 := Ξ¦.bool( Ο β¦ π1:Ξ» ) πΏ1Β·2 := π»(π1:Ξ») # π»(ΞΎ.Ο) π(Ξ¦.aπ΅3): πΒ·2Β·2 := 1 πΒ·2Β·3 := πΒ·2Β·2.plus( x β¦ 2 ) πΌ(L_number_plus): π»(Ξ¦.aπ΅4): π(Ξ¦.aπ΅4): πΒ·3Β·1 := 1 πΒ·3Β·2 := Ξ¦.bytes( Ο β¦ 3F-F0-00-00-00-00-00-00:Ξ ) πΏΒ·3Β·1 := 3F-F0-00-00-00-00-00-00 # 1.0 πΏ1Β·3 := πΏΒ·3Β·1 # π»(ΞΎ.Ο) π»(Ξ¦.aπ΅5): π(Ξ¦.aπ΅5): πΒ·3Β·3 := 2 πΒ·3Β·4 := Ξ¦.bytes( Ο β¦ 40-00-00-00-00-00-00-00:Ξ ) πΏΒ·3Β·2 := 40-00-00-00-00-00-00-00 # 2.0 πΏ2Β·3 := πΏΒ·3Β·2 # π»(ΞΎ.x) πΒ·3Β·5 := Ξ¦.number( Ο β¦ π2:Ξ» ) # π π(πΒ·3Β·5): πΒ·3Β·6 := Ξ¦.number( Ο β¦ π2:Ξ» ) πΒ·3Β·7 := πΒ·3Β·6 # π(πΒ·3Β·5) πΒ·2Β·4 := πΒ·3Β·6.plus( x β¦ 3 ) π1Β·2 := πΒ·2Β·4 # π(ΞΎ.then) π(Ξ¦.aπ΅6): πΒ·2Β·5 := Ξ¦.number( Ο β¦ πΒ·3Β·2 ) πΒ·2Β·6 := πΒ·2Β·5.plus( x β¦ πΒ·3Β·3 ) πΌ(L_number_plus): πΒ·4Β·1 := πΒ·3Β·6 # π πΒ·4Β·2 := πΒ·3Β·7 # π(πΒ·4Β·1) πΒ·2Β·7 := πΒ·3Β·6.plus( x β¦ 3 ) π2Β·2 := πΒ·2Β·7 # π(ΞΎ.else) πΒ·2Β·8 := πΒ·2Β·7 # π πΒ·2Β·9 := πΒ·2Β·7 # π(πΒ·2Β·8) πΌ(L_number_plus): π»(Ξ¦.aπ΅7): π(Ξ¦.aπ΅7): πΒ·5Β·1 := Ξ¦.number( Ο β¦ π2:Ξ» ) πΏ1Β·5 := π»(π2:Ξ») # π»(ΞΎ.Ο) π»(Ξ¦.aπ΅8): π(Ξ¦.aπ΅8): πΒ·5Β·2 := 3 πΒ·5Β·3 := Ξ¦.bytes( Ο β¦ 40-08-00-00-00-00-00-00:Ξ ) πΏΒ·5Β·1 := 40-08-00-00-00-00-00-00 # 3.0 πΏ2Β·5 := πΏΒ·5Β·1 # π»(ΞΎ.x) πΒ·5Β·4 := Ξ¦.number( Ο β¦ π3:Ξ» ) # π π(πΒ·5Β·4): πΒ·5Β·5 := Ξ¦.number( Ο β¦ π3:Ξ» ) πΒ·5Β·6 := πΒ·5Β·5 # π(πΒ·5Β·4) πΒ·0Β·5 := πΒ·5Β·5.plus( x β¦ 9 )