Library mcertikos.proc.ThreadSchedGenLink
Require Import LinkTemplate.
Require Import PThreadSched.
Require Import ThreadSchedGen.
Require Import ThreadSchedGenLinkSource.
Require Import ThreadSchedGenAsm.
Require Import PCVOp.
Require Import PCVOpCSource.
Require Import PCVOpCode.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS} `{real_params_prf: RealParams}.
Context `{multi_oracle_prop: MultiOracleProp}.
Lemma init_correct:
init_correct_type PThreadSched_module pcvop pthreadsched.
Proof.
init_correct.
Qed.
Lemma link_correct_aux:
link_correct_aux_type PThreadSched_module pcvop pthreadsched.
Proof.
link_correct_aux.
- link_cfunction thread_spawn_spec_ref PCURIDCODE.thread_spawn_code_correct.
- link_cfunction thread_wakeup_spec_ref PCURIDCODE.thread_wakeup_code_correct.
- link_cfunction sched_init_spec_ref PCURIDCODE.sched_init_code_correct.
- link_cfunction thread_poll_pending_spec_ref PCURIDCODE.thread_poll_pending_code_correct.
- link_asmfunction thread_sched_spec_ref thread_sched_code_correct.
- apply passthrough_correct.
Qed.
Theorem cl_backward_simulation:
cl_backward_simulation_type PThreadSched_module pcvop pthreadsched.
Proof.
cl_backward_simulation init_correct link_correct_aux.
Qed.
Theorem make_program_exists:
make_program_exist_type PThreadSched_module pcvop pthreadsched.
Proof.
make_program_exists link_correct_aux.
Qed.
End WITHCOMPCERTIKOS.
Require Import PThreadSched.
Require Import ThreadSchedGen.
Require Import ThreadSchedGenLinkSource.
Require Import ThreadSchedGenAsm.
Require Import PCVOp.
Require Import PCVOpCSource.
Require Import PCVOpCode.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS} `{real_params_prf: RealParams}.
Context `{multi_oracle_prop: MultiOracleProp}.
Lemma init_correct:
init_correct_type PThreadSched_module pcvop pthreadsched.
Proof.
init_correct.
Qed.
Lemma link_correct_aux:
link_correct_aux_type PThreadSched_module pcvop pthreadsched.
Proof.
link_correct_aux.
- link_cfunction thread_spawn_spec_ref PCURIDCODE.thread_spawn_code_correct.
- link_cfunction thread_wakeup_spec_ref PCURIDCODE.thread_wakeup_code_correct.
- link_cfunction sched_init_spec_ref PCURIDCODE.sched_init_code_correct.
- link_cfunction thread_poll_pending_spec_ref PCURIDCODE.thread_poll_pending_code_correct.
- link_asmfunction thread_sched_spec_ref thread_sched_code_correct.
- apply passthrough_correct.
Qed.
Theorem cl_backward_simulation:
cl_backward_simulation_type PThreadSched_module pcvop pthreadsched.
Proof.
cl_backward_simulation init_correct link_correct_aux.
Qed.
Theorem make_program_exists:
make_program_exist_type PThreadSched_module pcvop pthreadsched.
Proof.
make_program_exists link_correct_aux.
Qed.
End WITHCOMPCERTIKOS.