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] about slicing
- Subject: [Frama-c-discuss] about slicing
- From: benjamin.monate at trust-in-soft.com (Benjamin Monate)
- Date: Tue, 13 Jan 2015 07:58:17 +0000
- In-reply-to: <CAFZNyL7Q7phdAF9YCE_wFig36PCBEDX1-OqSoz2g=Mb6wD6npA@mail.gmail.com>
- References: <CAFZNyL7iNh+u1b-vG4Z3h_HxSE+M5s4c8oErQB=8J08+XhKLMA@mail.gmail.com> <54B3BCDF.1090808@cea.fr> <CAFZNyL6m3MKPWWF2mzq4VP_dw9OBEU9-SsypYDJWovJLP06ocg@mail.gmail.com> <0ccc0f3cba2d4bf28a6b2b1d52846918@S1688.EX1688.lan> <CAFZNyL7Q7phdAF9YCE_wFig36PCBEDX1-OqSoz2g=Mb6wD6npA@mail.gmail.com>
Hi, Just to show you an example, I have done this on your code using some of the tools bundled with Frama-C within its TrustInSoft Analyzer distribution: What is TrustInSoft Analyzer? it is a C standard library? TrustInSoft Analyzer is a distribution of Frama-C extended with proprietary plugins and tools that increase the productivity and lower the cost of the industrial deployments. It comes with a full set of professional support services. You may ask for more details at contact at trust-in-soft.com<mailto:contact at trust-in-soft.com>. # First we generate the proper filesystem stubs: an existing in.pbm file with an arbitrary content and an empty out.pbm file monate at TrustInSoft-III:~/BUGS/susan$ tis-mkfs -add-file in.pbm -nb-max-files 6 -generic out.pbm:1:0:0 What specific function is tis-mkfs? This is not a function : this is a command line tool : as explained above, ?it generates the proper filesystem stubs: an existing in.pbm file with an arbitrary content and an empty out.pbm file?. # Then we generate generate the calling environment: only two arguments : in.pbm followed by out.pbm monate at TrustInSoft-III:~/BUGS/susan$ tis-mk-main -f -- in.pbm out.pb Here the tis-mk-main add the call tis_main->main? Yes : it generates tis_main and and the call to the original main. # The we run your slicing command monate at TrustInSoft-III:~/BUGS/susan$ tis-analyzer -main tis_main -slice-calls put_image susan.c tis-main-dummy.c mkfs_filesystem.c /home/tis/share/tis/__tis_mkfs.c -then-on "Slicing export" tis-analyzer has the same function as frama-c? tis-analyzer is a superset of frama-c. And we obtain the attached slice.i file. You will probably not be able to analyze slice.i with the Open Source version of Frama-C as the sliced code relies on specific builtins to handle dynamic allocation. You mean I cannot compile the slice.i code since it depend on some internal library. I mean exactly what I have written above : you will not be able to analyze the source code with frama-c. Just read this code to understand what it does. Regards, Benjamin Monate TrustInSoft Founder&CTO -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150113/bd840d13/attachment.html>
- References:
- [Frama-c-discuss] about slicing
- From: Patrick.Baudin at cea.fr (BAUDIN Patrick)
- [Frama-c-discuss] about slicing
- From: huizhanyi at gmail.com (Huizhan Yi)
- [Frama-c-discuss] about slicing
- From: benjamin.monate at trust-in-soft.com (Benjamin Monate)
- [Frama-c-discuss] about slicing
- From: huizhanyi at gmail.com (Huizhan Yi)
- [Frama-c-discuss] about slicing
- Prev by Date: [Frama-c-discuss] Fwd: Re: [Why3-club] frama-c/wp
- Next by Date: [Frama-c-discuss] Dynamically allocated lists
- Previous by thread: [Frama-c-discuss] about slicing
- Next by thread: [Frama-c-discuss] Fwd: Re: [Why3-club] frama-c/wp
- Index(es):