mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
/*++
|
|
Copyright (c) 2012 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
reg_decl_plugins
|
|
|
|
Abstract:
|
|
|
|
Goodie for installing all available declarations
|
|
plugins in an ast_manager
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2012-10-24.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#include"ast.h"
|
|
#include"arith_decl_plugin.h"
|
|
#include"array_decl_plugin.h"
|
|
#include"bv_decl_plugin.h"
|
|
#include"datatype_decl_plugin.h"
|
|
#include"dl_decl_plugin.h"
|
|
#include"seq_decl_plugin.h"
|
|
#include"float_decl_plugin.h"
|
|
|
|
void reg_decl_plugins(ast_manager & m) {
|
|
if (!m.get_plugin(m.get_family_id(symbol("arith")))) {
|
|
m.register_plugin(symbol("arith"), alloc(arith_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("bv")))) {
|
|
m.register_plugin(symbol("bv"), alloc(bv_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("array")))) {
|
|
m.register_plugin(symbol("array"), alloc(array_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("datatype")))) {
|
|
m.register_plugin(symbol("datatype"), alloc(datatype_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("datalog_relation")))) {
|
|
m.register_plugin(symbol("datalog_relation"), alloc(datalog::dl_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("seq")))) {
|
|
m.register_plugin(symbol("seq"), alloc(seq_decl_plugin));
|
|
}
|
|
if (!m.get_plugin(m.get_family_id(symbol("float")))) {
|
|
m.register_plugin(symbol("float"), alloc(float_decl_plugin));
|
|
}
|
|
}
|