initial
[prop.git] / app / willard / willard.cc
blob2ce08a8af7ce71b1e768156ed1bd52233eb1317f
1 ///////////////////////////////////////////////////////////////////////////////
2 // This file is generated automatically using Prop (version 2.3.5),
3 // last updated on Jun 18, 1997.
4 // The original source file is "willard.pcc".
5 ///////////////////////////////////////////////////////////////////////////////
7 #define PROP_REWRITING_USED
8 #define PROP_STRCMP_USED
9 #define PROP_PARSER_USED
10 #define PROP_QUARK_USED
11 #define PROP_TUPLE2_USED
12 #include <propdefs.h>
13 #line 1 "willard.pcc"
14 #include <iostream.h>
15 #include <AD/pretty/postream.h>
16 #include "willard-ast.h"
17 #include "parser.h"
18 #include "willard.h"
20 Willard::Willard() {}
21 Willard::~Willard() {}
23 int main()
24 { QueryParser P;
26 Exp q = P.read();
28 PrettyOStream S;
30 Willard W;
32 W.set_log(cout);
34 S << "Input:" << newline << q << newline;
36 q = W.decompose(q);
38 S << "Output:" << newline << q << newline;
40 cerr << "Cons = " << ConsCounter::count << '\n';
41 return 0;
43 #line 30 "willard.pcc"
45 ------------------------------- Statistics -------------------------------
46 Merge matching rules = yes
47 Number of DFA nodes merged = 0
48 Number of ifs generated = 0
49 Number of switches generated = 0
50 Number of labels = 0
51 Number of gotos = 0
52 Adaptive matching = disabled
53 Fast string matching = disabled
54 Inline downcasts = disabled
55 --------------------------------------------------------------------------