3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 19:24:44 +00:00
z3/src/smt/uses_theory.h
Nikolaj Bjorner d0e20e44ff booyah
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-07-04 15:56:30 -07:00

35 lines
643 B
C

/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
uses_theory.h
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2008-10-21.
Revision History:
--*/
#pragma once
#include "ast/ast.h"
/**
\brief Return true if the given expression contains a symbol of the given theory.
*/
bool uses_theory(expr * n, family_id fid);
/**
\brief Return true if the given expression contains a symbol of the given theory.
Only the expressions not marked as visited are checked. The set visited is updated
with the new checked expressions.
*/
bool uses_theory(expr * n, family_id fid, expr_mark & visited);