Make collect_tags.py more robust for non-ASCII characters.
if (s[index] == '0' && s.length() > (index + 1))
{
- // From SMT-Lib 2.6: A〈numeral〉is the digit 0 or a non-empty sequence of
+ // From SMT-Lib 2.6: A <numeral> is the digit 0 or a non-empty sequence of
// digits not starting with 0. So integers like 001, 000 are not allowed
return false;
}
tags = set()
for ext in ['.cc', '.cpp', '.g', '.h']:
for filename in glob.iglob('{}/**/*{}'.format(basedir, ext), recursive=True):
- content = open(filename).read()
+ content = open(filename, 'rb').read().decode()
for tag in RE_PAT.finditer(content):
tags.add(tag.group(1))
return sorted(tags)
** described in
** Liana Hadarean, An Efficient and Trustworthy Theory Solver for
** Bit-vectors in Satisfiability Modulo Theories.
-** https://cs.nyu.edu/media/publications/hadarean_liana.pdf
+ ** https://cs.nyu.edu/media/publications/hadarean_liana.pdf
**/
#include "preprocessing/passes/ackermann.h"
** described in
** Liana Hadarean, An Efficient and Trustworthy Theory Solver for
** Bit-vectors in Satisfiability Modulo Theories.
-** https://cs.nyu.edu/media/publications/hadarean_liana.pdf
+ ** https://cs.nyu.edu/media/publications/hadarean_liana.pdf
**/
#include "cvc4_private.h"
// If the next one can be merged, try to merge
bool merged = false;
if (next.getKind() == kind::BITVECTOR_EXTRACT && current[0] == next[0]) {
- //x[i : j] @ x[j − 1 : k] -> c x[i : k]
+ // x[i : j] @ x[j - 1 : k] -> c x[i : k]
unsigned nextHigh = utils::getExtractHigh(next);
unsigned nextLow = utils::getExtractLow(next);
if(nextHigh + 1 == currentLow) {
{
// bitCount = high-low+1
uint32_t high = low + bitCount - 1;
- //— Function: void mpz_fdiv_r_2exp (mpz_t r, mpz_t n, mp_bitcnt_t b)
+ //- Function: void mpz_fdiv_r_2exp (mpz_t r, mpz_t n, mp_bitcnt_t b)
mpz_class rem, div;
mpz_fdiv_r_2exp(rem.get_mpz_t(), d_value.get_mpz_t(), high + 1);
mpz_fdiv_q_2exp(div.get_mpz_t(), rem.get_mpz_t(), low);