Last change
on this file since 3195 was
2802,
checked in by sacerdot, 8 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 | |
---|
15 | include "Clight/Clight_abstract.ma". |
---|
16 | include "Clight/Cexec.ma". |
---|
17 | include "common/Measurable.ma". |
---|
18 | |
---|
19 | definition 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. |
---|
25 | match s return λs. match Clight_classify s with [ cl_call ⇒ True | _ ⇒ False ] → ident with |
---|
26 | [ Callstate id _ _ _ _ ⇒ λ_. id |
---|
27 | | _ ⇒ λH.⊥ |
---|
28 | ]. |
---|
29 | @H |
---|
30 | qed. |
---|
31 | |
---|
32 | definition Clight_pcs : preclassified_system ≝ |
---|
33 | mk_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.