summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-06-02 14:37:48 -0700
committerGitHub <noreply@github.com>2021-06-02 21:37:48 +0000
commitf2bbc8c1f6d8f357693728fe4efb037c232e3d06 (patch)
treeb27158d83eb29e46befaa543a7d2018183dc0c3b
parent87b204084e86b534571f16250ca4871150b2a783 (diff)
Remove references to `bv-div-zero-const` in docs (#6672)
The bv-div-zero-const option has been removed and is now always enabled, so this commit updates the documentation of the kinds to reflect that. It also makes the language to describe the special cases a bit more uniform.
-rw-r--r--src/api/cpp/cvc5_kind.h44
1 files changed, 11 insertions, 33 deletions
diff --git a/src/api/cpp/cvc5_kind.h b/src/api/cpp/cvc5_kind.h
index 4263eedb2..b4596e977 100644
--- a/src/api/cpp/cvc5_kind.h
+++ b/src/api/cpp/cvc5_kind.h
@@ -913,12 +913,8 @@ enum CVC5_EXPORT Kind : int32_t
*/
BITVECTOR_NEG,
/**
- * Unsigned division of two bit-vectors, truncating towards 0.
- *
- * Note: The semantics of this operator depends on `bv-div-zero-const`
- * (default is true). Depending on the setting, a division by zero is
- * treated as all ones (default, corresponds to SMT-LIB >=2.6) or an
- * uninterpreted value (corresponds to SMT-LIB <2.6).
+ * Unsigned division of two bit-vectors, truncating towards 0. If the divisor
+ * is zero, the result is all ones.
*
* Parameters:
* - 1..2: Terms of bit-vector sort (sorts must match)
@@ -929,12 +925,8 @@ enum CVC5_EXPORT Kind : int32_t
*/
BITVECTOR_UDIV,
/**
- * Unsigned remainder from truncating division of two bit-vectors.
- *
- * Note: The semantics of this operator depends on `bv-div-zero-const`
- * (default is true). Depending on the setting, if the modulus is zero, the
- * result is either the dividend (default, corresponds to SMT-LIB >=2.6) or
- * an uninterpreted value (corresponds to SMT-LIB <2.6).
+ * Unsigned remainder from truncating division of two bit-vectors. If the
+ * modulus is zero, the result is the dividend.
*
* Parameters:
* - 1..2: Terms of bit-vector sort (sorts must match)
@@ -945,13 +937,9 @@ enum CVC5_EXPORT Kind : int32_t
*/
BITVECTOR_UREM,
/**
- * Two's complement signed division of two bit-vectors.
- *
- * Note: The semantics of this operator depends on `bv-div-zero-const`
- * (default is true). By default, the function returns all ones if the
- * dividend is positive and one if the dividend is negative (corresponds to
- * SMT-LIB >=2.6). If the option is disabled, a division by zero is treated
- * as an uninterpreted value (corresponds to SMT-LIB <2.6).
+ * Two's complement signed division of two bit-vectors. If the divisor is
+ * zero and the dividend is positive, the result is all ones. If the divisor
+ * is zero and the dividend is negative, the result is one.
*
* Parameters:
* - 1..2: Terms of bit-vector sort (sorts must match)
@@ -962,13 +950,8 @@ enum CVC5_EXPORT Kind : int32_t
*/
BITVECTOR_SDIV,
/**
- * Two's complement signed remainder of two bit-vectors
- * (sign follows dividend).
- *
- * Note: The semantics of this operator depends on `bv-div-zero-const`
- * (default is true, corresponds to SMT-LIB >=2.6). Depending on the setting,
- * if the modulus is zero, the result is either the dividend (default) or an
- * uninterpreted value (corresponds to SMT-LIB <2.6).
+ * Two's complement signed remainder of two bit-vectors (sign follows
+ * dividend). If the modulus is zero, the result is the dividend.
*
* Parameters:
* - 1..2: Terms of bit-vector sort (sorts must match)
@@ -979,13 +962,8 @@ enum CVC5_EXPORT Kind : int32_t
*/
BITVECTOR_SREM,
/**
- * Two's complement signed remainder
- * (sign follows divisor).
- *
- * Note: The semantics of this operator depends on `bv-div-zero-const`
- * (default is on). Depending on the setting, if the modulus is zero, the
- * result is either the dividend (default, corresponds to SMT-LIB >=2.6) or
- * an uninterpreted value (corresponds to SMT-LIB <2.6).
+ * Two's complement signed remainder (sign follows divisor). If the modulus
+ * is zero, the result is the dividend.
*
* Parameters:
* - 1..2: Terms of bit-vector sort (sorts must match)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback