Library mcertikos.mm.ALOpGenLinkSource

Require Import liblayers.compat.CompatLayers.
Require Import liblayers.compat.CompatClightSem.
Require Import LAsmModuleSemDef.
Require Import CompCertiKOS.
Require Import GlobIdent.
Require Import CDataTypes.
Require Import CompCertiKOSproof.
Require Import RealParams.
Require Import I64Layer.

Require Import MALInitCSource.
Require Import MALInit.

Section WITHCOMPCERTIKOS.

  Context `{compcertikos_prf: CompCertiKOS}.

  Context `{real_params_prf : RealParams}.
  Context `{multi_oracle_prop: MultiOracleProp}.

  Definition MALOp_impl: res LAsm.module :=
    M_mem_init <- CompCertiKOS.transf_module (mem_init f_mem_init);
    M <- ret (M_mem_init ) ;
    _ <- eassert nil (LayerOK (M (malinit L64) malinit L64));
    
watch out parentheses here:
    ret (
        
group primitives according to the global variables that they use
        M
for L64 and other passthrough primitives
      ).

End WITHCOMPCERTIKOS.