source: src/Clight/Clight_classified_system.ma @ 2896

Last change on this file since 2896 was 2802, checked in by sacerdot, 7 years ago

New file Clight_classified_system with the classified system for Clight.
The code comes from correctness.ma and it is used in the untrusted code
for debugging too.

File size: 1.5 KB
Line 
1(**************************************************************************)
2(*       ___                                                              *)
3(*      ||M||                                                             *)
4(*      ||A||       A project by Andrea Asperti                           *)
5(*      ||T||                                                             *)
6(*      ||I||       Developers:                                           *)
7(*      ||T||         The HELM team.                                      *)
8(*      ||A||         http://helm.cs.unibo.it                             *)
9(*      \   /                                                             *)
10(*       \ /        This file is distributed under the terms of the       *)
11(*        v         GNU General Public License Version 2                  *)
12(*                                                                        *)
13(**************************************************************************)
14
15include "Clight/Clight_abstract.ma".
16include "Clight/Cexec.ma".
17include "common/Measurable.ma".
18
19definition Clight_stack_ident :
20  cl_genv →
21  ∀s:Clight_state.
22  match Clight_classify s with [ cl_call ⇒ True | _ ⇒ False ] →
23  ident ≝
24λge,s.
25match s return λs. match Clight_classify s with [ cl_call ⇒ True | _ ⇒ False ] → ident with
26[ Callstate id _ _ _ _ ⇒ λ_. id
27| _ ⇒ λH.⊥
28].
29@H
30qed.
31
32definition Clight_pcs : preclassified_system ≝
33mk_preclassified_system
34  clight_fullexec
35  (λ_.Clight_labelled)
36  (λ_.Clight_classify)
37  Clight_stack_ident.
Note: See TracBrowser for help on using the repository browser.