coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Francesco Zappa Nardelli <francesco.zappa_nardelli AT inria.fr>
- To: Alexandre Pilkiewicz <alexandre.pilkiewicz AT polytechnique.org>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Extraction and error reporting
- Date: Sat, 7 May 2011 08:12:27 +0200
Hi Alexandre
> But the extraction removes this call
As far as I know, no option controls this optimisation performed by
extraction.
I ended up by passing a value the rest of the code depends on, and making the
external function behave like the identity on that argument (and having an
axiom about this fact). Something like:
Parameter dump_fundef :
fundef -> fundef.
instead of fundef -> unit, and
Definition rtl_dump (b: bool) (i:ident) (fd:fundef) : fundef :=
dump_fundef fd
A bit disgusting, but at least extraction stops removing the calls to
rtl_dump. Maybe somebody has a better workaround.
Best
-francesco
- [Coq-Club] Extraction and error reporting, Alexandre Pilkiewicz
- Re: [Coq-Club] Extraction and error reporting, Francesco Zappa Nardelli
- Re: [Coq-Club] Extraction and error reporting,
AUGER Cedric
- [Coq-Club] Re: Extraction and error reporting, Alexandre Pilkiewicz
- Re: [Coq-Club] Extraction and error reporting, AUGER Cedric
Archive powered by MhonArc 2.6.16.