Commit Graph

12372 Commits

Author SHA1 Message Date
Daniel Kroening a0ca0bab57 fix array->f typechecking 2018-04-24 12:48:31 +01:00
danpoe 714ccff121
Merge pull request #2072 from danpoe/feature/small-shared-two-way-ptr
Small shared two-way pointer
2018-04-24 10:42:01 +01:00
Thomas Kiley 16b6c20c21
Merge pull request #2046 from thk123/gs_tg2922
[TG-2922] Improve logging for byte flatten exceptions
2018-04-24 10:00:38 +01:00
Daniel Kroening 04cb909606
Merge pull request #2102 from thk123/formatting/sort-includes-clang-format
Sort includes using clang-format
2018-04-23 20:40:01 +01:00
thk123 7070ba1b9d Sort includes using clang-format
In current version of clang-format, this leaves groupings alone and just
sorts within the group.

For example, given a list of includes like:

```
include "boolbv.h"

include <util/std_types.h>
include <util/std_expr.h>
include <util/arith_tools.h>
include <util/base_type.h>
include <util/pointer_offset_size.h>

include <util/c_types.h>

```

These will be sorted to:

```
include "boolbv.h"

include <util/arith_tools.h>
include <util/base_type.h>
include <util/pointer_offset_size.h>
include <util/std_expr.h>
include <util/std_types.h>

include <util/c_types.h>
```

Note the "groups" are left untouched, the ordering occurs within the
groups
2018-04-23 17:51:43 +01:00
thk123 9874a6ba72 Reformatting touched output function 2018-04-23 17:46:35 +01:00
thk123 f2a40542a4 Remove redundant default constructor 2018-04-23 17:46:35 +01:00
thk123 54fb9ab476 Use format rather than from_expr for output 2018-04-23 17:46:34 +01:00
thk123 781bf7cb8e Introduce exceptions for all conversion steps. 2018-04-23 17:46:34 +01:00
thk123 21997b2ed9 Add documentation to convert_bitvector 2018-04-23 17:46:34 +01:00
thk123 015b2840cd Test demonstrating logging with clause for dealing with Windows 2018-04-23 17:46:34 +01:00
thk123 9d41b0cdf1 Disable nested exception printing for Windows
Due to bug in the VS2013 C++ compiler, using std::rethrow_if_nested or
std::nested_exception is not supported. This disables trying to unwrap the
exception and just prints a warning saying the nested exceptionc couldn't be
printed.

Don't use noexcept directly, pull both part of the nested exception into
a separate file to handle discrepancies.
2018-04-23 17:26:21 +01:00
thk123 b86601559c Provide the original goto statement in the error
This required the symex target_equation having the namespace to resolve
names
2018-04-23 17:26:21 +01:00
thk123 a97bc2809d Introduce throwing a guard conversion exception
Throw the unwrapped exception as a string
2018-04-23 17:26:21 +01:00
thk123 12f25c2103 Introduce throwing bv_conversion expection
Remove suprisous namespace from bv_conversion_exceptions
2018-04-23 17:26:21 +01:00
thk123 9bd5222896 Convert flatten_byte_extract to use structured exceptions
Store error in string to avoid dangling pointers
2018-04-23 17:26:21 +01:00
svorenova 3207291183 Introduce nested exception printing 2018-04-23 17:26:20 +01:00
Daniel Poetzl 35c4be7867 Small shared two way pointer 2018-04-23 14:23:55 +01:00
Daniel Kroening 7d247da207
Merge pull request #2099 from mgudemann/bugfix/build/glucose_syrup
Fix CMake build for Glucose Syrup
2018-04-23 14:00:40 +01:00
Romain Brenguier 1776a9ef6b
Merge pull request #1950 from romainbrenguier/refactor/prop_conv_straightforward
Partial solver cleanup (straightforward changes)
2018-04-23 10:09:19 +01:00
Romain Brenguier 4147243eac Change set_variable_name API to consume irep_idt 2018-04-23 08:50:11 +01:00
Romain Brenguier 2d8be0669a Rename `it` to pair in boolbvt::print_assignment
The variable represents a pair and not an iterator
2018-04-23 08:50:11 +01:00
Romain Brenguier 4365c28392 Simplify boolbvt::set_to 2018-04-23 08:50:11 +01:00
Romain Brenguier b18109f406 Make make_(free_)bv_expr return exprt 2018-04-23 08:50:11 +01:00
Romain Brenguier 5724a3514b Simplify loop in prop_conv::get
The iterator is not used as such and does not need to be exposed.
2018-04-23 08:50:11 +01:00
Romain Brenguier 4987f3ab55 Remove useless comments
The name of the functions already explain what we are doing.
2018-04-23 08:50:11 +01:00
Romain Brenguier 13e87a9a4c Simplify dec_solve
Result is not modified, and the last return is never reached.
2018-04-23 08:50:11 +01:00
Romain Brenguier a0500f6d63 Use standard algorithm for finding an element 2018-04-23 08:50:11 +01:00
Romain Brenguier ba13c94a45 Use auto for iterator types 2018-04-23 08:50:11 +01:00
Romain Brenguier 9179571839 Remove useless includes 2018-04-23 08:50:11 +01:00
Romain Brenguier a905a07caf Replace throws by invariant or preconditions 2018-04-23 08:50:11 +01:00
Romain Brenguier 7db44fcf71 Remove virtual keyword where not needed
No need to declare method virtual when it is already marked override.
2018-04-23 08:50:11 +01:00
Romain Brenguier 990f33eaca Initialize at declaration instead of construction
Should another constructor be added in the future (copy, move, default,
overload of existing constructor), one set of default arguments will
already be present.
2018-04-23 08:50:11 +01:00
Romain Brenguier c1a93b373f Renaming `it` to symbol
it is not an iterator in that case
2018-04-23 08:50:11 +01:00
Romain Brenguier 8eb20f6cf9 Use ranged for 2018-04-23 08:50:11 +01:00
Romain Brenguier dc799e00ae Assert replaced by unreachable 2018-04-23 08:50:11 +01:00
Peter Schrammel 1bd9efd057
Merge pull request #2097 from peterschrammel/java-cleanup-replace
Move replace_java_nondet to java_bytecode
2018-04-22 14:53:20 +03:00
Peter Schrammel a079f46280 Clang-format moved file 2018-04-22 12:07:23 +01:00
Peter Schrammel 2eb3714afd Move replace_java_nondet to java_bytecode 2018-04-22 12:07:23 +01:00
Peter Schrammel 9a8c292430 Remove unnecessary include 2018-04-22 12:07:22 +01:00
Peter Schrammel c8cf100867 Remove Java refs from ANSI-C docs 2018-04-22 12:07:21 +01:00
Peter Schrammel 009095243d
Merge pull request #2096 from diffblue/cleanout-java
remove dependency on java_bytecode
2018-04-21 19:03:16 +03:00
Matthias Güdemann aa3caa3ad0 Fix CMake build for Glucose Syrup 2018-04-21 17:26:40 +02:00
Daniel Kroening 1156930d49
Merge pull request #1244 from tautschnig/goto-gcc-at-fix
goto-gcc: Add @<file> arguments to the original command line
2018-04-21 15:44:29 +01:00
Daniel Kroening 706e391523
Merge pull request #2093 from owen-jones-diffblue/owen-jones-diffblue/remove_unnecessary_irep_id_hash
Remove unnecessary uses of irep_id_hash
2018-04-21 15:31:57 +01:00
Daniel Kroening 290feb4bd4
Merge pull request #2095 from diffblue/get_json_stream_precondition
precondition for get_json_stream()
2018-04-21 14:50:56 +01:00
Daniel Kroening ac2df218c4
Merge pull request #2027 from tautschnig/linking-multiple-conflicts
Linking: report multiple conflicts
2018-04-21 14:31:33 +01:00
Daniel Kroening dd0d6025fb
Merge pull request #2030 from tautschnig/goto-cc-linux-kernel
Goto-cc extensions to build (and link) recent Linux kernels
2018-04-21 14:29:50 +01:00
Daniel Kroening 42e58d4657
Merge pull request #2085 from tautschnig/from_expr-cleanup
Use from_{expr,type} matching the language of the expression/type
2018-04-21 14:25:54 +01:00
Daniel Kroening 692f92d3eb remove dependency on java_bytecode 2018-04-21 14:02:08 +01:00