3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 04:01:22 +00:00

make max_bv_sharing a simplifier

This commit is contained in:
Nikolaj Bjorner 2022-11-25 11:38:41 +07:00
parent db74e23de1
commit 5af6e1a046
5 changed files with 68 additions and 74 deletions

View file

@ -0,0 +1,25 @@
/*++
Copyright (c) 2022 Microsoft Corporation
Module Name:
max_bv_sharing.h
Abstract:
Rewriter for "maximing" the number of shared terms.
The idea is to rewrite AC terms to maximize sharing.
This rewriter is particularly useful for reducing
the number of Adders and Multipliers before "bit-blasting".
Author:
Leonardo de Moura (leonardo) 2011-12-29.
--*/
#pragma once
#include "ast/simplifiers/dependent_expr_state.h"
dependent_expr_simplifier * mk_max_bv_sharing(ast_manager & m, params_ref const & p, dependent_expr_state& fmls);