diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-07-29 08:50:40 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-07-29 08:50:40 +0000 |
commit | 9b45e1d24a337e3f0047bf5056315169d4203b49 (patch) | |
tree | 06afa60b1eaefd53487abb33d64064d30a29d909 | |
parent | 26eb2a1350dcf0355c58c45e300d593204affb83 (diff) |
Interp.ml: initialize PRNG
Cexec.v: comments
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1691 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
-rw-r--r-- | cfrontend/Cexec.v | 16 | ||||
-rw-r--r-- | driver/Interp.ml | 1 |
2 files changed, 15 insertions, 2 deletions
diff --git a/cfrontend/Cexec.v b/cfrontend/Cexec.v index 3dd34c1..383eeb8 100644 --- a/cfrontend/Cexec.v +++ b/cfrontend/Cexec.v @@ -1,3 +1,17 @@ +(* *********************************************************************) +(* *) +(* The Compcert verified compiler *) +(* *) +(* Xavier Leroy, INRIA Paris-Rocquencourt *) +(* *) +(* Copyright Institut National de Recherche en Informatique et en *) +(* Automatique. All rights reserved. This file is distributed *) +(* under the terms of the INRIA Non-Commercial License Agreement. *) +(* *) +(* *********************************************************************) + +(** Animating the CompCert C semantics *) + Require Import Axioms. Require Import Coqlib. Require Import Errors. @@ -14,8 +28,6 @@ Require Import Csyntax. Require Import Csem. Require Cstrategy. -(** Animating the CompCert C semantics *) - Lemma type_eq: forall (ty1 ty2: type), {ty1=ty2} + {ty1<>ty2} with typelist_eq: forall (tyl1 tyl2: typelist), {tyl1=tyl2} + {tyl1<>tyl2} with fieldlist_eq: forall (fld1 fld2: fieldlist), {fld1=fld2} + {fld1<>fld2}. diff --git a/driver/Interp.ml b/driver/Interp.ml index 84037ae..a009086 100644 --- a/driver/Interp.ml +++ b/driver/Interp.ml @@ -400,6 +400,7 @@ let rec explore p prog ge time ss = end let execute prog = + Random.self_init(); let p = err_formatter in pp_set_max_boxes p 10; begin match Cexec.do_initial_state prog with |