-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathgoto_diff_main.cpp
49 lines (37 loc) · 1.07 KB
/
goto_diff_main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*******************************************************************\
Module: GOTO-DIFF Main Module
Author: Peter Schrammel
\*******************************************************************/
/// \file
/// GOTO-DIFF Main Module
#include "goto_diff_parse_options.h"
#ifdef _MSC_VER
# include <util/unicode.h>
#endif
#ifdef IREP_HASH_STATS
#include <iostream>
#endif
#ifdef IREP_HASH_STATS
extern unsigned long long irep_hash_cnt;
extern unsigned long long irep_cmp_cnt;
extern unsigned long long irep_cmp_ne_cnt;
#endif
#ifdef _MSC_VER
int wmain(int argc, const wchar_t **argv_wide)
{
auto vec=narrow_argv(argc, argv_wide);
auto narrow=to_c_str_array(std::begin(vec), std::end(vec));
auto argv=narrow.data();
#else
int main(int argc, const char **argv)
{
#endif
goto_diff_parse_optionst parse_options(argc, argv);
int res=parse_options.main();
#ifdef IREP_HASH_STATS
std::cout << "IREP_HASH_CNT=" << irep_hash_cnt << '\n';
std::cout << "IREP_CMP_CNT=" << irep_cmp_cnt << '\n';
std::cout << "IREP_CMP_NE_CNT=" << irep_cmp_ne_cnt << '\n';
#endif
return res;
}