3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 20:18:18 +00:00

removing 'fat' from smt 1.0 parser

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-26 18:11:27 -07:00
parent f1b6d1c7f3
commit 566ed44033
2 changed files with 6 additions and 17 deletions

View file

@ -34,13 +34,11 @@ Revision History:
#include"warning.h" #include"warning.h"
#include"error_codes.h" #include"error_codes.h"
#include"pattern_validation.h" #include"pattern_validation.h"
#include"timeit.h"
#include"var_subst.h" #include"var_subst.h"
#include"well_sorted.h" #include"well_sorted.h"
#include"str_hashtable.h" #include"str_hashtable.h"
#include"front_end_params.h" #include"front_end_params.h"
#include"stopwatch.h" #include"stopwatch.h"
front_end_params& Z3_API Z3_get_parameters(Z3_context c);
class id_param_info { class id_param_info {
symbol m_string; symbol m_string;
@ -562,7 +560,6 @@ class smtparser : public parser {
bool m_ignore_user_patterns; bool m_ignore_user_patterns;
unsigned m_binding_level; // scope level for bound vars unsigned m_binding_level; // scope level for bound vars
benchmark m_benchmark; // currently parsed benchmark benchmark m_benchmark; // currently parsed benchmark
sort_ref_vector m_pinned_sorts;
typedef map<symbol, builtin_op, symbol_hash_proc, symbol_eq_proc> op_map; typedef map<symbol, builtin_op, symbol_hash_proc, symbol_eq_proc> op_map;
op_map m_builtin_ops; op_map m_builtin_ops;
@ -580,11 +577,8 @@ class smtparser : public parser {
symbol m_sorts; symbol m_sorts;
symbol m_funs; symbol m_funs;
symbol m_preds; symbol m_preds;
symbol m_definition;
symbol m_axioms; symbol m_axioms;
symbol m_notes; symbol m_notes;
symbol m_theory;
symbol m_language;
symbol m_array; symbol m_array;
symbol m_bang; symbol m_bang;
symbol m_underscore; symbol m_underscore;
@ -610,7 +604,6 @@ public:
m_ignore_user_patterns(ignore_user_patterns), m_ignore_user_patterns(ignore_user_patterns),
m_binding_level(0), m_binding_level(0),
m_benchmark(m_manager, symbol("")), m_benchmark(m_manager, symbol("")),
m_pinned_sorts(m),
m_let("let"), m_let("let"),
m_flet("flet"), m_flet("flet"),
m_forall("forall"), m_forall("forall"),
@ -623,11 +616,8 @@ public:
m_sorts("sorts"), m_sorts("sorts"),
m_funs("funs"), m_funs("funs"),
m_preds("preds"), m_preds("preds"),
m_definition("definition"),
m_axioms("axioms"), m_axioms("axioms"),
m_notes("notes"), m_notes("notes"),
m_theory("theory"),
m_language("language"),
m_array("array"), m_array("array"),
m_bang("!"), m_bang("!"),
m_underscore("_"), m_underscore("_"),
@ -661,7 +651,6 @@ public:
} }
bool parse_file(char const * filename) { bool parse_file(char const * filename) {
timeit tt(get_verbosity_level() >= 100, "parsing file");
if (filename != 0) { if (filename != 0) {
std::ifstream stream(filename); std::ifstream stream(filename);
if (!stream) { if (!stream) {

View file

@ -19,11 +19,11 @@ Revision History:
#ifndef _SMT_PARSER_H_ #ifndef _SMT_PARSER_H_
#define _SMT_PARSER_H_ #define _SMT_PARSER_H_
#include<iostream>
#include"ast.h" #include"ast.h"
#include"vector.h" #include"vector.h"
#include"smtlib.h" #include"smtlib.h"
#include"z3.h" #include"z3.h"
#include <iostream>
namespace smtlib { namespace smtlib {
class parser { class parser {