view paper/src/Exec.agda @ 11:831316a767e8

add hoare figure
author ryokka
date Mon, 10 Feb 2020 14:20:21 +0900
parents c7acb9211784
children
line wrap: on
line source

exec : {l1 l2 : Level} {I : Set l1} {O : Set l2}
       {{_ : DataSegment I}} {{_ : DataSegment O}}
       -> CodeSegment I O -> Context -> Context
exec {l} {{i}} {{o}}  (cs b) c = set o c (b (get i c))