File tree 3 files changed +15
-1
lines changed 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ CORE broken-smt-backend
2
+ main.c
3
+ --show-goto-functions
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION SUCCESSFUL$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change 1
1
CORE broken-smt-backend
2
2
main.c
3
- --stop-on-fail
3
+ --trace
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
^VERIFICATION SUCCESSFUL$
Original file line number Diff line number Diff line change 8
8
9
9
#include " bv_utils.h"
10
10
11
+ #include < iostream>
12
+
11
13
bvt bv_utilst::build_constant (const mp_integer &n, std::size_t width)
12
14
{
13
15
std::string n_str=integer2binary (n, width);
@@ -382,6 +384,8 @@ bvt bv_utilst::saturating_add_sub(
382
384
result.reserve (add_sub_result.size ());
383
385
if (rep == representationt::UNSIGNED)
384
386
{
387
+ std::cerr << " Unsigned saturating arithmetic over " << add_sub_result.size ()
388
+ << " bits with subtract=" << subtract << std::endl;
385
389
// An unsigned overflow has occurred when carry_out is not equal to
386
390
// subtract: addition with a carry-out means an overflow beyond the maximum
387
391
// representable value, subtraction without a carry-out means an underflow
@@ -396,6 +400,8 @@ bvt bv_utilst::saturating_add_sub(
396
400
}
397
401
else
398
402
{
403
+ std::cerr << " Signed saturating arithmetic over " << add_sub_result.size ()
404
+ << " bits with subtract=" << subtract << std::endl;
399
405
// A signed overflow beyond the maximum representable value occurs when
400
406
// adding two positive numbers and the wrap-around result being negative, or
401
407
// when subtracting a negative from a positive number (and, again, the
You can’t perform that action at this time.
0 commit comments