Skip to content

Commit 2b87abd

Browse files
author
Daniel Kroening
committed
added util/mathematical_expr.h
Following the pattern in util/mathematical_types.h, expression classes that don't exist immediately in usual programming languages are now in util/mathematical_expr.h.
1 parent 6ae7e0e commit 2b87abd

File tree

14 files changed

+389
-343
lines changed

14 files changed

+389
-343
lines changed

jbmc/src/java_bytecode/java_utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected]
1111
#include "java_root_class.h"
1212

1313
#include <util/invariant.h>
14+
#include <util/mathematical_expr.h>
1415
#include <util/message.h>
1516
#include <util/prefix.h>
1617
#include <util/std_types.h>

src/ansi-c/expr2c_class.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Author: Daniel Kroening, [email protected]
1616
#include <unordered_map>
1717
#include <unordered_set>
1818

19+
#include <util/mathematical_expr.h>
1920
#include <util/std_code.h>
2021
#include <util/std_expr.h>
2122

src/goto-programs/builtin_functions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Author: Daniel Kroening, [email protected]
1818
#include <util/cprover_prefix.h>
1919
#include <util/expr_initializer.h>
2020
#include <util/expr_util.h>
21+
#include <util/mathematical_expr.h>
2122
#include <util/pointer_offset_size.h>
2223
#include <util/rational.h>
2324
#include <util/rational_tools.h>

src/goto-symex/symex_main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Author: Daniel Kroening, [email protected]
1616

1717
#include <util/exception_utils.h>
1818
#include <util/make_unique.h>
19+
#include <util/mathematical_expr.h>
1920
#include <util/replace_symbol.h>
2021
#include <util/std_expr.h>
2122
#include <util/string2int.h>

src/solvers/flattening/functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Author: Daniel Kroening, [email protected]
1414

1515
#include <set>
1616

17-
#include <util/std_expr.h>
17+
#include <util/mathematical_expr.h>
1818

1919
#include <solvers/prop/prop_conv.h>
2020

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Author: Daniel Kroening, [email protected]
2020
#include <util/format_expr.h>
2121
#include <util/ieee_float.h>
2222
#include <util/invariant.h>
23+
#include <util/mathematical_expr.h>
2324
#include <util/pointer_offset_size.h>
2425
#include <util/std_expr.h>
2526
#include <util/std_types.h>

src/solvers/smt2/smt2_parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Author: Daniel Kroening, [email protected]
1313
#include <util/arith_tools.h>
1414
#include <util/ieee_float.h>
1515
#include <util/invariant.h>
16+
#include <util/mathematical_expr.h>
1617
#include <util/range.h>
1718

1819
#include <numeric>

src/util/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ SRC = allocate_objects.cpp \
4141
json_stream.cpp \
4242
lispexpr.cpp \
4343
lispirep.cpp \
44+
mathematical_expr.cpp \
4445
mathematical_types.cpp \
4546
memory_info.cpp \
4647
merge_irep.cpp \

src/util/format_expr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Author: Daniel Kroening, [email protected]
1919
#include "format_type.h"
2020
#include "ieee_float.h"
2121
#include "invariant.h"
22+
#include "mathematical_expr.h"
2223
#include "mp_arith.h"
2324
#include "rational.h"
2425
#include "rational_tools.h"

src/util/mathematical_expr.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*******************************************************************\
2+
3+
Module: API to expression classes for 'mathematical' expressions
4+
5+
Author: Daniel Kroening, [email protected]
6+
7+
\*******************************************************************/
8+
9+
#include "mathematical_expr.h"

0 commit comments

Comments
 (0)