From 77416fa5f7cd004bbec3fb4901f47908d1e8fdd4 Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Mon, 1 Nov 2021 13:25:32 -0700 Subject: [PATCH] api: Fix documentation for kind IAND. (#7536) --- src/api/cpp/cvc5_kind.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/api/cpp/cvc5_kind.h b/src/api/cpp/cvc5_kind.h index a01f84c3f..bece49098 100644 --- a/src/api/cpp/cvc5_kind.h +++ b/src/api/cpp/cvc5_kind.h @@ -377,7 +377,12 @@ enum Kind : int32_t */ MULT, /** - * Operator for Integer AND + * Operator for bit-wise AND over integers, parameterized by a (positive) + * bitwidth k. + * + * ((_ iand k) i1 i2) is equivalent to: + * (bv2int (bvand ((_ int2bv k) i1) ((_ int2bv k) i2))) + * for all integers i1, i2. * * Parameters: * - 1: Size of the bit-vector that determines the semantics of the IAND @@ -385,8 +390,8 @@ enum Kind : int32_t * Create with: * - `Solver::mkOp(Kind kind, uint32_t param) const` * - * Apply integer conversion to bit-vector. - + * Apply integer and. + * * Parameters: * - 1: Op of kind IAND * - 2: Integer term @@ -398,16 +403,17 @@ enum Kind : int32_t */ IAND, /** - * Operator for raising 2 to a non-negative integer power + * Operator for raising 2 to a non-negative integer power. * * Create with: * - `Solver::mkOp(Kind kind) const` * - * Parameters: * - 1: Op of kind IAND * - 2: Integer term * + * Apply 2 to the power operator. + * * Create with: * - `Solver::mkTerm(const Op& op, const Term& child) const` * - `Solver::mkTerm(const Op& op, const std::vector& children) const` -- 2.30.2