aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/Allocation.v2
-rw-r--r--cfrontend/Clight.v18
-rw-r--r--cfrontend/Csem.v4
-rw-r--r--cfrontend/Cstrategy.v12
4 files changed, 15 insertions, 21 deletions
diff --git a/backend/Allocation.v b/backend/Allocation.v
index 69fb32fa..508bc13d 100644
--- a/backend/Allocation.v
+++ b/backend/Allocation.v
@@ -100,7 +100,7 @@ Definition transfer
reg_list_live args
(reg_sum_live ros (reg_dead res after))
| Itailcall sig ros args =>
- reg_list_live args (reg_sum_live ros Regset.empty)
+ reg_list_live args (reg_sum_live ros Regset.empty)
| Ibuiltin ef args res s =>
reg_list_live args (reg_dead res after)
| Icond cond args ifso ifnot =>
diff --git a/cfrontend/Clight.v b/cfrontend/Clight.v
index 4f4123e0..f183ade8 100644
--- a/cfrontend/Clight.v
+++ b/cfrontend/Clight.v
@@ -320,18 +320,12 @@ End EXPR.
Inductive cont: Type :=
| Kstop: cont
- | Kseq: statement -> cont -> cont
- (**r [Kseq s2 k] = after [s1] in [s1;s2] *)
- | Kwhile: expr -> statement -> cont -> cont
- (**r [Kwhile e s k] = after [s] in [while (e) s] *)
- | Kdowhile: expr -> statement -> cont -> cont
- (**r [Kdowhile e s k] = after [s] in [do s while (e)] *)
- | Kfor2: expr -> statement -> statement -> cont -> cont
- (**r [Kfor2 e2 e3 s k] = after [s] in [for'(e2;e3) s] *)
- | Kfor3: expr -> statement -> statement -> cont -> cont
- (**r [Kfor3 e2 e3 s k] = after [e3] in [for'(e2;e3) s] *)
- | Kswitch: cont -> cont
- (**r catches [break] statements arising out of [switch] *)
+ | Kseq: statement -> cont -> cont (**r [Kseq s2 k] = after [s1] in [s1;s2] *)
+ | Kwhile: expr -> statement -> cont -> cont (**r [Kwhile e s k] = after [s] in [while (e) s] *)
+ | Kdowhile: expr -> statement -> cont -> cont (**r [Kdowhile e s k] = after [s] in [do s while (e)] *)
+ | Kfor2: expr -> statement -> statement -> cont -> cont (**r [Kfor2 e2 e3 s k] = after [s] in [for'(e2;e3) s] *)
+ | Kfor3: expr -> statement -> statement -> cont -> cont (**r [Kfor3 e2 e3 s k] = after [e3] in [for'(e2;e3) s] *)
+ | Kswitch: cont -> cont (**r catches [break] statements arising out of [switch] *)
| Kcall: option ident -> (**r where to store result *)
function -> (**r calling function *)
env -> (**r local env of calling function *)
diff --git a/cfrontend/Csem.v b/cfrontend/Csem.v
index 3f299158..742a969a 100644
--- a/cfrontend/Csem.v
+++ b/cfrontend/Csem.v
@@ -213,13 +213,13 @@ Function sem_add (v1:val) (t1:type) (v2: val) (t2:type) : option val :=
| add_case_pi ty => (**r pointer plus integer *)
match v1,v2 with
| Vptr b1 ofs1, Vint n2 =>
- Some (Vptr b1 (Int.add ofs1 (Int.mul (Int.repr (sizeof ty)) n2)))
+ Some (Vptr b1 (Int.add ofs1 (Int.mul (Int.repr (sizeof ty)) n2)))
| _, _ => None
end
| add_case_ip ty => (**r integer plus pointer *)
match v1,v2 with
| Vint n1, Vptr b2 ofs2 =>
- Some (Vptr b2 (Int.add ofs2 (Int.mul (Int.repr (sizeof ty)) n1)))
+ Some (Vptr b2 (Int.add ofs2 (Int.mul (Int.repr (sizeof ty)) n1)))
| _, _ => None
end
| add_default => None
diff --git a/cfrontend/Cstrategy.v b/cfrontend/Cstrategy.v
index ad991625..fc97945e 100644
--- a/cfrontend/Cstrategy.v
+++ b/cfrontend/Cstrategy.v
@@ -221,7 +221,7 @@ Inductive estep: state -> trace -> state -> Prop :=
match r with Eval _ _ => False | _ => True end ->
ty = typeof r ->
estep (ExprState f r k e m)
- E0 (ExprState f (Eval v ty) k e m)
+ E0 (ExprState f (Eval v ty) k e m)
| step_condition_true: forall f C r1 r2 r3 ty k e m v,
leftcontext RV RV C ->
@@ -229,7 +229,7 @@ Inductive estep: state -> trace -> state -> Prop :=
is_true v (typeof r1) ->
typeof r2 = ty ->
estep (ExprState f (C (Econdition r1 r2 r3 ty)) k e m)
- E0 (ExprState f (C (Eparen r2 ty)) k e m)
+ E0 (ExprState f (C (Eparen r2 ty)) k e m)
| step_condition_false: forall f C r1 r2 r3 ty k e m v,
leftcontext RV RV C ->
@@ -237,7 +237,7 @@ Inductive estep: state -> trace -> state -> Prop :=
is_false v (typeof r1) ->
typeof r3 = ty ->
estep (ExprState f (C (Econdition r1 r2 r3 ty)) k e m)
- E0 (ExprState f (C (Eparen r3 ty)) k e m)
+ E0 (ExprState f (C (Eparen r3 ty)) k e m)
| step_assign: forall f C l r ty k e m b ofs v v' m',
leftcontext RV RV C ->
@@ -247,7 +247,7 @@ Inductive estep: state -> trace -> state -> Prop :=
store_value_of_type (typeof l) m b ofs v' = Some m' ->
ty = typeof l ->
estep (ExprState f (C (Eassign l r ty)) k e m)
- E0 (ExprState f (C (Eval v' ty)) k e m')
+ E0 (ExprState f (C (Eval v' ty)) k e m')
| step_assignop: forall f C op l r tyres ty k e m b ofs v1 v2 v3 v4 m',
leftcontext RV RV C ->
@@ -259,7 +259,7 @@ Inductive estep: state -> trace -> state -> Prop :=
store_value_of_type (typeof l) m b ofs v4 = Some m' ->
ty = typeof l ->
estep (ExprState f (C (Eassignop op l r tyres ty)) k e m)
- E0 (ExprState f (C (Eval v4 ty)) k e m')
+ E0 (ExprState f (C (Eval v4 ty)) k e m')
| step_postincr: forall f C id l ty k e m b ofs v1 v2 v3 m',
leftcontext RV RV C ->
@@ -270,7 +270,7 @@ Inductive estep: state -> trace -> state -> Prop :=
store_value_of_type ty m b ofs v3 = Some m' ->
ty = typeof l ->
estep (ExprState f (C (Epostincr id l ty)) k e m)
- E0 (ExprState f (C (Eval v1 ty)) k e m')
+ E0 (ExprState f (C (Eval v1 ty)) k e m')
| step_comma: forall f C r1 r2 ty k e m v,
leftcontext RV RV C ->