| Run: | 45029153823 |
| Check: | PR #244989: modernize-macro-to-enum |
| Status: | ok |
| Time: | 4m08s |
| Warnings: | 150 (TP 150, FP 0, unclassified 0) |
| Source: | Z3Prover/z3/blob/145c0c51570a357cc558ce898ce77573ba9d4fbf |
| Verdict | Location | Message |
|---|---|---|
| TP | src/ast/euf/euf_mam.cpp:214:1 | replace macro with enum |
| TP | src/ast/euf/euf_mam.cpp:214:9 | macro 'NULL_TAG' defines an integral constant; prefer an enum instead |
| TP | src/ast/euf/euf_mam.cpp:215:9 | macro 'GROUND_TERM_TAG' defines an integral constant; prefer an enum instead |
| TP | src/ast/euf/euf_mam.cpp:216:9 | macro 'VAR_TAG' defines an integral constant; prefer an enum instead |
| TP | src/ast/euf/euf_mam.cpp:217:9 | macro 'NESTED_VAR_TAG' defines an integral constant; prefer an enum instead |
| TP | src/ast/format.h:115:1 | replace macro with enum |
| TP | src/ast/format.h:115:9 | macro 'FORMAT_DEFAULT_INDENT' defines an integral constant; prefer an enum instead |
| TP | src/math/polynomial/polynomial.cpp:511:1 | replace macro with enum |
| TP | src/math/polynomial/polynomial.cpp:511:9 | macro 'TMP_INITIAL_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/math/polynomial/polynomial_primes.h:22:1 | replace macro with enum |
| TP | src/math/polynomial/polynomial_primes.h:22:9 | macro 'NUM_SMALL_PRIMES' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_convex_closure.cpp:251:1 | replace macro with enum |
| TP | src/muz/spacer/spacer_convex_closure.cpp:251:9 | macro 'MAX_DIV_BOUND' defines an integral constant; prefer an enum instead |
| TP | src/nlsat/nlsat_types.h:32:1 | replace macro with enum |
| TP | src/nlsat/nlsat_types.h:32:9 | macro 'NLSAT_VB_LVL' defines an integral constant; prefer an enum instead |
| TP | src/sat/sat_types.h:38:1 | replace macro with enum |
| TP | src/sat/sat_types.h:38:9 | macro 'SAT_VB_LVL' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:190:1 | replace macro with enum |
| TP | src/smt/mam.cpp:190:9 | macro 'NULL_TAG' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:191:9 | macro 'GROUND_TERM_TAG' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:192:9 | macro 'VAR_TAG' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:193:9 | macro 'NESTED_VAR_TAG' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_context.cpp:1304:1 | replace macro with enum |
| TP | src/smt/smt_context.cpp:1304:9 | macro 'SMALL_NUM_PARENTS' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_internalizer.cpp:51:1 | replace macro with enum |
| TP | src/smt/smt_internalizer.cpp:51:9 | macro 'White' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_internalizer.cpp:52:9 | macro 'Grey' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_internalizer.cpp:53:9 | macro 'Black' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_internalizer.cpp:250:1 | replace macro with enum |
| TP | src/smt/smt_internalizer.cpp:250:9 | macro 'DEEP_EXPR_THRESHOLD' defines an integral constant; prefer an enum instead |
| TP | src/smt/smt_internalizer.cpp:375:1 | replace macro with enum |
| TP | src/smt/smt_internalizer.cpp:375:9 | macro 'DISTINCT_SZ_THRESHOLD' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_aux.h:2048:1 | replace macro with enum |
| TP | src/smt/theory_arith_aux.h:2048:9 | macro 'RANGE' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1651:1 | replace macro with enum |
| TP | src/smt/theory_arith_nl.h:1651:9 | macro 'FIXED' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1652:9 | macro 'QUOTED_FIXED' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1653:9 | macro 'BOUNDED' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1654:9 | macro 'QUOTED_BOUNDED' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1655:9 | macro 'NOT_FREE' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1656:9 | macro 'QUOTED_NOT_FREE' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1657:9 | macro 'FREE' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1658:9 | macro 'QUOTED_FREE' defines an integral constant; prefer an enum instead |
| TP | src/smt/theory_arith_nl.h:1659:9 | macro 'MAX_DEFAULT_WEIGHT' defines an integral constant; prefer an enum instead |
| Verdict | Location | Message |
|---|---|---|
| - | src/ast/rewriter/bit_blaster/bit_blaster_tpl_def.h:480:1 | replace macro with enum |
| - | src/ast/rewriter/bit_blaster/bit_blaster_tpl_def.h:480:9 | macro 'SREM' defines an integral constant; prefer an enum instead |
| - | src/ast/rewriter/bit_blaster/bit_blaster_tpl_def.h:481:9 | macro 'SMOD' defines an integral constant; prefer an enum instead |
| Verdict | Location | Message |
|---|---|---|
| TP | build/src/util/z3_version.h:2:1 | replace macro with enum |
| TP | build/src/util/z3_version.h:2:9 | macro 'Z3_MAJOR_VERSION' defines an integral constant; prefer an enum instead |
| TP | build/src/util/z3_version.h:3:9 | macro 'Z3_MINOR_VERSION' defines an integral constant; prefer an enum instead |
| TP | build/src/util/z3_version.h:4:9 | macro 'Z3_BUILD_NUMBER' defines an integral constant; prefer an enum instead |
| TP | build/src/util/z3_version.h:5:9 | macro 'Z3_REVISION_NUMBER' defines an integral constant; prefer an enum instead |
| TP | src/ast/act_cache.cpp:22:1 | replace macro with enum |
| TP | src/ast/act_cache.cpp:22:9 | macro 'MIN_MAX_UNUSED' defines an integral constant; prefer an enum instead |
| TP | src/ast/act_cache.cpp:23:9 | macro 'INITIAL_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/ast/arith_decl_plugin.cpp:473:1 | replace macro with enum |
| TP | src/ast/arith_decl_plugin.cpp:473:9 | macro 'MAX_SMALL_NUM_TO_CACHE' defines an integral constant; prefer an enum instead |
| TP | src/ast/arith_decl_plugin.cpp:865:1 | replace macro with enum |
| TP | src/ast/arith_decl_plugin.cpp:865:9 | macro 'IS_INT_EXPR_DEPTH_LIMIT' defines an integral constant; prefer an enum instead |
| TP | src/ast/ast.h:746:1 | replace macro with enum |
| TP | src/ast/ast.h:746:9 | macro 'APP_DEPTH_NUM_BITS' defines an integral constant; prefer an enum instead |
| TP | src/ast/ast_smt2_pp.cpp:33:1 | replace macro with enum |
| TP | src/ast/ast_smt2_pp.cpp:33:9 | macro 'MAX_INDENT' defines an integral constant; prefer an enum instead |
| TP | src/ast/ast_smt2_pp.cpp:34:9 | macro 'SMALL_INDENT' defines an integral constant; prefer an enum instead |
| TP | src/ast/euf/euf_mam.cpp:49:1 | replace macro with enum |
| TP | src/ast/euf/euf_mam.cpp:49:9 | macro '_PROFILE_MAM_EXPENSIVE_FREQ' defines an integral constant; prefer an enum instead |
| TP | src/ast/euf/euf_mam.cpp:57:1 | replace macro with enum |
| TP | src/ast/euf/euf_mam.cpp:57:9 | macro '_PROFILE_PATH_TREE_THRESHOLD' defines an integral constant; prefer an enum instead |
| TP | src/ast/pattern/pattern_inference.cpp:477:1 | replace macro with enum |
| TP | src/ast/pattern/pattern_inference.cpp:477:9 | macro 'MAX_SPLITS' defines an integral constant; prefer an enum instead |
| TP | src/ast/rewriter/rewriter_types.h:49:1 | replace macro with enum |
| TP | src/ast/rewriter/rewriter_types.h:49:9 | macro 'RW_UNBOUNDED_DEPTH' defines an integral constant; prefer an enum instead |
| TP | src/math/interval/interval.h:83:1 | replace macro with enum |
| TP | src/math/interval/interval.h:83:9 | macro 'DEP_IN_LOWER1' defines an integral constant; prefer an enum instead |
| TP | src/math/interval/interval.h:84:9 | macro 'DEP_IN_UPPER1' defines an integral constant; prefer an enum instead |
| TP | src/math/interval/interval.h:85:9 | macro 'DEP_IN_LOWER2' defines an integral constant; prefer an enum instead |
| TP | src/math/interval/interval.h:86:9 | macro 'DEP_IN_UPPER2' defines an integral constant; prefer an enum instead |
| TP | src/math/interval/interval_def.h:27:1 | replace macro with enum |
| TP | src/math/interval/interval_def.h:27:9 | macro 'DEFAULT_PI_PRECISION' defines an integral constant; prefer an enum instead |
| TP | src/math/polynomial/sexpr2upolynomial.cpp:26:1 | replace macro with enum |
| TP | src/math/polynomial/sexpr2upolynomial.cpp:26:9 | macro 'MAX_POLYNOMIAL_DEPTH' defines an integral constant; prefer an enum instead |
| TP | src/math/polynomial/upolynomial.h:32:1 | replace macro with enum |
| TP | src/math/polynomial/upolynomial.h:32:9 | macro 'FACTOR_VERBOSE_LVL' defines an integral constant; prefer an enum instead |
| TP | src/model/model_macro_solver.cpp:301:1 | replace macro with enum |
| TP | src/model/model_macro_solver.cpp:301:9 | macro 'GREEDY_MAX_DEPTH' defines an integral constant; prefer an enum instead |
| TP | src/model/model_smt2_pp.cpp:55:1 | replace macro with enum |
| TP | src/model/model_smt2_pp.cpp:55:9 | macro 'TAB_SZ' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_cluster.cpp:34:1 | replace macro with enum |
| TP | src/muz/spacer/spacer_cluster.cpp:34:9 | macro 'MAX_CLUSTER_SIZE' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_cluster.cpp:35:9 | macro 'MAX_CLUSTERS' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_cluster.cpp:36:9 | macro 'GAS_INIT' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_cluster.h:28:1 | replace macro with enum |
| TP | src/muz/spacer/spacer_cluster.h:28:9 | macro 'GAS_POB_COEFF' defines an integral constant; prefer an enum instead |
| TP | src/muz/spacer/spacer_context.cpp:59:1 | replace macro with enum |
| TP | src/muz/spacer/spacer_context.cpp:59:9 | macro 'WEAKNESS_MAX' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:44:1 | replace macro with enum |
| TP | src/smt/mam.cpp:44:9 | macro '_PROFILE_MAM_EXPENSIVE_FREQ' defines an integral constant; prefer an enum instead |
| TP | src/smt/mam.cpp:52:1 | replace macro with enum |
| TP | src/smt/mam.cpp:52:9 | macro '_PROFILE_PATH_TREE_THRESHOLD' defines an integral constant; prefer an enum instead |
| TP | src/solver/combined_solver.cpp:28:1 | replace macro with enum |
| TP | src/solver/combined_solver.cpp:28:9 | macro 'PS_VB_LVL' defines an integral constant; prefer an enum instead |
| TP | src/tactic/smtlogics/qfbv_tactic.cpp:35:1 | replace macro with enum |
| TP | src/tactic/smtlogics/qfbv_tactic.cpp:35:9 | macro 'MEMLIMIT' defines an integral constant; prefer an enum instead |
| TP | src/tactic/smtlogics/qfidl_tactic.cpp:36:1 | replace macro with enum |
| TP | src/tactic/smtlogics/qfidl_tactic.cpp:36:9 | macro 'BIG_PROBLEM' defines an integral constant; prefer an enum instead |
| TP | src/tactic/smtlogics/qflia_tactic.cpp:99:1 | replace macro with enum |
| TP | src/tactic/smtlogics/qflia_tactic.cpp:99:9 | macro 'SMALL_SIZE' defines an integral constant; prefer an enum instead |
| TP | src/tactic/tactic.h:131:1 | replace macro with enum |
| TP | src/tactic/tactic.h:131:9 | macro 'TACTIC_VERBOSITY_LVL' defines an integral constant; prefer an enum instead |
| TP | src/test/heap.cpp:30:1 | replace macro with enum |
| TP | src/test/heap.cpp:30:9 | macro 'N' defines an integral constant; prefer an enum instead |
| TP | src/test/interval.cpp:201:1 | replace macro with enum |
| TP | src/test/interval.cpp:201:9 | macro 'BUFFER_SZ' defines an integral constant; prefer an enum instead |
| TP | src/test/interval.cpp:451:1 | replace macro with enum |
| TP | src/test/interval.cpp:451:9 | macro 'NUM_TESTS' defines an integral constant; prefer an enum instead |
| TP | src/test/interval.cpp:452:9 | macro 'SMALL_MAG' defines an integral constant; prefer an enum instead |
| TP | src/test/interval.cpp:453:9 | macro 'MID_MAG' defines an integral constant; prefer an enum instead |
| TP | src/test/mpz.cpp:322:1 | replace macro with enum |
| TP | src/test/mpz.cpp:322:9 | macro 'NUM_PRIMES' defines an integral constant; prefer an enum instead |
| TP | src/test/no_overflow.cpp:671:1 | replace macro with enum |
| TP | src/test/no_overflow.cpp:671:9 | macro 'BVSIZES' defines an integral constant; prefer an enum instead |
| TP | src/test/no_overflow.cpp:672:9 | macro 'TESTNUM' defines an integral constant; prefer an enum instead |
| TP | src/test/no_overflow.cpp:674:1 | replace macro with enum |
| TP | src/test/no_overflow.cpp:674:9 | macro 'EQUIV_BVSIZES' defines an integral constant; prefer an enum instead |
| TP | src/test/no_overflow.cpp:675:9 | macro 'EQUIV_TESTNUM' defines an integral constant; prefer an enum instead |
| TP | src/test/rational.cpp:385:1 | replace macro with enum |
| TP | src/test/rational.cpp:385:9 | macro 'NUM_RATIONALS' defines an integral constant; prefer an enum instead |
| TP | src/test/rational.cpp:386:9 | macro 'MAGNITUDE' defines an integral constant; prefer an enum instead |
| TP | src/test/rational.cpp:423:1 | replace macro with enum |
| TP | src/test/rational.cpp:423:9 | macro 'NUM_RATIONALS2' defines an integral constant; prefer an enum instead |
| TP | src/test/rational.cpp:424:9 | macro 'MAGNITUDE2' defines an integral constant; prefer an enum instead |
| TP | src/test/trigo.cpp:29:1 | replace macro with enum |
| TP | src/test/trigo.cpp:29:9 | macro 'PREC' defines an integral constant; prefer an enum instead |
| TP | src/util/bit_vector.cpp:23:1 | replace macro with enum |
| TP | src/util/bit_vector.cpp:23:9 | macro 'DEFAULT_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/util/bit_vector.h:27:1 | replace macro with enum |
| TP | src/util/bit_vector.h:27:9 | macro 'BV_DEFAULT_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/util/hashtable.h:30:1 | replace macro with enum |
| TP | src/util/hashtable.h:30:9 | macro 'DEFAULT_HASHTABLE_INITIAL_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/util/hashtable.h:31:9 | macro 'SMALL_TABLE_CAPACITY' defines an integral constant; prefer an enum instead |
| TP | src/util/hwf.cpp:238:1 | replace macro with enum |
| TP | src/util/hwf.cpp:238:9 | macro 'DBL_SCALE' defines an integral constant; prefer an enum instead |
| TP | src/util/memory_manager.cpp:34:1 | replace macro with enum |
| TP | src/util/memory_manager.cpp:34:9 | macro 'SIZE_T_ALIGN' defines an integral constant; prefer an enum instead |
| TP | src/util/mpbq.cpp:680:1 | replace macro with enum |
| TP | src/util/mpbq.cpp:680:9 | macro 'LINEAR_SEARCH_THRESHOLD' defines an integral constant; prefer an enum instead |
| TP | src/util/object_allocator.h:25:1 | replace macro with enum |
| TP | src/util/object_allocator.h:25:9 | macro 'DEFAULT_NUM_WORKERS' defines an integral constant; prefer an enum instead |
| TP | src/util/object_allocator.h:26:9 | macro 'NUM_OBJECTS_PER_PAGE' defines an integral constant; prefer an enum instead |
| TP | src/util/prime_generator.cpp:22:1 | replace macro with enum |
| TP | src/util/prime_generator.cpp:22:9 | macro 'PRIME_LIST_MAX_SIZE' defines an integral constant; prefer an enum instead |
| TP | src/util/small_object_allocator.cpp:179:1 | replace macro with enum |
| TP | src/util/small_object_allocator.cpp:179:9 | macro 'CONSOLIDATE_VB_LVL' defines an integral constant; prefer an enum instead |
Generated from 3ddf6fa37f.