view paper/src/agda-hoare-prog.agda.replaced @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents b5fffa8ae875
children
line wrap: on
line source

program : Comm
program = 
  Seq ( PComm (@$\lambda$@ env @$\rightarrow$@ record env {varn = 10}))
    $ Seq ( PComm (@$\lambda$@ env @$\rightarrow$@ record env {vari = 0}))
    $ While (@$\lambda$@ env @$\rightarrow$@ lt zero (varn env ) )
      (Seq (PComm (@$\lambda$@ env @$\rightarrow$@ record env {vari = ((vari env) + 1)} ))
        $ PComm (@$\lambda$@ env @$\rightarrow$@ record env {varn = ((varn env) - 1)} ))