Library mcertikos.proc.KContextNewGenLinkSource
Require Import liblayers.compat.CompatLayers.
Require Import liblayers.compat.CompatClightSem.
Require Import LAsmModuleSemDef.
Require Import CompCertiKOS.
Require Import GlobIdent.
Require Import CDataTypes.
Require Import PKContextCSource.
Require Import CompCertiKOSproof.
Require Import RealParams.
Require Import I64Layer.
Require Import PKContext.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS}.
Context `{oracle_prop: MultiOracleProp}.
Context `{real_params: RealParams}.
Definition PKContextNew_impl: res LAsm.module :=
M_kctxt_new <- CompCertiKOS.transf_module (kctxt_new ↦ f_kctxt_new);
M <- ret (M_kctxt_new ⊕ ∅);
_ <- eassert nil (LayerOK (〚M 〛 (pkcontext ⊕ L64) ⊕ pkcontext ⊕ L64));
Require Import liblayers.compat.CompatClightSem.
Require Import LAsmModuleSemDef.
Require Import CompCertiKOS.
Require Import GlobIdent.
Require Import CDataTypes.
Require Import PKContextCSource.
Require Import CompCertiKOSproof.
Require Import RealParams.
Require Import I64Layer.
Require Import PKContext.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS}.
Context `{oracle_prop: MultiOracleProp}.
Context `{real_params: RealParams}.
Definition PKContextNew_impl: res LAsm.module :=
M_kctxt_new <- CompCertiKOS.transf_module (kctxt_new ↦ f_kctxt_new);
M <- ret (M_kctxt_new ⊕ ∅);
_ <- eassert nil (LayerOK (〚M 〛 (pkcontext ⊕ L64) ⊕ pkcontext ⊕ L64));
watch out parentheses here:
ret (
group primitives according to the global variables that they use
M
for L64 and other passthrough primitives