--- layout: fc_discuss_archives title: Message 6 from Frama-C-discuss on November 2012 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] how to set option "-slevel" or "-context-width" by using API function[Not set in command line]



Attached to this reply is an example of small plugin that sets the slevel
option to 32 and runs value analysis.
This uses what Anne explained.



On Sat, Nov 3, 2012 at 4:15 PM, Ben <abiao.yang at gmail.com> wrote:

> Dear Anne,****
>
> ** **
>
> Thank you for timely replying me.****
>
> I tried that function you provide.****
>
> ** **
>
> **1.       ** I use the that code to set option ?-context-width?:****
>
> Dynamic.Parameter.Int.set ?-context-width? 5; ****
>
> ** **
>
> **2.       ** I print out that option:****
>
> let cwidth = Parameter.get "-context-width" in****
>
> let cw_str = Parameter.get_value cwidth in****
>
> Format.printf " %s " cw_str;****
>
> ** **
>
> It seems that option did not changed either.****
>
> ** **
>
> If possible, I hope you can help me on Monday.****
>
> Thank you in advance.****
>
> ** **
>
> Ben****
>
> 2012-11-03****
>
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss
>



-- 
Richard Bonichon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121103/b09bc3b9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myplugin.tgz
Type: application/x-gzip
Size: 722 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121103/b09bc3b9/attachment-0001.bin>