inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check)
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
- TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
- TypeNode t = (*it).getType(check);
+ TypeNode t = n[0].getType(check);
if (!t.isRegExp()) {
throw TypeCheckingExceptionPrivate(n, "expecting regexp terms");
}
inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check)
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
- TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
- TypeNode t = (*it).getType(check);
+ TypeNode t = n[0].getType(check);
if (!t.isRegExp()) {
throw TypeCheckingExceptionPrivate(n, "expecting regexp terms");
}
inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check)
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
- TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
- TypeNode t = (*it).getType(check);
+ TypeNode t = n[0].getType(check);
if (!t.isRegExp()) {
throw TypeCheckingExceptionPrivate(n, "expecting regexp terms");
}
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
char ch[2];
for(int i=0; i<2; ++i) {
inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check)
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
- TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
- TypeNode t = (*it).getType(check);
+ TypeNode t = n[0].getType(check);
if (!t.isString()) {
throw TypeCheckingExceptionPrivate(n, "expecting string terms");
}
throw (TypeCheckingExceptionPrivate, AssertionException) {
if( check ) {
TNode::iterator it = n.begin();
- TNode::iterator it_end = n.end();
TypeNode t = (*it).getType(check);
if (!t.isString()) {
throw TypeCheckingExceptionPrivate(n, "expecting string terms");