Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Plugin development: Modifying a contract



On Mon, 2012-02-13 at 09:23 +0100, Julien Signoles wrote:

> With Frama-C Nitrogen, Kernel_function.set_spec is what you need.

Are function contracts -- in contrast to assertions -- not queued?

Also, with respect to what Virgile wrote, I guess I must apply set_spec
to the new kf of the copy visitor.

As set_spec expects a function of type fundec -> fundec, I may write a
function that constructs a fundec by copying some fields and replacing
others. May I assume that spec_behavior is either empty or contains at
least the default behavior?
-- 
Best regards,
Boris