statement stringlengths 1 2.09k | proof stringlengths 0 22.1k | type stringclasses 25
values | symbolic_name stringlengths 1 49 | library stringclasses 14
values | filename stringclasses 212
values | imports listlengths 0 63 | deps listlengths 0 64 | docstring stringlengths 0 1.82k | source_url stringclasses 1
value | commit stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
eval_static_addressing_32 (addr: addressing) (vl: list aval): aval | :=
match addr, vl with
| Aindexed n, v1::nil => add v1 (I (Int.repr n))
| Aindexed2 n, v1::v2::nil => add (add v1 v2) (I (Int.repr n))
| Ascaled sc ofs, v1::nil => add (mul v1 (I (Int.repr sc))) (I (Int.repr ofs))
| Aindexed2scaled sc ofs, v1::v2::nil => add v1 (add (mul v2 (I (Int.repr sc))) (I (Int.repr ofs... | Definition | eval_static_addressing_32 | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"add",
"addressing",
"aval",
"mul",
"repr"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_addressing_64 (addr: addressing) (vl: list aval): aval | :=
match addr, vl with
| Aindexed n, v1::nil => addl v1 (L (Int64.repr n))
| Aindexed2 n, v1::v2::nil => addl (addl v1 v2) (L (Int64.repr n))
| Ascaled sc ofs, v1::nil => addl (mull v1 (L (Int64.repr sc))) (L (Int64.repr ofs))
| Aindexed2scaled sc ofs, v1::v2::nil => addl v1 (addl (mull v2 (L (Int64.repr sc))... | Definition | eval_static_addressing_64 | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"addl",
"addressing",
"aval",
"mull",
"repr"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_addressing (addr: addressing) (vl: list aval): aval | :=
if Archi.ptr64
then eval_static_addressing_64 addr vl
else eval_static_addressing_32 addr vl. | Definition | eval_static_addressing | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"addressing",
"aval",
"eval_static_addressing_32",
"eval_static_addressing_64",
"ptr64"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_operation (op: operation) (vl: list aval): aval | :=
match op, vl with
| Omove, v1::nil => v1
| Ointconst n, nil => I n
| Olongconst n, nil => L n
| Ofloatconst n, nil => if propagate_float_constants tt then F n else ntop
| Osingleconst n, nil => if propagate_float_constants tt then FS n else ntop
| Oindirectsymbol id, nil => Ifptr (Gl id Ptrofs.zero)
... | Definition | eval_static_operation | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"absf",
"absfs",
"addf",
"addfs",
"addl",
"and",
"andl",
"aval",
"binop_float",
"divf",
"divfs",
"divls",
"divlu",
"divs",
"divu",
"eval_static_addressing_32",
"eval_static_addressing_64",
"eval_static_condition",
"float_max",
"float_min",
"floatofint",
"floatoflong",
"fl... | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_addressing_32_sound:
forall addr vargs vres aargs,
eval_addressing32 ge (Vptr sp Ptrofs.zero) addr vargs = Some vres ->
list_forall2 (vmatch bc) vargs aargs ->
vmatch bc vres (eval_static_addressing_32 addr aargs). | Proof.
unfold eval_addressing32, eval_static_addressing_32; intros;
destruct addr; InvHyps; eauto with va.
rewrite Ptrofs.add_zero_l; eauto with va.
Qed. | Theorem | eval_static_addressing_32_sound | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"InvHyps",
"add_zero_l",
"eval_addressing32",
"eval_static_addressing_32",
"ge",
"list_forall2",
"vmatch",
"zero"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_addressing_64_sound:
forall addr vargs vres aargs,
eval_addressing64 ge (Vptr sp Ptrofs.zero) addr vargs = Some vres ->
list_forall2 (vmatch bc) vargs aargs ->
vmatch bc vres (eval_static_addressing_64 addr aargs). | Proof.
unfold eval_addressing64, eval_static_addressing_64; intros;
destruct addr; InvHyps; eauto with va.
rewrite Ptrofs.add_zero_l; eauto with va.
Qed. | Theorem | eval_static_addressing_64_sound | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"InvHyps",
"add_zero_l",
"eval_addressing64",
"eval_static_addressing_64",
"ge",
"list_forall2",
"vmatch",
"zero"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_addressing_sound:
forall addr vargs vres aargs,
eval_addressing ge (Vptr sp Ptrofs.zero) addr vargs = Some vres ->
list_forall2 (vmatch bc) vargs aargs ->
vmatch bc vres (eval_static_addressing addr aargs). | Proof.
unfold eval_addressing, eval_static_addressing; intros.
destruct Archi.ptr64; eauto using eval_static_addressing_32_sound, eval_static_addressing_64_sound.
Qed. | Theorem | eval_static_addressing_sound | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"eval_addressing",
"eval_static_addressing",
"eval_static_addressing_32_sound",
"eval_static_addressing_64_sound",
"ge",
"list_forall2",
"ptr64",
"vmatch",
"zero"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
eval_static_operation_sound:
forall op vargs m vres aargs,
eval_operation ge (Vptr sp Ptrofs.zero) op vargs m = Some vres ->
list_forall2 (vmatch bc) vargs aargs ->
vmatch bc vres (eval_static_operation op aargs). | Proof.
unfold eval_operation, eval_static_operation; intros;
destruct op; InvHyps; eauto with va.
destruct (propagate_float_constants tt); constructor.
destruct (propagate_float_constants tt); constructor.
eapply eval_static_addressing_32_sound; eauto.
eapply eval_static_addressing_64_sound; eauto.
apply ... | Theorem | eval_static_operation_sound | x86 | x86/ValueAOp.v | [
"Coqlib",
"Compopts",
"AST",
"Integers",
"Floats",
"Values",
"Memory",
"Globalenvs",
"Op",
"RTL",
"ValueDomain"
] | [
"InvHyps",
"binop_float_sound",
"eval_operation",
"eval_static_addressing_32_sound",
"eval_static_addressing_64_sound",
"eval_static_condition_sound",
"eval_static_operation",
"ge",
"list_forall2",
"of_optbool_sound",
"propagate_float_constants",
"select_sound",
"vmatch",
"zero"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
align_int64 | := 4%Z. | Definition | align_int64 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
align_float64 | := 4%Z. | Definition | align_float64 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
splitlong_ptr32: splitlong = true -> ptr64 = false. | Proof.
unfold splitlong. destruct ptr64; simpl; congruence.
Qed. | Lemma | splitlong_ptr32 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [
"ptr64",
"splitlong"
] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
default_nan_64 | := (true, iter_nat 51 _ xO xH). | Definition | default_nan_64 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
default_nan_32 | := (true, iter_nat 22 _ xO xH). | Definition | default_nan_32 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [] | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 | |
win64: bool. | Parameter | win64 | x86_32 | x86_32/Archi.v | [
"Coq",
"List",
"ZArith",
"Flocq",
"Binary",
"Bits"
] | [] | Which ABI to use. | https://github.com/AbsInt/CompCert | 0ef26dad76446c803da02d7368eb4f9d074c1401 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.