-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move bitvector types to bitvector_types.h
The rationale is that types of a particular group (say bitvectors or pointers) are often used together with the expressions that are specific for them. The goal is that std_types.h will only contain the basic types, such as bool_typet.
- Loading branch information
Showing
85 changed files
with
567 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Author: Daniel Kroening, [email protected] | |
#ifndef CPROVER_ANSI_C_GCC_TYPES_H | ||
#define CPROVER_ANSI_C_GCC_TYPES_H | ||
|
||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
// These are gcc-specific; most are not implemented by clang | ||
// https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,11 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <algorithm> | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/config.h> | ||
#include <util/pointer_offset_size.h> | ||
#include <util/simplify_expr.h> | ||
#include <util/arith_tools.h> | ||
|
||
mp_integer alignment(const typet &type, const namespacet &ns) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "dump_c.h" | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/byte_operators.h> | ||
#include <util/config.h> | ||
#include <util/expr_initializer.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ Author: Martin Brain, [email protected] | |
#include <goto-programs/string_abstraction.h> | ||
#include <goto-programs/string_instrumentation.h> | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/message.h> | ||
#include <util/options.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,10 @@ Author: Daniel Kroening, [email protected] | |
#ifndef CPROVER_GOTO_PROGRAMS_STRING_ABSTRACTION_H | ||
#define CPROVER_GOTO_PROGRAMS_STRING_ABSTRACTION_H | ||
|
||
#include <util/symbol_table.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/config.h> | ||
#include <util/std_expr.h> | ||
#include <util/symbol_table.h> | ||
|
||
#include "goto_model.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Michael Tautschnig, [email protected] | |
#include <limits> | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/simplify_expr.h> | ||
|
||
partial_order_concurrencyt::partial_order_concurrencyt( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,10 @@ Author: Michael Tautschnig, [email protected] | |
|
||
#include "jsil_typecheck.h" | ||
|
||
#include <util/symbol_table.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/prefix.h> | ||
#include <util/std_expr.h> | ||
#include <util/symbol_table.h> | ||
|
||
#include "expr2jsil.h" | ||
#include "jsil_types.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ Author: Daiva Naudziuniene, [email protected] | |
|
||
#include "jsil_types.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
#include <algorithm> | ||
|
||
typet jsil_any_type() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/magic.h> | ||
#include <util/mp_arith.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
|
||
#include "boolbv_type.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
bvt boolbvt::convert_abs(const abs_exprt &expr) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/invariant.h> | ||
#include <util/std_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
#include "boolbv_type.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
bvt boolbvt::convert_div(const div_exprt &expr) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/exception_utils.h> | ||
#include <util/std_expr.h> | ||
#include <util/std_types.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ Author: Daniel Kroening, [email protected] | |
#include <algorithm> | ||
#include <iostream> | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/std_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
|
||
#include "boolbv_type.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
literalt boolbvt::convert_ieee_float_rel(const binary_relation_exprt &expr) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
bvt boolbvt::convert_mult(const mult_exprt &expr) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected] | |
\*******************************************************************/ | ||
|
||
|
||
#include "boolbv.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
bvt boolbvt::convert_not(const not_exprt &expr) | ||
{ | ||
const bvt &op_bv=convert_bv(expr.op()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected] | |
\*******************************************************************/ | ||
|
||
|
||
#include "boolbv.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
literalt boolbvt::convert_reduction(const unary_exprt &expr) | ||
{ | ||
const bvt &op_bv=convert_bv(expr.op()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
#include "boolbv_type.h" | ||
#include "c_bit_field_replacement_type.h" | ||
|
||
#include <util/bitvector_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
bvt boolbvt::convert_bv_typecast(const typecast_exprt &expr) | ||
{ | ||
const exprt &op=expr.op(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "boolbv.h" | ||
|
||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "c_bit_field_replacement_type.h" | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/invariant.h> | ||
|
||
typet c_bit_field_replacement_type( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/std_expr.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ Author: Daniel Kroening, [email protected] | |
#include "bv_refinement.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/bv_arithmetic.h> | ||
#include <util/expr_util.h> | ||
#include <util/floatbv_expr.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,7 @@ Author: Daniel Kroening, [email protected] | |
#include "smt2_format.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/std_expr.h> | ||
#include <util/std_types.h> | ||
#include <util/bitvector_types.h> | ||
|
||
std::ostream &smt2_format_rec(std::ostream &out, const typet &type) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/invariant.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,11 @@ Author: Matthias Weiss, [email protected] | |
#include "convert_dint_literal.h" | ||
#include "statement_list_types.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
|
||
#include <algorithm> | ||
#include <stdexcept> | ||
#include <util/arith_tools.h> | ||
#include <util/std_types.h> | ||
|
||
/// Minimum value of double integer literals. | ||
#define STL_DINT_MAX_VALUE 2147483647LL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,11 @@ Author: Matthias Weiss, [email protected] | |
#include "convert_dint_literal.h" | ||
#include "statement_list_types.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
|
||
#include <algorithm> | ||
#include <stdexcept> | ||
#include <util/arith_tools.h> | ||
#include <util/std_types.h> | ||
|
||
/// Maximum value of integer literals. | ||
#define STL_INT_MAX_VALUE 32767LL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Matthias Weiss, [email protected] | |
#include "convert_real_literal.h" | ||
#include "statement_list_types.h" | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/ieee_float.h> | ||
#include <util/std_expr.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,9 @@ Author: Matthias Weiss, [email protected] | |
/// Statement List Type Helper | ||
|
||
#include "statement_list_types.h" | ||
|
||
#include <util/bitvector_types.h> | ||
#include <util/ieee_float.h> | ||
#include <util/std_types.h> | ||
|
||
signedbv_typet get_int_type() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Author: Matthias Weiss, [email protected] | |
#include "converters/statement_list_types.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_types.h> | ||
#include <util/ieee_float.h> | ||
|
||
/// String to indicate that there is no value. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.