#include <faast.hpp>
#include <cstdlib>
using namespace std;
using namespace FAAST;
int main(int argv, char* argc[]) {
double cputime;
int retval = 0;
gfp::Infrastructure::BigInt p;
long d, l;
if (cin.peek() != EOF) {
cin >> p; cin >> d; cin >> l;
} else {
p = 3; d = 2; l = 3;
}
cout << "Using " << gfp::Infrastructure::name << endl << endl;
cputime = -NTL::GetTime();
cputime += NTL::GetTime();
cout << *K << " in " << cputime << endl;
#ifdef FAAST_TIMINGS
cout << "Time spent building the irreducible polynomial : "
<< gfp::TIME.BUILDIRRED << endl;
#endif
cout << endl;
cout << "\tCreate\tCrStem\tPushDow\tLiftUp\tPrePseu\tPreLift" << endl;
for (int i = 1 ; i <= l ; i++) {
cout << i << "\t";
do {
}
while (alpha.
trace() == 0);
cputime = -NTL::GetTime();
cputime += NTL::GetTime();
cout << cputime << "\t";
#ifdef FAAST_TIMINGS
cout << gfp::TIME.BUILDSTEM;
#endif
cout << "\t";
vector<gfp_E> v;
cputime = -NTL::GetTime();
cputime += NTL::GetTime();
cout << cputime << "\t";
cputime = -NTL::GetTime();
cputime += NTL::GetTime();
cout << cputime << "\t";
if (a != b) {
cout << "ERROR : Results don't match" << endl;
cout << a << endl;
cout << b << endl;
vector<gfp_E>::iterator it;
for (it = v.begin() ; it != v.end() ; it++)
cout << *it << " ";
cout << endl;
retval = 1;
}
#ifdef FAAST_TIMINGS
cout << gfp::TIME.PSEUDOTRACES << "\t";
cout << gfp::TIME.LIFTUP;
#endif
cout << endl;
}
#ifdef FAAST_TIMINGS
cout << endl << "Time spent inverting the matrix " <<
gfp::TIME.ARTINMATRIX << endl;
#endif
return retval;
}