-
Notifications
You must be signed in to change notification settings - Fork 24
/
Lec_2_11.hs
41 lines (30 loc) · 923 Bytes
/
Lec_2_11.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{-@ LIQUID "--reflection" @-}
{-@ LIQUID "--diff" @-}
{-@ LIQUID "--ple" @-}
{-@ LIQUID "--short-names" @-}
{-@ infixr ++ @-} -- TODO: Silly to have to rewrite this annotation!
{-# LANGUAGE GADTs #-}
module Lec_2_11 where
import Prelude hiding ((++))
import ProofCombinators
import Lists
import qualified State as S
import Expressions hiding (And)
--------------------------------------------------------------------------------
{- Boolean Expressions
data BExp
= Bc Bool
| Not BExp
| And BExp BExp
| Less AExp AExp
-}
--------------------------------------------------------------------------------
-- | IMP Commands
--------------------------------------------------------------------------------
data Com
= Skip
| Assign Vname AExp
| Seq Com Com
| If BExp Com Com
| While BExp Com
deriving (Show)