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

Z3 sources

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-02 11:35:25 -07:00
parent 3f9edad676
commit e9eab22e5c
1186 changed files with 381859 additions and 0 deletions

39
lib/cost_parser.h Normal file
View file

@ -0,0 +1,39 @@
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
cost_parser.h
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2008-06-14.
Revision History:
--*/
#ifndef _COST_PARSER_H_
#define _COST_PARSER_H_
#include"simple_parser.h"
#include"arith_decl_plugin.h"
class cost_parser : public simple_parser {
arith_util m_util;
var_ref_vector m_vars;
public:
cost_parser(ast_manager & m);
virtual ~cost_parser() {}
virtual expr * parse_int(rational const & r);
virtual expr * parse_float(rational const & r);
unsigned add_var(symbol name);
unsigned add_var(char const * name) { return add_var(symbol(name)); }
void reset_vars();
};
#endif /* _COST_PARSER_H_ */