diff options
Diffstat (limited to 'cfrontend')
-rw-r--r-- | cfrontend/Cminorgenproof.v | 6 | ||||
-rw-r--r-- | cfrontend/Csem.v | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cfrontend/Cminorgenproof.v b/cfrontend/Cminorgenproof.v index 5eaf46b2..a472e709 100644 --- a/cfrontend/Cminorgenproof.v +++ b/cfrontend/Cminorgenproof.v @@ -939,11 +939,11 @@ Proof. inv H0; try discriminate; inv H1; inv H; TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. - destruct (Int.ltu i0 (Int.repr 32)); inv H1. TrivialOp. + destruct (Int.ltu i0 Int.iwordsize); inv H1. TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. - destruct (Int.ltu i0 (Int.repr 32)); inv H1. TrivialOp. + destruct (Int.ltu i0 Int.iwordsize); inv H1. TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. - destruct (Int.ltu i0 (Int.repr 32)); inv H1. TrivialOp. + destruct (Int.ltu i0 Int.iwordsize); inv H1. TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. inv H0; try discriminate; inv H1; inv H; TrivialOp. diff --git a/cfrontend/Csem.v b/cfrontend/Csem.v index ee134875..62e9dc70 100644 --- a/cfrontend/Csem.v +++ b/cfrontend/Csem.v @@ -252,7 +252,7 @@ Function sem_xor (v1 v2: val): option val := Function sem_shl (v1 v2: val): option val := match v1, v2 with | Vint n1, Vint n2 => - if Int.ltu n2 (Int.repr 32) then Some (Vint(Int.shl n1 n2)) else None + if Int.ltu n2 Int.iwordsize then Some (Vint(Int.shl n1 n2)) else None | _, _ => None end. @@ -261,13 +261,13 @@ Function sem_shr (v1: val) (t1: type) (v2: val) (t2: type): option val := | shr_case_I32unsi => match v1,v2 with | Vint n1, Vint n2 => - if Int.ltu n2 (Int.repr 32) then Some (Vint (Int.shru n1 n2)) else None + if Int.ltu n2 Int.iwordsize then Some (Vint (Int.shru n1 n2)) else None | _,_ => None end | shr_case_ii => match v1,v2 with | Vint n1, Vint n2 => - if Int.ltu n2 (Int.repr 32) then Some (Vint (Int.shr n1 n2)) else None + if Int.ltu n2 Int.iwordsize then Some (Vint (Int.shr n1 n2)) else None | _, _ => None end | shr_default=> |