diffblue-cbmc/unit/testing-utils
Daniel Kroening a5944a75a9 numeric_cast_v(expr) now requires constant_expr
This is follow-up from a discussion on PR #3998, and a comment by
@tautschnig.

This function always fails, with an exception, when given anything but a
constant_exprt.

This change means that the caller must do the type conversion.  The benefit
is to make the caller more aware of the requirement that this must be a
constant, and to make the caller handle the error appropriately (with an
user-friendly error message) in case this is not possible.

The disadvantage is additional code at the call site.
2019-02-17 16:27:44 +00:00
..
CMakeLists.txt Move Java unit tests 2018-05-20 23:00:04 +01:00
Makefile factor out common call graph unit test functions into header 2018-06-27 14:46:31 +02:00
call_graph_test_utils.cpp factor out common call graph unit test functions into header 2018-06-27 14:46:31 +02:00
call_graph_test_utils.h factor out common call graph unit test functions into header 2018-06-27 14:46:31 +02:00
free_form_cmdline.cpp Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
free_form_cmdline.h Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
message.cpp Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
message.h Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
module_dependencies.txt Move catch.hpp to separate folder 2019-01-21 20:49:28 +00:00
require_expr.cpp numeric_cast_v(expr) now requires constant_expr 2019-02-17 16:27:44 +00:00
require_expr.h Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
require_symbol.cpp CATCH: silence Visual Studio warnings 2019-01-21 20:49:28 +00:00
require_symbol.h Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
require_vectors_equal_unordered.h CATCH: silence Visual Studio warnings 2019-01-21 20:49:28 +00:00
run_test_with_compilers.cpp Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
run_test_with_compilers.h Fix whitespace in copyright headers 2018-12-21 10:04:49 +00:00
use_catch.h Move catch.hpp to separate folder 2019-01-21 20:49:28 +00:00