File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 15
15
#include < util/symbol.h>
16
16
#include < util/mp_arith.h>
17
17
#include < util/arith_tools.h>
18
+ #include < util/magic.h>
18
19
#include < util/replace_expr.h>
19
20
#include < util/std_types.h>
20
21
#include < util/prefix.h>
@@ -688,7 +689,7 @@ bool boolbvt::is_unbounded_array(const typet &type) const
688
689
return true ;
689
690
690
691
if (unbounded_array==unbounded_arrayt::U_AUTO)
691
- if (s>1000 ) // magic number!
692
+ if (s>MAX_FLATTENED_ARRAY_SIZE)
692
693
return true ;
693
694
694
695
return false ;
Original file line number Diff line number Diff line change
1
+ // / \file
2
+ // / \brief Magic numbers used throughout the codebase
3
+ // / \author Kareem Khazem <[email protected] >
4
+
5
+ #ifndef CPROVER_UTIL_MAGIC_H
6
+ #define CPROVER_UTIL_MAGIC_H
7
+
8
+ #include < cstddef>
9
+
10
+ const std::size_t MAX_FLATTENED_ARRAY_SIZE=1000 ;
11
+
12
+ #endif
You can’t perform that action at this time.
0 commit comments