cprover
|
Count effective lines of code. More...
#include "count_eloc.h"
#include <iostream>
#include <unordered_set>
#include <util/prefix.h>
#include <util/file_util.h>
#include <goto-programs/cfg.h>
Go to the source code of this file.
Typedefs | |
typedef std::unordered_set< irep_idt, irep_id_hash > | linest |
typedef std::unordered_map< irep_idt, linest, irep_id_hash > | filest |
typedef std::unordered_map< irep_idt, filest, irep_id_hash > | working_dirst |
Functions | |
static void | collect_eloc (const goto_functionst &goto_functions, working_dirst &dest) |
void | count_eloc (const goto_functionst &goto_functions) |
void | list_eloc (const goto_functionst &goto_functions) |
void | print_path_lengths (const goto_functionst &goto_functions) |
Count effective lines of code.
Definition in file count_eloc.cpp.
typedef std::unordered_map<irep_idt, linest, irep_id_hash> filest |
Definition at line 25 of file count_eloc.cpp.
typedef std::unordered_set<irep_idt, irep_id_hash> linest |
Definition at line 24 of file count_eloc.cpp.
typedef std::unordered_map<irep_idt, filest, irep_id_hash> working_dirst |
Definition at line 26 of file count_eloc.cpp.
|
static |
Definition at line 28 of file count_eloc.cpp.
References forall_goto_functions, and forall_goto_program_instructions.
Referenced by count_eloc(), and list_eloc().
void count_eloc | ( | const goto_functionst & | goto_functions | ) |
Definition at line 46 of file count_eloc.cpp.
References collect_eloc().
Referenced by goto_instrument_parse_optionst::doit().
void list_eloc | ( | const goto_functionst & | goto_functions | ) |
Definition at line 60 of file count_eloc.cpp.
References collect_eloc(), concat_dir_file(), and id2string().
Referenced by goto_instrument_parse_optionst::doit().
void print_path_lengths | ( | const goto_functionst & | goto_functions | ) |
Definition at line 77 of file count_eloc.cpp.
References goto_functions_templatet< bodyT >::entry_point(), forall_goto_functions, forall_goto_program_instructions, goto_functions_templatet< bodyT >::function_map, and goto_program_templatet< codeT, guardT >::instructions.
Referenced by goto_instrument_parse_optionst::doit().