3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +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

44
lib/polynomial_cache.h Normal file
View file

@ -0,0 +1,44 @@
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
polynomial_cache.h
Abstract:
"Hash-consing" for polynomials
Author:
Leonardo (leonardo) 2012-01-07
Notes:
--*/
#ifndef _POLYNOMIAL_CACHE_H_
#define _POLYNOMIAL_CACHE_H_
#include"polynomial.h"
namespace polynomial {
/**
\brief Functor for creating unique polynomials and caching results of operations
*/
class cache {
struct imp;
imp * m_imp;
public:
cache(manager & m);
~cache();
manager & m() const;
manager & pm() const { return m(); }
polynomial * mk_unique(polynomial * p);
void psc_chain(polynomial const * p, polynomial const * q, var x, polynomial_ref_vector & S);
void factor(polynomial const * p, polynomial_ref_vector & distinct_factors);
void reset();
};
};
#endif