10
NEHA PRAMANIK ID- 110509005 MADHUMANTI DEY - 110509022 SWETA SHARMA ID- 110509042

Frama c

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Frama c

NEHA PRAMANIK ID-110509005MADHUMANTI DEY -110509022SWETA SHARMA ID-110509042

Page 2: Frama c

INTRODUCTION

• Platform dedicated to the static analysis of C source code .

• Can extract semantic information from C code.• It works by collaborating with various plug-ins.

Page 3: Frama c

FRAMA-C PLUG-INS

Page 4: Frama c

PLUG-INS DEMO

• CALLGRAPH• METRICS COMPUTATION• IMPACT ANALYSIS

Page 5: Frama c

METRICS COMPUTATION

• Defined and Undefined functions• Number of calls to each functions• Potential entry points• Number of LOC• Number of conditionals , assignments , loops ,

calls , gotos , pointer access.

Page 6: Frama c

ADVANTAGES OF METRICS COMPUTATION

• Helping to measure how different the analyzer will be• Helping to identify whether some file is

missing• Helping to identify which functions have to be stubbed or specified

Page 7: Frama c

• SEMANTIC CONSTANT FOLDING• SLICING – Automatic simplification of program(s) based on user-

selected criterions.– Removes the instructions that do not contribute to user-

selected criteria .• SPARECODE– Helps in removing unused code in the program.

• VARIABLE OCCURENCES– Identify the location where the variable is used.

Page 8: Frama c

• VALUE ANALYSIS• FROM ANALYSIS• INOUT• PROGRAM DEPENDENCY GRAPH• SYNTACTIC CALL GRAPHS

– Indicate the callers of each function .– helps to identify entry points of the analyzed code– helps to discover services provided by an application– Helps in grasping the code architecture

• SEMANTIC CALL GRAPHS – Same as systactic call graphs but using the program semantics

• USERS– Used to compute functions called by the functions of a program

Page 9: Frama c

REFERENCES

• http://www.erts2012.org/Site/0P2RUC89/5C-3.pdf• http://graphviz.org/Documentation/dotguide.pdf• http://www.divms.uiowa.edu/~pgaroche/181/Not

es/10-Frama-c.pdf• http://frama-c.com/download/frama-c-aorai-man

ual.pdf• http://frama-c.com/download/frama-c-value-analy

sis.pdf• http://www.divms.uiowa.edu/~pgaroche/181/Not

es/10-Frama-c.pdf• http://frama-c.com/download/frama-c-metrics-ma

nual.pdf• http://sefm2012.city.academic.gr/other/presentati

ons/SEFM/session4/Yakobowski.pdf• http://frama-c.com/download/frama-c-user-manu

al.pdf

Page 10: Frama c

THANK YOU