#include "expr/kind.h"
#include "theory/strings/options.h"
#include "smt/logic_exception.h"
+#include <stdint.h>
namespace CVC4 {
namespace theory {
Node nonneg = NodeManager::currentNM()->mkNode(kind::GEQ, t[0], d_zero);
if(t.getKind()==kind::STRING_U16TOS) {
- nonneg = NodeManager::currentNM()->mkNode(kind::AND, nonneg, NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(65536) ), t[0]));
+ nonneg = NodeManager::currentNM()->mkNode(kind::AND, nonneg, NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(UINT16_MAX) ), t[0]));
Node lencond = NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(5) ), lenp);
new_nodes.push_back(lencond);
} else if(t.getKind()==kind::STRING_U32TOS) {
- nonneg = NodeManager::currentNM()->mkNode(kind::AND, nonneg, NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(4294967296) ), t[0]));
+ nonneg = NodeManager::currentNM()->mkNode(kind::AND, nonneg, NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(UINT32_MAX) ), t[0]));
Node lencond = NodeManager::currentNM()->mkNode(kind::GEQ, NodeManager::currentNM()->mkConst( ::CVC4::Rational(10) ), lenp);
new_nodes.push_back(lencond);
}
#include "theory/strings/theory_strings_rewriter.h"
#include "theory/strings/options.h"
#include "smt/logic_exception.h"
+#include <stdint.h>
using namespace std;
using namespace CVC4;
bool flag = false;
std::string stmp = node[0].getConst<Rational>().getNumerator().toString();
if(node.getKind() == kind::STRING_U16TOS) {
- CVC4::Rational r1(65536);
+ CVC4::Rational r1(UINT16_MAX);
CVC4::Rational r2 = node[0].getConst<Rational>();
if(r2>r1) {
flag = true;
}
} else if(node.getKind() == kind::STRING_U32TOS) {
- CVC4::Rational r1(4294967296);
+ CVC4::Rational r1(UINT32_MAX);
CVC4::Rational r2 = node[0].getConst<Rational>();
if(r2>r1) {
flag = true;
bool flag = false;
CVC4::Rational r2(stmp.c_str());
if(node.getKind() == kind::STRING_U16TOS) {
- CVC4::Rational r1(65536);
+ CVC4::Rational r1(UINT16_MAX);
if(r2>r1) {
flag = true;
}
} else if(node.getKind() == kind::STRING_U32TOS) {
- CVC4::Rational r1(4294967296);
+ CVC4::Rational r1(UINT32_MAX);
if(r2>r1) {
flag = true;
}