SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
variables.cpp
Go to the documentation of this file.
1 #include "variables.h"
2 
3 namespace smtrat::analyzer {
4 
6  carl::carlVariables vars;
7  carl::variables(f,vars);
8 
9  stats.add("num_variables", vars.size());
10  stats.add("num_variables_boolean", vars.boolean().size());
11  stats.add("num_variables_theory", vars.integer().size() + vars.real().size() + vars.bitvector().size() + vars.uninterpreted().size());
12  stats.add("num_variables_arithmetic_real", vars.real().size());
13  stats.add("num_variables_arithmetic_int", vars.integer().size());
14  stats.add("num_variables_arithmetic", vars.integer().size() + vars.real().size());
15  stats.add("num_variables_bitvector", vars.bitvector().size());
16  stats.add("num_variables_uninterpreted", vars.uninterpreted().size());
17 }
18 
19 }
void analyze_variables(const FormulaT &f, AnalyzerStatistics &stats)
Definition: variables.cpp:5
std::vector< carl::Variable > vars(const std::pair< QuantifierType, std::vector< carl::Variable >> &p)
Definition: QEQuery.h:43
carl::Formula< Poly > FormulaT
Definition: types.h:37
void add(const std::string &key, const T &value)
Definition: statistics.h:10