Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Extraction and error reporting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Extraction and error reporting


chronological Thread 
  • 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



Archive powered by MhonArc 2.6.16.

Top of Page