#include "theory/theory.h"
// theory.h Only needed for the leaf test
-#include <stack>
+#include <vector>
#ifdef CVC4_USE_SYMFPU
#include "symfpu/core/add.h"
Node FpConverter::convert(TNode node)
{
#ifdef CVC4_USE_SYMFPU
- std::stack<TNode> workStack;
+ std::vector<TNode> workStack;
TNode result = node;
- workStack.push(node);
+ workStack.push_back(node);
NodeManager *nm = NodeManager::currentNM();
while (!workStack.empty())
{
- TNode current = workStack.top();
- workStack.pop();
+ TNode current = workStack.back();
+ workStack.pop_back();
result = current;
TypeNode t(current.getType());
if (arg1 == f.end())
{
- workStack.push(current);
- workStack.push(current[0]);
+ workStack.push_back(current);
+ workStack.push_back(current[0]);
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (arg1 == f.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg2 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (arg1 == f.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg2 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
if (arg2 == f.end())
{
- workStack.push(current[2]);
+ workStack.push_back(current[2]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
if (arg2 == f.end())
{
- workStack.push(current[2]);
+ workStack.push_back(current[2]);
}
if (arg3 == f.end())
{
- workStack.push(current[3]);
+ workStack.push_back(current[3]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (arg1 == f.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg2 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (arg1 == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg2 == r.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (arg1 == f.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg2 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (arg1 == f.end())
{
- workStack.push(current);
- workStack.push(current[0]);
+ workStack.push_back(current);
+ workStack.push_back(current[0]);
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (recurseNeeded)
{
- workStack.push(current);
+ workStack.push_back(current);
if (mode == r.end())
{
- workStack.push(current[0]);
+ workStack.push_back(current[0]);
}
if (arg1 == f.end())
{
- workStack.push(current[1]);
+ workStack.push_back(current[1]);
}
continue; // i.e. recurse!
}
if (arg1 == f.end())
{
- workStack.push(current);
- workStack.push(current[0]);
+ workStack.push_back(current);
+ workStack.push_back(current[0]);
continue; // i.e. recurse!
}