--- layout: fc_discuss_archives title: Message 45 from Frama-C-discuss on February 2012 ---
Hello, On 02/10/2012 09:05 AM, Boris Hollas wrote: > I want to modify the contract of a function, ie to insert pre- or > postconditions. I've seen that there are functions to build these in > Ast_info, but how are they inserted into the AST? With Frama-C Nitrogen, Kernel_function.set_spec is what you need. Note that the way of handling annotations will fully changed in the next major release. Hopefully it will be simple and more homogeneous for the different kind of annotations (function contracts, global annotations and code annotations). Hope this helps, Julien