"[ me ⊨ (b🪙1,c🪙1) → (bv🪙1,c🪙2); me ⊨ (b🪙2,c🪙2) → (bv🪙2,c🪙3) ]==> me ⊨ (And b🪙1 b🪙2,c🪙1) → (bv🪙1∧bv🪙2,c🪙3)" |
"[ me ⊨ (e🪙1,c🪙1) ==> (r🪙1,c🪙2); me ⊨ (e🪙2,c🪙2) ==> (r🪙2,c🪙3) ]==> me ⊨ (Eq e🪙1 e🪙2,c🪙1) → (r🪙1=r🪙2,c🪙3)"
code_pred (modes: i => i => o => bool) big_step .
text‹Example: natural numbers encoded as objects with a predecessor field. Null is zero. Method succ adds an object in front, method add adds as many objects in front as the parameter specifies. First, the method bodies:›
definition "m_succ = (''s'' ::= New)∙''pred'' ::= V ''this''; V ''s''"
definition"m_add = IF Eq (V ''param'') Null THEN V ''this'' ELSE V ''this''∙''succ''∙''add''∙''pred''>"
text‹The main code, adding 1 and 2:› definition"main = ''1'' ::= Null∙''succ''; ''2'' ::= V ''1''∙''succ''; V ''2'' ∙ ''add'' "
text‹Execution of semantics. The final variable environment and store are converted into lists of references based on given lists of variable and field names to extract.›
values "{(r, map ve' [''1'',''2''], map (λn. map (s' n)[''pred'']) [0.. r ve' s' n. menv ⊨ (main, λx. null, nth[], 0) ==> (r,ve',s',n)}"
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-04-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.