From 069feb82d76d10bbeebcf93a00d85b7caedb2d36 Mon Sep 17 00:00:00 2001 From: Liana Hadarean Date: Mon, 12 Nov 2012 19:38:47 +0000 Subject: [PATCH] changed BitVector::unsignedRem to match the behavior of the bit-blasted circuit for division by 0; temporary fix for bug440 --- src/util/bitvector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/bitvector.h b/src/util/bitvector.h index bb0099157..2c178ec2e 100644 --- a/src/util/bitvector.h +++ b/src/util/bitvector.h @@ -194,7 +194,7 @@ public: CheckArgument(d_size == y.d_size, y); // TODO: decide whether we really want these semantics if (y.d_value == 0) { - return BitVector(d_size, Integer(0)); + return BitVector(d_size, d_value); } CheckArgument(d_value >= 0, this); CheckArgument(y.d_value > 0, y); -- 2.30.2