Skip to content

interest for a built-in memset function

ID0000915: This issue was created automatically from Mantis Issue 915. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0000915 Frama-C Plug-in > Eva public 2011-08-05 2014-02-12
Reporter ddelmas Assigned To yakobowski Resolution fixed
Priority normal Severity feature Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Carbon-20110201 Target Version - Fixed in Version Frama-C Fluorine-20130401

Description :

The following command produces perfectly precise results on the attached example: frama-c frama-c-lib.c (frama-c -print-path)/libc.c -val -cpp-command 'gcc -C -E -I(frama-c -print-path)' -main F1

On the contrary, analysing -main F2 instead of F1 yields unprecise results, unless unrolling is used. It would be of great interest, both for precision and performance, to have a Frama-C built-in for the memset library function, at least in the frequent case where the abstract value of the second parameter is just the {0} singleton.

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information