From 9b45e1d24a337e3f0047bf5056315169d4203b49 Mon Sep 17 00:00:00 2001 From: xleroy Date: Fri, 29 Jul 2011 08:50:40 +0000 Subject: Interp.ml: initialize PRNG Cexec.v: comments git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1691 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- cfrontend/Cexec.v | 16 ++++++++++++++-- driver/Interp.ml | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/cfrontend/Cexec.v b/cfrontend/Cexec.v index 3dd34c1c..383eeb8e 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 84037ae8..a0090866 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 -- cgit