Skip to content

Commit

Permalink
Use never type
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhtrankhanh committed Nov 14, 2023
1 parent 37c78b4 commit ed0f969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theories/Imperative.v
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Inductive BasicEffects (arrayType : string -> Type) :=

Definition basicEffectsReturnValue {arrayType} (effect : BasicEffects arrayType) : Type :=
match effect with
| Trap _ => unit
| Trap _ => False
| Flush _ => unit
| ReadChar _ => Z
| WriteChar _ _ => unit
Expand Down Expand Up @@ -85,6 +85,6 @@ Inductive WithLoopControl (arrayType : string -> Type) :=
Definition withLoopControlReturnValue {arrayType} (effect : WithLoopControl arrayType) : Type :=
match effect with
| WithLocalVariablesEffect _ effect => withLocalVariablesReturnValue effect
| Continue _ => unit
| Break _ => unit
| Continue _ => False
| Break _ => False
end.

0 comments on commit ed0f969

Please sign in to comment.