From 7698300cfe2d3f944ce2e1d4a60a263620487718 Mon Sep 17 00:00:00 2001 From: xleroy Date: Fri, 20 Dec 2013 13:05:53 +0000 Subject: Merge of branch value-analysis. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2381 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- common/Values.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/Values.v') diff --git a/common/Values.v b/common/Values.v index b9594fc9..99a994b9 100644 --- a/common/Values.v +++ b/common/Values.v @@ -655,6 +655,12 @@ Definition cmpl (c: comparison) (v1 v2: val): option val := Definition cmplu (c: comparison) (v1 v2: val): option val := option_map of_bool (cmplu_bool c v1 v2). +Definition maskzero_bool (v: val) (mask: int): option bool := + match v with + | Vint n => Some (Int.eq (Int.and n mask) Int.zero) + | _ => None + end. + End COMPARISONS. (** [load_result] reflects the effect of storing a value with a given -- cgit