diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-08 00:57:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-08 00:57:31 +0000 |
commit | 9e32dd6aee7faf4e59888cfbd7a927d497b563ad (patch) | |
tree | 5068ec13390f4352be663383dd58e22147e68201 /Build/source/utils/asymptote/runtime.cc | |
parent | 3f49bad6cd5234b4e0ea156f6f68f6430643c10f (diff) |
asymptote 1.76
git-svn-id: svn://tug.org/texlive/trunk@13664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runtime.cc')
-rw-r--r-- | Build/source/utils/asymptote/runtime.cc | 4641 |
1 files changed, 2332 insertions, 2309 deletions
diff --git a/Build/source/utils/asymptote/runtime.cc b/Build/source/utils/asymptote/runtime.cc index 67ee3ac3560..52e99541296 100644 --- a/Build/source/utils/asymptote/runtime.cc +++ b/Build/source/utils/asymptote/runtime.cc @@ -923,9 +923,25 @@ inline triple perp(triple v, triple u) return v-dot(v,u)*u; } -string ASYo="/ASYo {( ) print 12 string cvs print} bind def"; -string pathforall="{(M) print ASYo ASYo} {(L) print ASYo ASYo} {(C) print ASYo ASYo ASYo ASYo ASYo ASYo} {(c) print} pathforall"; -string currentpoint="print currentpoint ASYo ASYo "; +string ASYx="/ASYx {( ) print ASYX sub 12 string cvs print} bind def"; +string ASYy="/ASYy {( ) print ASYY sub 12 string cvs print} bind def"; +string pathforall="{(M) print ASYy ASYx} {(L) print ASYy ASYx} {(C) print ASYy ASYx ASYy ASYx ASYy ASYx} {(c) print} pathforall"; +string currentpoint="print currentpoint ASYy ASYx "; +string ASYinit="/ASYX currentpoint pop def /ASYY currentpoint exch pop def "; +string ASY1="ASY1 {"+ASYinit+"/ASY1 false def} if "; + +void showpath(std::ofstream& ps) +{ + ps << ASYx << newl + << ASYy << newl + << "/ASY1 true def" << newl + << "/fill {" << ASY1 + << pathforall << " (M) " << currentpoint + << "currentpoint newpath moveto } bind def" << newl + << "/stroke {" << ASY1 << "strokepath " + << pathforall << " (M) " << currentpoint + << "currentpoint newpath moveto } bind def" << endl; +} array *readpath(const string& psname, bool keep, double hscale=1.0, double vscale=1.0) @@ -956,7 +972,6 @@ array *readpath(const string& psname, bool keep, bool cyclic=false; bool active=false; - pair offset; while(!buf.eof()) { char c; buf >> c; @@ -984,13 +999,13 @@ array *readpath(const string& psname, bool keep, } active=false; cyclic=false; - node.pre=node.point=readpair(buf,hscale,vscale)-offset; + node.pre=node.point=readpair(buf,hscale,vscale); node.straight=false; break; } case 'L': { - pair point=readpair(buf,hscale,vscale)-offset; + pair point=readpair(buf,hscale,vscale); pair delta=(point-node.point)*third; node.post=node.point+delta; node.straight=true; @@ -1002,9 +1017,9 @@ array *readpath(const string& psname, bool keep, } case 'C': { - pair point=readpair(buf,hscale,vscale)-offset; - pair pre=readpair(buf,hscale,vscale)-offset; - node.post=readpair(buf,hscale,vscale)-offset; + pair point=readpair(buf,hscale,vscale); + pair pre=readpair(buf,hscale,vscale); + node.post=readpair(buf,hscale,vscale); node.straight=false; nodes.push_back(node); active=true; @@ -1017,11 +1032,6 @@ array *readpath(const string& psname, bool keep, cyclic=true; break; } - case 'Z': - { - offset=readpair(buf,hscale,vscale); - break; - } } } @@ -1079,45 +1089,45 @@ void cannotwrite(const string& s) namespace run { // Initializers -#line 1119 "runtime.in" +#line 1129 "runtime.in" void IntZero(stack *Stack) { -#line 1120 "runtime.in" +#line 1130 "runtime.in" {Stack->push<Int>(0); return;} } -#line 1125 "runtime.in" +#line 1135 "runtime.in" void realZero(stack *Stack) { -#line 1126 "runtime.in" +#line 1136 "runtime.in" {Stack->push<real>(0.0); return;} } -#line 1130 "runtime.in" +#line 1140 "runtime.in" void boolFalse(stack *Stack) { -#line 1131 "runtime.in" +#line 1141 "runtime.in" {Stack->push<bool>(false); return;} } -#line 1135 "runtime.in" +#line 1145 "runtime.in" void pushNullArray(stack *Stack) { -#line 1136 "runtime.in" +#line 1146 "runtime.in" {Stack->push<array*>(0); return;} } -#line 1140 "runtime.in" +#line 1150 "runtime.in" void pushNullRecord(stack *Stack) { -#line 1141 "runtime.in" +#line 1151 "runtime.in" {Stack->push<frame*>(0); return;} } -#line 1145 "runtime.in" +#line 1155 "runtime.in" void pushNullFunction(stack *Stack) { -#line 1146 "runtime.in" +#line 1156 "runtime.in" {Stack->push(nullfunc::instance()); return;} } @@ -1126,183 +1136,183 @@ void pushNullFunction(stack *Stack) // Put the default value token on the stack (in place of an argument when // making a function call). -#line 1155 "runtime.in" +#line 1165 "runtime.in" void pushDefault(stack *Stack) { -#line 1156 "runtime.in" +#line 1166 "runtime.in" {Stack->push(def); return;} } // Test if the value on the stack is the default value token. -#line 1162 "runtime.in" +#line 1172 "runtime.in" void isDefault(stack *Stack) { item i=vm::pop(Stack); -#line 1163 "runtime.in" +#line 1173 "runtime.in" {Stack->push<bool>(isdefault(i)); return;} } // Logical operations -#line 1169 "runtime.in" +#line 1179 "runtime.in" // bool !(bool b); void gen8(stack *Stack) { bool b=vm::pop<bool>(Stack); -#line 1170 "runtime.in" +#line 1180 "runtime.in" {Stack->push<bool>(!b); return;} } -#line 1175 "runtime.in" +#line 1185 "runtime.in" void boolMemEq(stack *Stack) { frame * b=vm::pop<frame *>(Stack); frame * a=vm::pop<frame *>(Stack); -#line 1176 "runtime.in" +#line 1186 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 1180 "runtime.in" +#line 1190 "runtime.in" void boolMemNeq(stack *Stack) { frame * b=vm::pop<frame *>(Stack); frame * a=vm::pop<frame *>(Stack); -#line 1181 "runtime.in" +#line 1191 "runtime.in" {Stack->push<bool>(a != b); return;} } -#line 1185 "runtime.in" +#line 1195 "runtime.in" void boolFuncEq(stack *Stack) { callable * b=vm::pop<callable *>(Stack); callable * a=vm::pop<callable *>(Stack); -#line 1186 "runtime.in" +#line 1196 "runtime.in" {Stack->push<bool>(a->compare(b)); return;} } -#line 1190 "runtime.in" +#line 1200 "runtime.in" void boolFuncNeq(stack *Stack) { callable * b=vm::pop<callable *>(Stack); callable * a=vm::pop<callable *>(Stack); -#line 1191 "runtime.in" +#line 1201 "runtime.in" {Stack->push<bool>(!(a->compare(b))); return;} } // Bit operations -#line 1197 "runtime.in" +#line 1207 "runtime.in" // Int AND(Int a, Int b); void gen13(stack *Stack) { Int b=vm::pop<Int>(Stack); Int a=vm::pop<Int>(Stack); -#line 1198 "runtime.in" +#line 1208 "runtime.in" {Stack->push<Int>(a & b); return;} } -#line 1203 "runtime.in" +#line 1213 "runtime.in" // Int OR(Int a, Int b); void gen14(stack *Stack) { Int b=vm::pop<Int>(Stack); Int a=vm::pop<Int>(Stack); -#line 1204 "runtime.in" +#line 1214 "runtime.in" {Stack->push<Int>(a | b); return;} } -#line 1208 "runtime.in" +#line 1218 "runtime.in" // Int XOR(Int a, Int b); void gen15(stack *Stack) { Int b=vm::pop<Int>(Stack); Int a=vm::pop<Int>(Stack); -#line 1209 "runtime.in" +#line 1219 "runtime.in" {Stack->push<Int>(a ^ b); return;} } -#line 1213 "runtime.in" +#line 1223 "runtime.in" // Int NOT(Int a); void gen16(stack *Stack) { Int a=vm::pop<Int>(Stack); -#line 1214 "runtime.in" +#line 1224 "runtime.in" {Stack->push<Int>(~a); return;} } // Casts -#line 1220 "runtime.in" +#line 1230 "runtime.in" void pairToGuide(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 1221 "runtime.in" +#line 1231 "runtime.in" {Stack->push<guide*>(new pairguide(z)); return;} } -#line 1226 "runtime.in" +#line 1236 "runtime.in" void pathToGuide(stack *Stack) { path p=vm::pop<path>(Stack); -#line 1227 "runtime.in" +#line 1237 "runtime.in" {Stack->push<guide*>(new pathguide(p)); return;} } -#line 1231 "runtime.in" +#line 1241 "runtime.in" void guideToPath(stack *Stack) { guide * g=vm::pop<guide *>(Stack); -#line 1232 "runtime.in" +#line 1242 "runtime.in" {Stack->push<path>(g->solve()); return;} } // Picture operations -#line 1238 "runtime.in" +#line 1248 "runtime.in" void newPicture(stack *Stack) { -#line 1239 "runtime.in" +#line 1249 "runtime.in" {Stack->push<picture*>(new picture()); return;} } -#line 1244 "runtime.in" +#line 1254 "runtime.in" // bool empty(picture *f); void gen21(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1245 "runtime.in" +#line 1255 "runtime.in" {Stack->push<bool>(f->null()); return;} } -#line 1249 "runtime.in" +#line 1259 "runtime.in" // void erase(picture *f); void gen22(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1250 "runtime.in" +#line 1260 "runtime.in" f->nodes.clear(); } -#line 1254 "runtime.in" +#line 1264 "runtime.in" // pair min(picture *f); void gen23(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1255 "runtime.in" +#line 1265 "runtime.in" {Stack->push<pair>(f->bounds().Min()); return;} } -#line 1259 "runtime.in" +#line 1269 "runtime.in" // pair max(picture *f); void gen24(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1260 "runtime.in" +#line 1270 "runtime.in" {Stack->push<pair>(f->bounds().Max()); return;} } -#line 1264 "runtime.in" +#line 1274 "runtime.in" // void label(picture *f, string *s, string *size, transform t, pair position, pair align, pen p); void gen25(stack *Stack) { @@ -1313,26 +1323,51 @@ void gen25(stack *Stack) string * size=vm::pop<string *>(Stack); string * s=vm::pop<string *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1266 "runtime.in" +#line 1276 "runtime.in" f->append(new drawLabel(*s,*size,t,position,align,p)); } -#line 1270 "runtime.in" +#line 1280 "runtime.in" // bool labels(picture *f); void gen26(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1271 "runtime.in" +#line 1281 "runtime.in" {Stack->push<bool>(f->havelabels()); return;} } -#line 1275 "runtime.in" -// patharray* _texpath(string *s, pen p=CURRENTPEN); +#line 1285 "runtime.in" +// realarray* texsize(string *s, pen p=CURRENTPEN); void gen27(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); string * s=vm::pop<string *>(Stack); -#line 1276 "runtime.in" +#line 1286 "runtime.in" + texinit(); + processDataStruct &pd=processData(); + + string texengine=getSetting<string>("tex"); + const char **abort=texabort(texengine); + setpen(pd.tex,texengine,p); + + double width,height,depth; + if(!texbounds(width,height,depth,pd.tex,*s,abort,false,true)) + {Stack->push<realarray*>(new array(0)); return;} + + array *t=new array(3); + (*t)[0]=width; + (*t)[1]=height; + (*t)[2]=depth; + {Stack->push<realarray*>(t); return;} +} + +#line 1305 "runtime.in" +// patharray* _texpath(string *s, pen p=CURRENTPEN); +void gen28(stack *Stack) +{ + pen p=vm::pop<pen>(Stack,CURRENTPEN); + string * s=vm::pop<string *>(Stack); +#line 1306 "runtime.in" array *P=new array(0); if(s->empty()) {Stack->push<patharray*>(P); return;} @@ -1349,18 +1384,19 @@ void gen27(stack *Stack) if(!pdf) { tex.verbatimline("\\special{ps:"); - tex.verbatimline(ASYo); + tex.verbatimline(ASYx); + tex.verbatimline(ASYy); tex.verbatimline("/ASY1 true def"); - tex.verbatimline("/v {neg exch 4 copy 4 2 roll 2 copy 6 2 roll 2 copy (M) print ASYo ASYo (L) print ASYo add ASYo (L) print add ASYo add ASYo (L) print add ASYo ASYo (c) print} bind def"); - tex.verbatimline("/show {ASY1 {(Z) "+currentpoint+ - "/ASY1 false def} if currentpoint newpath moveto false charpath "+ + tex.verbatimline("/v {neg exch 4 copy 4 2 roll 2 copy 6 2 roll 2 copy (M) print ASYy ASYx (L) print ASYy add ASYx (L) print add ASYy add ASYx (L) print add ASYy ASYx (c) print} bind def"); + tex.verbatimline("/show {"+ASY1+ + "currentpoint newpath moveto false charpath "+ pathforall+"} bind def}"); } tex.verbatimline(*s+"%"); tex.epilogue(true); tex.close(); - // TODO: Put in common subproutine (cf. teprocess). + // TODO: Put in common subproutine (cf. texprocess). string aux=auxname(prefix,"aux"); unlink(aux.c_str()); string program=texprogram(); @@ -1388,16 +1424,8 @@ void gen27(stack *Stack) std::ofstream ps(psname.c_str()); if(!ps) cannotwrite(psname); - ps << ASYo << newl - << "/ASY1 true def" << newl - << "/fill {ASY1 {(Z) " << currentpoint << "/ASY1 false def} if " - << pathforall << " (M) " << currentpoint - << "currentpoint newpath moveto } bind def" << newl - << "/stroke {ASY1 {(Z) " << currentpoint - << "/ASY1 false def} if strokepath " - << pathforall << " (M) " << currentpoint - << "currentpoint newpath moveto } bind def" << newl; - + showpath(ps); + ostringstream cmd; cmd << "'" << getSetting<string>("gs") << "' -q -dNOCACHE -dNOPAUSE -dBATCH"; @@ -1446,13 +1474,13 @@ void gen27(stack *Stack) pdf ? twelvepercent : -twelvepercent)); return;} } -#line 1390 "runtime.in" +#line 1413 "runtime.in" // patharray* textpath(string *s, pen p=CURRENTPEN); -void gen28(stack *Stack) +void gen29(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); string * s=vm::pop<string *>(Stack); -#line 1391 "runtime.in" +#line 1414 "runtime.in" array *P=new array(0); if(s->empty()) {Stack->push<patharray*>(P); return;} @@ -1475,15 +1503,7 @@ void gen28(stack *Stack) std::ofstream ps(psname.c_str()); if(!ps) cannotwrite(psname); - ps << ASYo << newl - << "/ASY1 true def" << newl - << "/fill {ASY1 {(Z) " << currentpoint << "/ASY1 false def} if " - << pathforall << " (M) " << currentpoint - << "currentpoint newpath moveto } bind def" << newl - << "/stroke {ASY1 {(Z) " << currentpoint - << "/ASY1 false def} if strokepath " - << pathforall << " (M) " << currentpoint - << "currentpoint newpath moveto } bind def" << endl; + showpath(ps); ostringstream pipe; pipe << getSetting<string>("textcommand") << " '" << textname << "'"; @@ -1523,13 +1543,13 @@ void gen28(stack *Stack) {Stack->push<patharray*>(readpath(psname,keep,tenpercent,tenpercent)); return;} } -#line 1462 "runtime.in" +#line 1477 "runtime.in" // patharray* _strokepath(path g, pen p=CURRENTPEN); -void gen29(stack *Stack) +void gen30(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); path g=vm::pop<path>(Stack); -#line 1463 "runtime.in" +#line 1478 "runtime.in" array *P=new array(0); if(g.size() == 0) {Stack->push<patharray*>(P); return;} @@ -1539,8 +1559,9 @@ void gen29(stack *Stack) bbox b; psfile ps(psname,false); ps.prologue(b); - ps.verbatimline(ASYo); - ps.verbatimline("/stroke {(Z) "+currentpoint+pathforall+"} bind def"); + ps.verbatimline(ASYx); + ps.verbatimline(ASYy); + ps.verbatimline("/stroke {"+ASYinit+pathforall+"} bind def"); ps.resetpen(); ps.setpen(p); ps.write(g); @@ -1552,33 +1573,33 @@ void gen29(stack *Stack) {Stack->push<patharray*>(readpath(psname,getSetting<bool>("keep"))); return;} } -#line 1486 "runtime.in" +#line 1502 "runtime.in" // void _draw(picture *f, path g, pen p); -void gen30(stack *Stack) +void gen31(stack *Stack) { pen p=vm::pop<pen>(Stack); path g=vm::pop<path>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1487 "runtime.in" +#line 1503 "runtime.in" f->append(new drawPath(g,p)); } -#line 1491 "runtime.in" +#line 1507 "runtime.in" // void fill(picture *f, patharray *g, pen p=CURRENTPEN, bool copy=true); -void gen31(stack *Stack) +void gen32(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); pen p=vm::pop<pen>(Stack,CURRENTPEN); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1492 "runtime.in" +#line 1508 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawFill(*copyarray(g),false,p)); } -#line 1497 "runtime.in" +#line 1513 "runtime.in" // void latticeshade(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, penarray2 *p, bool copy=true); -void gen32(stack *Stack) +void gen33(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); penarray2 * p=vm::pop<penarray2 *>(Stack); @@ -1586,14 +1607,14 @@ void gen32(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1499 "runtime.in" +#line 1515 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawLatticeShade(*copyarray(g),stroke,fillrule,*copyarray(p))); } -#line 1504 "runtime.in" +#line 1520 "runtime.in" // void axialshade(picture *f, patharray *g, bool stroke=false, pen pena, pair a, pen penb, pair b, bool copy=true); -void gen33(stack *Stack) +void gen34(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); pair b=vm::pop<pair>(Stack); @@ -1603,14 +1624,14 @@ void gen33(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1506 "runtime.in" +#line 1522 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawAxialShade(*copyarray(g),stroke,pena,a,penb,b)); } -#line 1511 "runtime.in" +#line 1527 "runtime.in" // void radialshade(picture *f, patharray *g, bool stroke=false, pen pena, pair a, real ra, pen penb, pair b, real rb, bool copy=true); -void gen34(stack *Stack) +void gen35(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); real rb=vm::pop<real>(Stack); @@ -1622,14 +1643,14 @@ void gen34(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1513 "runtime.in" +#line 1529 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawRadialShade(*copyarray(g),stroke,pena,a,ra,penb,b,rb)); } -#line 1518 "runtime.in" +#line 1534 "runtime.in" // void gouraudshade(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, penarray *p, pairarray *z, Intarray *edges, bool copy=true); -void gen35(stack *Stack) +void gen36(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); Intarray * edges=vm::pop<Intarray *>(Stack); @@ -1639,7 +1660,7 @@ void gen35(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1521 "runtime.in" +#line 1537 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; checkArrays(p,z); checkArrays(z,edges); @@ -1647,9 +1668,9 @@ void gen35(stack *Stack) *copyarray(z),*copyarray(edges))); } -#line 1529 "runtime.in" +#line 1545 "runtime.in" // void gouraudshade(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, penarray *p, Intarray *edges, bool copy=true); -void gen36(stack *Stack) +void gen37(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); Intarray * edges=vm::pop<Intarray *>(Stack); @@ -1658,7 +1679,7 @@ void gen36(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1532 "runtime.in" +#line 1548 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; size_t n=checkArrays(p,edges); size_t m=checkArray(g); @@ -1679,9 +1700,9 @@ void gen36(stack *Stack) *z,*copyarray(edges))); } -#line 1553 "runtime.in" +#line 1569 "runtime.in" // void tensorshade(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, penarray2 *p, patharray *b=NULL, pairarray2 *z=emptyarray, bool copy=true); -void gen37(stack *Stack) +void gen38(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); pairarray2 * z=vm::pop<pairarray2 *>(Stack,emptyarray); @@ -1691,7 +1712,7 @@ void gen37(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1556 "runtime.in" +#line 1572 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; array *(*copyarray2)(array *a)=copy ? copyArray2: nop; if(b == NULL) b=g; @@ -1703,9 +1724,9 @@ void gen37(stack *Stack) *copyarray(b),*copyarray2(z))); } -#line 1568 "runtime.in" +#line 1584 "runtime.in" // void functionshade(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, string shader=emptystring, bool copy=true); -void gen38(stack *Stack) +void gen39(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); string shader=vm::pop<string>(Stack,emptystring); @@ -1713,176 +1734,176 @@ void gen38(stack *Stack) bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1571 "runtime.in" +#line 1587 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawFunctionShade(*copyarray(g),stroke,fillrule,shader)); } // Clip a picture to a superpath using the given fill rule. // Subsequent additions to the picture will not be affected by the clipping. -#line 1578 "runtime.in" +#line 1594 "runtime.in" // void clip(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, bool copy=true); -void gen39(stack *Stack) +void gen40(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); pen fillrule=vm::pop<pen>(Stack,CURRENTPEN); bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1580 "runtime.in" +#line 1596 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; drawClipBegin *begin=new drawClipBegin(*copyarray(g),stroke,fillrule,true); f->enclose(begin,new drawClipEnd(true,begin)); } -#line 1586 "runtime.in" +#line 1602 "runtime.in" // void beginclip(picture *f, patharray *g, bool stroke=false, pen fillrule=CURRENTPEN, bool copy=true); -void gen40(stack *Stack) +void gen41(stack *Stack) { bool copy=vm::pop<bool>(Stack,true); pen fillrule=vm::pop<pen>(Stack,CURRENTPEN); bool stroke=vm::pop<bool>(Stack,false); patharray * g=vm::pop<patharray *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1588 "runtime.in" +#line 1604 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; f->append(new drawClipBegin(*copyarray(g),stroke,fillrule,false)); } -#line 1593 "runtime.in" +#line 1609 "runtime.in" // void endclip(picture *f); -void gen41(stack *Stack) +void gen42(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1594 "runtime.in" +#line 1610 "runtime.in" f->append(new drawClipEnd(false)); } -#line 1598 "runtime.in" +#line 1614 "runtime.in" // void gsave(picture *f); -void gen42(stack *Stack) +void gen43(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1599 "runtime.in" +#line 1615 "runtime.in" f->append(new drawGsave()); } -#line 1603 "runtime.in" +#line 1619 "runtime.in" // void grestore(picture *f); -void gen43(stack *Stack) +void gen44(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1604 "runtime.in" +#line 1620 "runtime.in" f->append(new drawGrestore()); } -#line 1608 "runtime.in" +#line 1624 "runtime.in" // void begingroup(picture *f); -void gen44(stack *Stack) +void gen45(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1609 "runtime.in" +#line 1625 "runtime.in" f->append(new drawBegin()); } -#line 1613 "runtime.in" +#line 1629 "runtime.in" // void endgroup(picture *f); -void gen45(stack *Stack) +void gen46(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1614 "runtime.in" +#line 1630 "runtime.in" f->append(new drawEnd()); } -#line 1618 "runtime.in" +#line 1634 "runtime.in" // void add(picture *dest, picture *src); -void gen46(stack *Stack) +void gen47(stack *Stack) { picture * src=vm::pop<picture *>(Stack); picture * dest=vm::pop<picture *>(Stack); -#line 1619 "runtime.in" +#line 1635 "runtime.in" dest->add(*src); } -#line 1623 "runtime.in" +#line 1639 "runtime.in" // void prepend(picture *dest, picture *src); -void gen47(stack *Stack) +void gen48(stack *Stack) { picture * src=vm::pop<picture *>(Stack); picture * dest=vm::pop<picture *>(Stack); -#line 1624 "runtime.in" +#line 1640 "runtime.in" dest->prepend(*src); } -#line 1628 "runtime.in" +#line 1644 "runtime.in" // void postscript(picture *f, string s); -void gen48(stack *Stack) +void gen49(stack *Stack) { string s=vm::pop<string>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1629 "runtime.in" +#line 1645 "runtime.in" f->append(new drawVerbatim(PostScript,s)); } -#line 1633 "runtime.in" +#line 1649 "runtime.in" // void tex(picture *f, string s); -void gen49(stack *Stack) +void gen50(stack *Stack) { string s=vm::pop<string>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1634 "runtime.in" +#line 1650 "runtime.in" f->append(new drawVerbatim(TeX,s)); } -#line 1638 "runtime.in" +#line 1654 "runtime.in" // void postscript(picture *f, string s, pair min, pair max); -void gen50(stack *Stack) +void gen51(stack *Stack) { pair max=vm::pop<pair>(Stack); pair min=vm::pop<pair>(Stack); string s=vm::pop<string>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1639 "runtime.in" +#line 1655 "runtime.in" f->append(new drawVerbatim(PostScript,s,min,max)); } -#line 1643 "runtime.in" +#line 1659 "runtime.in" // void tex(picture *f, string s, pair min, pair max); -void gen51(stack *Stack) +void gen52(stack *Stack) { pair max=vm::pop<pair>(Stack); pair min=vm::pop<pair>(Stack); string s=vm::pop<string>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1644 "runtime.in" +#line 1660 "runtime.in" f->append(new drawVerbatim(TeX,s,min,max)); } -#line 1648 "runtime.in" +#line 1664 "runtime.in" // void texpreamble(string s); -void gen52(stack *Stack) +void gen53(stack *Stack) { string s=vm::pop<string>(Stack); -#line 1649 "runtime.in" +#line 1665 "runtime.in" string t=s+"\n"; processDataStruct &pd=processData(); pd.TeXpipepreamble.push_back(t); pd.TeXpreamble.push_back(t); } -#line 1656 "runtime.in" +#line 1672 "runtime.in" // void deletepreamble(); -void gen53(stack *) +void gen54(stack *) { -#line 1657 "runtime.in" +#line 1673 "runtime.in" if(getSetting<bool>("inlinetex")) { unlink(auxname(outname(),"pre").c_str()); } } -#line 1663 "runtime.in" +#line 1679 "runtime.in" // void _labelpath(picture *f, string s, string size, path g, string justify, pair offset, pen p); -void gen54(stack *Stack) +void gen55(stack *Stack) { pen p=vm::pop<pen>(Stack); pair offset=vm::pop<pair>(Stack); @@ -1891,42 +1912,42 @@ void gen54(stack *Stack) string size=vm::pop<string>(Stack); string s=vm::pop<string>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1665 "runtime.in" +#line 1681 "runtime.in" f->append(new drawLabelPath(s,size,g,justify,offset,p)); } -#line 1669 "runtime.in" +#line 1685 "runtime.in" // void texreset(); -void gen55(stack *) +void gen56(stack *) { -#line 1670 "runtime.in" +#line 1686 "runtime.in" processDataStruct &pd=processData(); pd.TeXpipepreamble.clear(); pd.TeXpreamble.clear(); pd.tex.pipeclose(); } -#line 1677 "runtime.in" +#line 1693 "runtime.in" // void layer(picture *f); -void gen56(stack *Stack) +void gen57(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1678 "runtime.in" +#line 1694 "runtime.in" f->append(new drawLayer()); } -#line 1682 "runtime.in" +#line 1698 "runtime.in" // void newpage(picture *f); -void gen57(stack *Stack) +void gen58(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 1683 "runtime.in" +#line 1699 "runtime.in" f->append(new drawNewPage()); } -#line 1687 "runtime.in" +#line 1703 "runtime.in" // void _image(picture *f, realarray2 *data, pair initial, pair final, penarray *palette=NULL, transform t=identity, bool copy=true, bool antialias=false); -void gen58(stack *Stack) +void gen59(stack *Stack) { bool antialias=vm::pop<bool>(Stack,false); bool copy=vm::pop<bool>(Stack,true); @@ -1936,16 +1957,16 @@ void gen58(stack *Stack) pair initial=vm::pop<pair>(Stack); realarray2 * data=vm::pop<realarray2 *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1690 "runtime.in" +#line 1706 "runtime.in" array *(*copyarray)(array *a)=copy ? copyArray: nop; array *(*copyarray2)(array *a)=copy ? copyArray2: nop; f->append(new drawImage(*copyarray2(data),*copyarray(palette), t*matrix(initial,final),antialias)); } -#line 1697 "runtime.in" +#line 1713 "runtime.in" // void _image(picture *f, penarray2 *data, pair initial, pair final, transform t=identity, bool copy=true, bool antialias=false); -void gen59(stack *Stack) +void gen60(stack *Stack) { bool antialias=vm::pop<bool>(Stack,false); bool copy=vm::pop<bool>(Stack,true); @@ -1954,38 +1975,38 @@ void gen59(stack *Stack) pair initial=vm::pop<pair>(Stack); penarray2 * data=vm::pop<penarray2 *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 1699 "runtime.in" +#line 1715 "runtime.in" array *(*copyarray2)(array *a)=copy ? copyArray2: nop; f->append(new drawImage(*copyarray2(data),t*matrix(initial,final),antialias)); } -#line 1704 "runtime.in" +#line 1720 "runtime.in" // string nativeformat(); -void gen60(stack *Stack) +void gen61(stack *Stack) { -#line 1705 "runtime.in" +#line 1721 "runtime.in" {Stack->push<string>(nativeformat()); return;} } -#line 1709 "runtime.in" +#line 1725 "runtime.in" // bool latex(); -void gen61(stack *Stack) +void gen62(stack *Stack) { -#line 1710 "runtime.in" +#line 1726 "runtime.in" {Stack->push<bool>(latex(getSetting<string>("tex"))); return;} } -#line 1714 "runtime.in" +#line 1730 "runtime.in" // bool pdf(); -void gen62(stack *Stack) +void gen63(stack *Stack) { -#line 1715 "runtime.in" +#line 1731 "runtime.in" {Stack->push<bool>(pdf(getSetting<string>("tex"))); return;} } -#line 1719 "runtime.in" +#line 1735 "runtime.in" // void shipout(string prefix=emptystring, picture *f, picture *preamble=NULL, string format=emptystring, bool wait=false, bool view=true, callableTransform *xform); -void gen63(stack *Stack) +void gen64(stack *Stack) { callableTransform * xform=vm::pop<callableTransform *>(Stack); bool view=vm::pop<bool>(Stack,true); @@ -1994,7 +2015,7 @@ void gen63(stack *Stack) picture * preamble=vm::pop<picture *>(Stack,NULL); picture * f=vm::pop<picture *>(Stack); string prefix=vm::pop<string>(Stack,emptystring); -#line 1722 "runtime.in" +#line 1738 "runtime.in" if(prefix.empty()) prefix=outname(); picture *result=new picture; @@ -2037,9 +2058,9 @@ void gen63(stack *Stack) result->shipout(preamble,prefix,format,0.0,wait,view); } -#line 1765 "runtime.in" +#line 1781 "runtime.in" // void shipout3(string prefix, picture *f, string format=emptystring, real width, real height, real angle, triple m, triple M, realarray2 *t, realarray *background, triplearray *lights, realarray2 *diffuse, realarray2 *ambient, realarray2 *specular, bool viewportlighting, bool view=true); -void gen64(stack *Stack) +void gen65(stack *Stack) { bool view=vm::pop<bool>(Stack,true); bool viewportlighting=vm::pop<bool>(Stack); @@ -2057,7 +2078,7 @@ void gen64(stack *Stack) string format=vm::pop<string>(Stack,emptystring); picture * f=vm::pop<picture *>(Stack); string prefix=vm::pop<string>(Stack); -#line 1770 "runtime.in" +#line 1786 "runtime.in" size_t n=checkArrays(lights,diffuse); checkEqual(n,checkArray(ambient)); checkEqual(n,checkArray(specular)); @@ -2068,25 +2089,25 @@ void gen64(stack *Stack) copyArray2C(specular,false,4),viewportlighting,view); } -#line 1781 "runtime.in" +#line 1797 "runtime.in" // void shipout3(string prefix, picture *f); -void gen65(stack *Stack) +void gen66(stack *Stack) { picture * f=vm::pop<picture *>(Stack); string prefix=vm::pop<string>(Stack); -#line 1782 "runtime.in" +#line 1798 "runtime.in" f->shipout3(prefix); } -#line 1786 "runtime.in" +#line 1802 "runtime.in" // void deconstruct(picture *f, picture *preamble=NULL, real magnification=1, callableTransform *xform); -void gen66(stack *Stack) +void gen67(stack *Stack) { callableTransform * xform=vm::pop<callableTransform *>(Stack); real magnification=vm::pop<real>(Stack,1); picture * preamble=vm::pop<picture *>(Stack,NULL); picture * f=vm::pop<picture *>(Stack); -#line 1788 "runtime.in" +#line 1804 "runtime.in" unsigned level=0; unsigned n=0; @@ -2217,214 +2238,214 @@ void gen66(stack *Stack) } } -#line 1919 "runtime.in" +#line 1935 "runtime.in" // void purge(Int divisor=0); -void gen67(stack *Stack) +void gen68(stack *Stack) { Int divisor=vm::pop<Int>(Stack,0); -#line 1920 "runtime.in" +#line 1936 "runtime.in" purge(divisor); } // Pen operations -#line 1926 "runtime.in" +#line 1942 "runtime.in" void newPen(stack *Stack) { -#line 1927 "runtime.in" +#line 1943 "runtime.in" {Stack->push<pen>(pen()); return;} } -#line 1932 "runtime.in" +#line 1948 "runtime.in" // bool ==(pen a, pen b); -void gen69(stack *Stack) +void gen70(stack *Stack) { pen b=vm::pop<pen>(Stack); pen a=vm::pop<pen>(Stack); -#line 1933 "runtime.in" +#line 1949 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 1937 "runtime.in" +#line 1953 "runtime.in" // bool !=(pen a, pen b); -void gen70(stack *Stack) +void gen71(stack *Stack) { pen b=vm::pop<pen>(Stack); pen a=vm::pop<pen>(Stack); -#line 1938 "runtime.in" +#line 1954 "runtime.in" {Stack->push<bool>(a != b); return;} } -#line 1942 "runtime.in" +#line 1958 "runtime.in" // pen +(pen a, pen b); -void gen71(stack *Stack) +void gen72(stack *Stack) { pen b=vm::pop<pen>(Stack); pen a=vm::pop<pen>(Stack); -#line 1943 "runtime.in" +#line 1959 "runtime.in" {Stack->push<pen>(a+b); return;} } -#line 1947 "runtime.in" +#line 1963 "runtime.in" // pen *(real a, pen b); -void gen72(stack *Stack) +void gen73(stack *Stack) { pen b=vm::pop<pen>(Stack); real a=vm::pop<real>(Stack); -#line 1948 "runtime.in" +#line 1964 "runtime.in" {Stack->push<pen>(a*b); return;} } -#line 1952 "runtime.in" +#line 1968 "runtime.in" // pen *(pen a, real b); -void gen73(stack *Stack) +void gen74(stack *Stack) { real b=vm::pop<real>(Stack); pen a=vm::pop<pen>(Stack); -#line 1953 "runtime.in" +#line 1969 "runtime.in" {Stack->push<pen>(b*a); return;} } -#line 1957 "runtime.in" +#line 1973 "runtime.in" // pair max(pen p); -void gen74(stack *Stack) +void gen75(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 1958 "runtime.in" +#line 1974 "runtime.in" {Stack->push<pair>(p.bounds().Max()); return;} } -#line 1962 "runtime.in" +#line 1978 "runtime.in" // pair min(pen p); -void gen75(stack *Stack) +void gen76(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 1963 "runtime.in" +#line 1979 "runtime.in" {Stack->push<pair>(p.bounds().Min()); return;} } // Reset the meaning of pen default attributes. -#line 1968 "runtime.in" +#line 1984 "runtime.in" // void resetdefaultpen(); -void gen76(stack *) +void gen77(stack *) { -#line 1969 "runtime.in" +#line 1985 "runtime.in" processData().defaultpen=camp::pen::initialpen(); } -#line 1973 "runtime.in" +#line 1989 "runtime.in" // void defaultpen(pen p); -void gen77(stack *Stack) +void gen78(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 1974 "runtime.in" +#line 1990 "runtime.in" processData().defaultpen=pen(resolvepen,p); } -#line 1978 "runtime.in" +#line 1994 "runtime.in" // pen defaultpen(); -void gen78(stack *Stack) +void gen79(stack *Stack) { -#line 1979 "runtime.in" +#line 1995 "runtime.in" {Stack->push<pen>(processData().defaultpen); return;} } -#line 1983 "runtime.in" +#line 1999 "runtime.in" // bool invisible(pen p); -void gen79(stack *Stack) +void gen80(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 1984 "runtime.in" +#line 2000 "runtime.in" {Stack->push<bool>(p.invisible()); return;} } -#line 1988 "runtime.in" +#line 2004 "runtime.in" // pen invisible(); -void gen80(stack *Stack) +void gen81(stack *Stack) { -#line 1989 "runtime.in" +#line 2005 "runtime.in" {Stack->push<pen>(pen(invisiblepen)); return;} } -#line 1993 "runtime.in" +#line 2009 "runtime.in" // pen gray(pen p); -void gen81(stack *Stack) +void gen82(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 1994 "runtime.in" +#line 2010 "runtime.in" p.togrey(); {Stack->push<pen>(p); return;} } -#line 1999 "runtime.in" +#line 2015 "runtime.in" // pen rgb(pen p); -void gen82(stack *Stack) +void gen83(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2000 "runtime.in" +#line 2016 "runtime.in" p.torgb(); {Stack->push<pen>(p); return;} } -#line 2005 "runtime.in" +#line 2021 "runtime.in" // pen cmyk(pen p); -void gen83(stack *Stack) +void gen84(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2006 "runtime.in" +#line 2022 "runtime.in" p.tocmyk(); {Stack->push<pen>(p); return;} } -#line 2011 "runtime.in" +#line 2027 "runtime.in" // pen interp(pen a, pen b, real t); -void gen84(stack *Stack) +void gen85(stack *Stack) { real t=vm::pop<real>(Stack); pen b=vm::pop<pen>(Stack); pen a=vm::pop<pen>(Stack); -#line 2012 "runtime.in" +#line 2028 "runtime.in" {Stack->push<pen>(interpolate(a,b,t)); return;} } -#line 2016 "runtime.in" +#line 2032 "runtime.in" // pen rgb(real r, real g, real b); -void gen85(stack *Stack) +void gen86(stack *Stack) { real b=vm::pop<real>(Stack); real g=vm::pop<real>(Stack); real r=vm::pop<real>(Stack); -#line 2017 "runtime.in" +#line 2033 "runtime.in" {Stack->push<pen>(pen(r,g,b)); return;} } -#line 2021 "runtime.in" +#line 2037 "runtime.in" // pen cmyk(real c, real m, real y, real k); -void gen86(stack *Stack) +void gen87(stack *Stack) { real k=vm::pop<real>(Stack); real y=vm::pop<real>(Stack); real m=vm::pop<real>(Stack); real c=vm::pop<real>(Stack); -#line 2022 "runtime.in" +#line 2038 "runtime.in" {Stack->push<pen>(pen(c,m,y,k)); return;} } -#line 2026 "runtime.in" +#line 2042 "runtime.in" // pen gray(real gray); -void gen87(stack *Stack) +void gen88(stack *Stack) { real gray=vm::pop<real>(Stack); -#line 2027 "runtime.in" +#line 2043 "runtime.in" {Stack->push<pen>(pen(gray)); return;} } -#line 2031 "runtime.in" +#line 2047 "runtime.in" // realarray* colors(pen p); -void gen88(stack *Stack) +void gen89(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2032 "runtime.in" +#line 2048 "runtime.in" size_t n=ColorComponents[p.colorspace()]; array *a=new array(n); @@ -2451,60 +2472,60 @@ void gen88(stack *Stack) {Stack->push<realarray*>(a); return;} } -#line 2059 "runtime.in" +#line 2075 "runtime.in" // string colorspace(pen p); -void gen89(stack *Stack) +void gen90(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2060 "runtime.in" +#line 2076 "runtime.in" string s=ColorDeviceSuffix[p.colorspace()]; std::transform(s.begin(),s.end(),s.begin(),tolower); {Stack->push<string>(s); return;} } -#line 2066 "runtime.in" +#line 2082 "runtime.in" // pen pattern(string *s); -void gen90(stack *Stack) +void gen91(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 2067 "runtime.in" +#line 2083 "runtime.in" {Stack->push<pen>(pen(setpattern,*s)); return;} } -#line 2071 "runtime.in" +#line 2087 "runtime.in" // string pattern(pen p); -void gen91(stack *Stack) +void gen92(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2072 "runtime.in" +#line 2088 "runtime.in" {Stack->push<string>(p.fillpattern()); return;} } -#line 2076 "runtime.in" +#line 2092 "runtime.in" // pen fillrule(Int n); -void gen92(stack *Stack) +void gen93(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 2077 "runtime.in" +#line 2093 "runtime.in" {Stack->push<pen>(pen(n >= 0 && n < nFill ? (FillRule) n : DEFFILL)); return;} } -#line 2081 "runtime.in" +#line 2097 "runtime.in" // Int fillrule(pen p); -void gen93(stack *Stack) +void gen94(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2082 "runtime.in" +#line 2098 "runtime.in" {Stack->push<Int>(p.Fillrule()); return;} } -#line 2086 "runtime.in" +#line 2102 "runtime.in" // pen opacity(real opacity=1.0, string blend=defaulttransparency); -void gen94(stack *Stack) +void gen95(stack *Stack) { string blend=vm::pop<string>(Stack,defaulttransparency); real opacity=vm::pop<real>(Stack,1.0); -#line 2087 "runtime.in" +#line 2103 "runtime.in" for(Int i=0; i < nBlendMode; ++i) if(blend == BlendMode[i]) {Stack->push<pen>(pen(Transparency(blend,opacity))); return;} @@ -2513,357 +2534,357 @@ void gen94(stack *Stack) error(buf); } -#line 2096 "runtime.in" +#line 2112 "runtime.in" // real opacity(pen p); -void gen95(stack *Stack) +void gen96(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2097 "runtime.in" +#line 2113 "runtime.in" {Stack->push<real>(p.opacity()); return;} } -#line 2101 "runtime.in" +#line 2117 "runtime.in" // string blend(pen p); -void gen96(stack *Stack) +void gen97(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2102 "runtime.in" +#line 2118 "runtime.in" {Stack->push<string>(p.blend()); return;} } -#line 2106 "runtime.in" +#line 2122 "runtime.in" // pen linetype(string *s, real offset=0, bool scale=true, bool adjust=true); -void gen97(stack *Stack) +void gen98(stack *Stack) { bool adjust=vm::pop<bool>(Stack,true); bool scale=vm::pop<bool>(Stack,true); real offset=vm::pop<real>(Stack,0); string * s=vm::pop<string *>(Stack); -#line 2107 "runtime.in" +#line 2123 "runtime.in" {Stack->push<pen>(pen(LineType(*s,offset,scale,adjust))); return;} } -#line 2111 "runtime.in" +#line 2127 "runtime.in" // string linetype(pen p=CURRENTPEN); -void gen98(stack *Stack) +void gen99(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2112 "runtime.in" +#line 2128 "runtime.in" {Stack->push<string>(p.stroke()); return;} } -#line 2116 "runtime.in" +#line 2132 "runtime.in" // real offset(pen p); -void gen99(stack *Stack) +void gen100(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2117 "runtime.in" +#line 2133 "runtime.in" {Stack->push<real>(p.linetype().offset); return;} } -#line 2121 "runtime.in" +#line 2137 "runtime.in" // bool scale(pen p); -void gen100(stack *Stack) +void gen101(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2122 "runtime.in" +#line 2138 "runtime.in" {Stack->push<bool>(p.linetype().scale); return;} } -#line 2126 "runtime.in" +#line 2142 "runtime.in" // bool adjust(pen p); -void gen101(stack *Stack) +void gen102(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2127 "runtime.in" +#line 2143 "runtime.in" {Stack->push<bool>(p.linetype().adjust); return;} } -#line 2131 "runtime.in" +#line 2147 "runtime.in" // pen adjust(pen p, real arclength, bool cyclic); -void gen102(stack *Stack) +void gen103(stack *Stack) { bool cyclic=vm::pop<bool>(Stack); real arclength=vm::pop<real>(Stack); pen p=vm::pop<pen>(Stack); -#line 2132 "runtime.in" +#line 2148 "runtime.in" {Stack->push<pen>(adjustdash(p,arclength,cyclic)); return;} } -#line 2136 "runtime.in" +#line 2152 "runtime.in" // pen linecap(Int n); -void gen103(stack *Stack) +void gen104(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 2137 "runtime.in" +#line 2153 "runtime.in" {Stack->push<pen>(pen(setlinecap,n >= 0 && n < nCap ? n : DEFCAP)); return;} } -#line 2141 "runtime.in" +#line 2157 "runtime.in" // Int linecap(pen p=CURRENTPEN); -void gen104(stack *Stack) +void gen105(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2142 "runtime.in" +#line 2158 "runtime.in" {Stack->push<Int>(p.cap()); return;} } -#line 2146 "runtime.in" +#line 2162 "runtime.in" // pen linejoin(Int n); -void gen105(stack *Stack) +void gen106(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 2147 "runtime.in" +#line 2163 "runtime.in" {Stack->push<pen>(pen(setlinejoin,n >= 0 && n < nJoin ? n : DEFJOIN)); return;} } -#line 2151 "runtime.in" +#line 2167 "runtime.in" // Int linejoin(pen p=CURRENTPEN); -void gen106(stack *Stack) +void gen107(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2152 "runtime.in" +#line 2168 "runtime.in" {Stack->push<Int>(p.join()); return;} } -#line 2156 "runtime.in" +#line 2172 "runtime.in" // pen miterlimit(real x); -void gen107(stack *Stack) +void gen108(stack *Stack) { real x=vm::pop<real>(Stack); -#line 2157 "runtime.in" +#line 2173 "runtime.in" {Stack->push<pen>(pen(setmiterlimit,x >= 1.0 ? x : DEFJOIN)); return;} } -#line 2161 "runtime.in" +#line 2177 "runtime.in" // real miterlimit(pen p=CURRENTPEN); -void gen108(stack *Stack) +void gen109(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2162 "runtime.in" +#line 2178 "runtime.in" {Stack->push<real>(p.miter()); return;} } -#line 2166 "runtime.in" +#line 2182 "runtime.in" // pen linewidth(real x); -void gen109(stack *Stack) +void gen110(stack *Stack) { real x=vm::pop<real>(Stack); -#line 2167 "runtime.in" +#line 2183 "runtime.in" {Stack->push<pen>(pen(setlinewidth,x >= 0.0 ? x : DEFWIDTH)); return;} } -#line 2171 "runtime.in" +#line 2187 "runtime.in" // real linewidth(pen p=CURRENTPEN); -void gen110(stack *Stack) +void gen111(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2172 "runtime.in" +#line 2188 "runtime.in" {Stack->push<real>(p.width()); return;} } -#line 2176 "runtime.in" +#line 2192 "runtime.in" // pen fontcommand(string *s); -void gen111(stack *Stack) +void gen112(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 2177 "runtime.in" +#line 2193 "runtime.in" {Stack->push<pen>(pen(setfont,*s)); return;} } -#line 2181 "runtime.in" +#line 2197 "runtime.in" // string font(pen p=CURRENTPEN); -void gen112(stack *Stack) +void gen113(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2182 "runtime.in" +#line 2198 "runtime.in" {Stack->push<string>(p.Font()); return;} } -#line 2186 "runtime.in" +#line 2202 "runtime.in" // pen fontsize(real size, real lineskip); -void gen113(stack *Stack) +void gen114(stack *Stack) { real lineskip=vm::pop<real>(Stack); real size=vm::pop<real>(Stack); -#line 2187 "runtime.in" +#line 2203 "runtime.in" {Stack->push<pen>(pen(setfontsize,size > 0.0 ? size : 0.0, lineskip > 0.0 ? lineskip : 0.0)); return;} } -#line 2192 "runtime.in" +#line 2208 "runtime.in" // real fontsize(pen p=CURRENTPEN); -void gen114(stack *Stack) +void gen115(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2193 "runtime.in" +#line 2209 "runtime.in" {Stack->push<real>(p.size()); return;} } -#line 2197 "runtime.in" +#line 2213 "runtime.in" // real lineskip(pen p=CURRENTPEN); -void gen115(stack *Stack) +void gen116(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2198 "runtime.in" +#line 2214 "runtime.in" {Stack->push<real>(p.Lineskip()); return;} } -#line 2202 "runtime.in" +#line 2218 "runtime.in" // pen overwrite(Int n); -void gen116(stack *Stack) +void gen117(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 2203 "runtime.in" +#line 2219 "runtime.in" {Stack->push<pen>(pen(setoverwrite,n >= 0 && n < nOverwrite ? (overwrite_t) n : DEFWRITE)); return;} } -#line 2208 "runtime.in" +#line 2224 "runtime.in" // Int overwrite(pen p=CURRENTPEN); -void gen117(stack *Stack) +void gen118(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2209 "runtime.in" +#line 2225 "runtime.in" {Stack->push<Int>(p.Overwrite()); return;} } -#line 2213 "runtime.in" +#line 2229 "runtime.in" // pen basealign(Int n); -void gen118(stack *Stack) +void gen119(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 2214 "runtime.in" +#line 2230 "runtime.in" {Stack->push<pen>(pen(n >= 0 && n < nBaseLine ? (BaseLine) n : DEFBASE)); return;} } -#line 2218 "runtime.in" +#line 2234 "runtime.in" // Int basealign(pen p=CURRENTPEN); -void gen119(stack *Stack) +void gen120(stack *Stack) { pen p=vm::pop<pen>(Stack,CURRENTPEN); -#line 2219 "runtime.in" +#line 2235 "runtime.in" {Stack->push<Int>(p.Baseline()); return;} } -#line 2223 "runtime.in" +#line 2239 "runtime.in" // transform transform(pen p); -void gen120(stack *Stack) +void gen121(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2224 "runtime.in" +#line 2240 "runtime.in" {Stack->push<transform>(p.getTransform()); return;} } -#line 2228 "runtime.in" +#line 2244 "runtime.in" // path nib(pen p); -void gen121(stack *Stack) +void gen122(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2229 "runtime.in" +#line 2245 "runtime.in" {Stack->push<path>(p.Path()); return;} } -#line 2233 "runtime.in" +#line 2249 "runtime.in" // pen makepen(path p); -void gen122(stack *Stack) +void gen123(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2234 "runtime.in" +#line 2250 "runtime.in" {Stack->push<pen>(pen(p)); return;} } -#line 2238 "runtime.in" +#line 2254 "runtime.in" // pen colorless(pen p); -void gen123(stack *Stack) +void gen124(stack *Stack) { pen p=vm::pop<pen>(Stack); -#line 2239 "runtime.in" +#line 2255 "runtime.in" p.colorless(); {Stack->push<pen>(p); return;} } // Interactive mode -#line 2245 "runtime.in" +#line 2261 "runtime.in" // bool interactive(); -void gen124(stack *Stack) +void gen125(stack *Stack) { -#line 2246 "runtime.in" +#line 2262 "runtime.in" {Stack->push<bool>(interact::interactive); return;} } -#line 2251 "runtime.in" +#line 2267 "runtime.in" // bool uptodate(); -void gen125(stack *Stack) +void gen126(stack *Stack) { -#line 2252 "runtime.in" +#line 2268 "runtime.in" {Stack->push<bool>(interact::uptodate); return;} } // System commands -#line 2258 "runtime.in" +#line 2274 "runtime.in" // Int system(string s); -void gen126(stack *Stack) +void gen127(stack *Stack) { string s=vm::pop<string>(Stack); -#line 2259 "runtime.in" +#line 2275 "runtime.in" if(safe) error("system() call disabled; override with option -nosafe"); if(s.empty()) {Stack->push<Int>(0); return;} else {Stack->push<Int>(System(s.c_str())); return;} } -#line 2266 "runtime.in" +#line 2282 "runtime.in" // bool view(); -void gen127(stack *Stack) +void gen128(stack *Stack) { -#line 2267 "runtime.in" +#line 2283 "runtime.in" {Stack->push<bool>(view()); return;} } -#line 2271 "runtime.in" +#line 2287 "runtime.in" // string asydir(); -void gen128(stack *Stack) +void gen129(stack *Stack) { -#line 2272 "runtime.in" +#line 2288 "runtime.in" {Stack->push<string>(systemDir); return;} } -#line 2276 "runtime.in" +#line 2292 "runtime.in" // string locale(string s=emptystring); -void gen129(stack *Stack) +void gen130(stack *Stack) { string s=vm::pop<string>(Stack,emptystring); -#line 2277 "runtime.in" +#line 2293 "runtime.in" char *L=setlocale(LC_ALL,s.empty() ? NULL : s.c_str()); {Stack->push<string>(L != NULL ? string(L) : ""); return;} } -#line 2282 "runtime.in" +#line 2298 "runtime.in" // void abort(string s=emptystring); -void gen130(stack *Stack) +void gen131(stack *Stack) { string s=vm::pop<string>(Stack,emptystring); -#line 2283 "runtime.in" +#line 2299 "runtime.in" if(s.empty()) throw handled_error(); error(s.c_str()); } -#line 2288 "runtime.in" +#line 2304 "runtime.in" // void exit(); -void gen131(stack *) +void gen132(stack *) { -#line 2289 "runtime.in" +#line 2305 "runtime.in" throw quit(); } -#line 2293 "runtime.in" +#line 2309 "runtime.in" // void assert(bool b, string s=emptystring); -void gen132(stack *Stack) +void gen133(stack *Stack) { string s=vm::pop<string>(Stack,emptystring); bool b=vm::pop<bool>(Stack); -#line 2294 "runtime.in" +#line 2310 "runtime.in" flush(cout); if(!b) { ostringstream buf; @@ -2873,34 +2894,34 @@ void gen132(stack *Stack) } } -#line 2304 "runtime.in" +#line 2320 "runtime.in" // void sleep(Int seconds); -void gen133(stack *Stack) +void gen134(stack *Stack) { Int seconds=vm::pop<Int>(Stack); -#line 2305 "runtime.in" +#line 2321 "runtime.in" if(seconds <= 0) return; sleep(seconds); } -#line 2310 "runtime.in" +#line 2326 "runtime.in" // void usleep(Int microseconds); -void gen134(stack *Stack) +void gen135(stack *Stack) { Int microseconds=vm::pop<Int>(Stack); -#line 2311 "runtime.in" +#line 2327 "runtime.in" if(microseconds <= 0) return; usleep((unsigned long) microseconds); } -#line 2316 "runtime.in" +#line 2332 "runtime.in" // void _eval(string *s, bool embedded, bool interactiveWrite=false); -void gen135(stack *Stack) +void gen136(stack *Stack) { bool interactiveWrite=vm::pop<bool>(Stack,false); bool embedded=vm::pop<bool>(Stack); string * s=vm::pop<string *>(Stack); -#line 2317 "runtime.in" +#line 2333 "runtime.in" if (embedded) { trans::coenv *e=Stack->getEnvironment(); vm::interactiveStack *is=dynamic_cast<vm::interactiveStack *>(Stack); @@ -2914,13 +2935,13 @@ void gen135(stack *Stack) } } -#line 2331 "runtime.in" +#line 2347 "runtime.in" // void _eval(runnable *s, bool embedded); -void gen136(stack *Stack) +void gen137(stack *Stack) { bool embedded=vm::pop<bool>(Stack); runnable * s=vm::pop<runnable *>(Stack); -#line 2332 "runtime.in" +#line 2348 "runtime.in" absyntax::block *ast=new absyntax::block(s->getPos(), false); ast->add(s); @@ -2937,42 +2958,42 @@ void gen136(stack *Stack) } } -#line 2349 "runtime.in" +#line 2365 "runtime.in" // string location(); -void gen137(stack *Stack) +void gen138(stack *Stack) { -#line 2350 "runtime.in" +#line 2366 "runtime.in" ostringstream buf; buf << getPos(); {Stack->push<string>(buf.str()); return;} } // Wrapper for the stack::load() method. -#line 2356 "runtime.in" +#line 2372 "runtime.in" void loadModule(stack *Stack) { string * index=vm::pop<string *>(Stack); -#line 2357 "runtime.in" +#line 2373 "runtime.in" Stack->load(*index); } -#line 2361 "runtime.in" +#line 2377 "runtime.in" // string cd(string s=emptystring); -void gen139(stack *Stack) +void gen140(stack *Stack) { string s=vm::pop<string>(Stack,emptystring); -#line 2362 "runtime.in" +#line 2378 "runtime.in" if(!s.empty() && !globalwrite()) writeDisabled(); {Stack->push<string>(setPath(s.c_str())); return;} } -#line 2367 "runtime.in" +#line 2383 "runtime.in" // void list(string *s, bool imports=false); -void gen140(stack *Stack) +void gen141(stack *Stack) { bool imports=vm::pop<bool>(Stack,false); string * s=vm::pop<string *>(Stack); -#line 2368 "runtime.in" +#line 2384 "runtime.in" if(*s == "-") return; trans::genv ge; symbol *name=symbol::trans(*s); @@ -2982,144 +3003,144 @@ void gen140(stack *Stack) // Path operations -#line 2378 "runtime.in" +#line 2394 "runtime.in" void nullPath(stack *Stack) { -#line 2379 "runtime.in" +#line 2395 "runtime.in" {Stack->push<path>(nullpath); return;} } -#line 2384 "runtime.in" +#line 2400 "runtime.in" // bool ==(path a, path b); -void gen142(stack *Stack) +void gen143(stack *Stack) { path b=vm::pop<path>(Stack); path a=vm::pop<path>(Stack); -#line 2385 "runtime.in" +#line 2401 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 2389 "runtime.in" +#line 2405 "runtime.in" // bool !=(path a, path b); -void gen143(stack *Stack) +void gen144(stack *Stack) { path b=vm::pop<path>(Stack); path a=vm::pop<path>(Stack); -#line 2390 "runtime.in" +#line 2406 "runtime.in" {Stack->push<bool>(!(a == b)); return;} } -#line 2394 "runtime.in" +#line 2410 "runtime.in" // pair point(path p, Int t); -void gen144(stack *Stack) +void gen145(stack *Stack) { Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2395 "runtime.in" +#line 2411 "runtime.in" {Stack->push<pair>(p.point((Int) t)); return;} } -#line 2399 "runtime.in" +#line 2415 "runtime.in" // pair point(path p, real t); -void gen145(stack *Stack) +void gen146(stack *Stack) { real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2400 "runtime.in" +#line 2416 "runtime.in" {Stack->push<pair>(p.point(t)); return;} } -#line 2404 "runtime.in" +#line 2420 "runtime.in" // pair precontrol(path p, Int t); -void gen146(stack *Stack) +void gen147(stack *Stack) { Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2405 "runtime.in" +#line 2421 "runtime.in" {Stack->push<pair>(p.precontrol((Int) t)); return;} } -#line 2409 "runtime.in" +#line 2425 "runtime.in" // pair precontrol(path p, real t); -void gen147(stack *Stack) +void gen148(stack *Stack) { real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2410 "runtime.in" +#line 2426 "runtime.in" {Stack->push<pair>(p.precontrol(t)); return;} } -#line 2414 "runtime.in" +#line 2430 "runtime.in" // pair postcontrol(path p, Int t); -void gen148(stack *Stack) +void gen149(stack *Stack) { Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2415 "runtime.in" +#line 2431 "runtime.in" {Stack->push<pair>(p.postcontrol((Int) t)); return;} } -#line 2419 "runtime.in" +#line 2435 "runtime.in" // pair postcontrol(path p, real t); -void gen149(stack *Stack) +void gen150(stack *Stack) { real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2420 "runtime.in" +#line 2436 "runtime.in" {Stack->push<pair>(p.postcontrol(t)); return;} } -#line 2424 "runtime.in" +#line 2440 "runtime.in" // pair dir(path p, Int t, Int sign=0, bool normalize=true); -void gen150(stack *Stack) +void gen151(stack *Stack) { bool normalize=vm::pop<bool>(Stack,true); Int sign=vm::pop<Int>(Stack,0); Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2425 "runtime.in" +#line 2441 "runtime.in" {Stack->push<pair>(p.dir(t,sign,normalize)); return;} } -#line 2429 "runtime.in" +#line 2445 "runtime.in" // pair dir(path p, real t, bool normalize=true); -void gen151(stack *Stack) +void gen152(stack *Stack) { bool normalize=vm::pop<bool>(Stack,true); real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2430 "runtime.in" +#line 2446 "runtime.in" {Stack->push<pair>(p.dir(t,normalize)); return;} } -#line 2434 "runtime.in" +#line 2450 "runtime.in" // pair accel(path p, Int t, Int sign=0); -void gen152(stack *Stack) +void gen153(stack *Stack) { Int sign=vm::pop<Int>(Stack,0); Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2435 "runtime.in" +#line 2451 "runtime.in" {Stack->push<pair>(p.accel(t,sign)); return;} } -#line 2439 "runtime.in" +#line 2455 "runtime.in" // pair accel(path p, real t); -void gen153(stack *Stack) +void gen154(stack *Stack) { real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2440 "runtime.in" +#line 2456 "runtime.in" {Stack->push<pair>(p.accel(t)); return;} } -#line 2444 "runtime.in" +#line 2460 "runtime.in" // real radius(path p, real t); -void gen154(stack *Stack) +void gen155(stack *Stack) { real t=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2445 "runtime.in" +#line 2461 "runtime.in" pair v=p.dir(t,false); pair a=p.accel(t); real d=dot(a,v); @@ -3130,40 +3151,40 @@ void gen154(stack *Stack) {Stack->push<real>(denom > 0 ? r/sqrt(denom) : 0.0); return;} } -#line 2456 "runtime.in" +#line 2472 "runtime.in" // path reverse(path p); -void gen155(stack *Stack) +void gen156(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2457 "runtime.in" +#line 2473 "runtime.in" {Stack->push<path>(p.reverse()); return;} } -#line 2461 "runtime.in" +#line 2477 "runtime.in" // path subpath(path p, Int a, Int b); -void gen156(stack *Stack) +void gen157(stack *Stack) { Int b=vm::pop<Int>(Stack); Int a=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2462 "runtime.in" +#line 2478 "runtime.in" {Stack->push<path>(p.subpath((Int) a, (Int) b)); return;} } -#line 2466 "runtime.in" +#line 2482 "runtime.in" // path subpath(path p, real a, real b); -void gen157(stack *Stack) +void gen158(stack *Stack) { real b=vm::pop<real>(Stack); real a=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2467 "runtime.in" +#line 2483 "runtime.in" {Stack->push<path>(p.subpath(a,b)); return;} } -#line 2471 "runtime.in" +#line 2487 "runtime.in" // path nurb(pair z0, pair z1, pair z2, pair z3, real w0, real w1, real w2, real w3, Int m); -void gen158(stack *Stack) +void gen159(stack *Stack) { Int m=vm::pop<Int>(Stack); real w3=vm::pop<real>(Stack); @@ -3174,93 +3195,93 @@ void gen158(stack *Stack) pair z2=vm::pop<pair>(Stack); pair z1=vm::pop<pair>(Stack); pair z0=vm::pop<pair>(Stack); -#line 2473 "runtime.in" +#line 2489 "runtime.in" {Stack->push<path>(nurb(z0,z1,z2,z3,w0,w1,w2,w3,m)); return;} } -#line 2477 "runtime.in" +#line 2493 "runtime.in" // Int length(path p); -void gen159(stack *Stack) +void gen160(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2478 "runtime.in" +#line 2494 "runtime.in" {Stack->push<Int>(p.length()); return;} } -#line 2482 "runtime.in" +#line 2498 "runtime.in" // bool cyclic(path p); -void gen160(stack *Stack) +void gen161(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2483 "runtime.in" +#line 2499 "runtime.in" {Stack->push<bool>(p.cyclic()); return;} } -#line 2487 "runtime.in" +#line 2503 "runtime.in" // bool straight(path p, Int t); -void gen161(stack *Stack) +void gen162(stack *Stack) { Int t=vm::pop<Int>(Stack); path p=vm::pop<path>(Stack); -#line 2488 "runtime.in" +#line 2504 "runtime.in" {Stack->push<bool>(p.straight(t)); return;} } -#line 2492 "runtime.in" +#line 2508 "runtime.in" // path unstraighten(path p); -void gen162(stack *Stack) +void gen163(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2493 "runtime.in" +#line 2509 "runtime.in" {Stack->push<path>(p.unstraighten()); return;} } -#line 2497 "runtime.in" +#line 2513 "runtime.in" // bool piecewisestraight(path p); -void gen163(stack *Stack) +void gen164(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2498 "runtime.in" +#line 2514 "runtime.in" {Stack->push<bool>(p.piecewisestraight()); return;} } -#line 2502 "runtime.in" +#line 2518 "runtime.in" // real arclength(path p); -void gen164(stack *Stack) +void gen165(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2503 "runtime.in" +#line 2519 "runtime.in" {Stack->push<real>(p.arclength()); return;} } -#line 2507 "runtime.in" +#line 2523 "runtime.in" // real arctime(path p, real dval); -void gen165(stack *Stack) +void gen166(stack *Stack) { real dval=vm::pop<real>(Stack); path p=vm::pop<path>(Stack); -#line 2508 "runtime.in" +#line 2524 "runtime.in" {Stack->push<real>(p.arctime(dval)); return;} } -#line 2512 "runtime.in" +#line 2528 "runtime.in" // real dirtime(path p, pair z); -void gen166(stack *Stack) +void gen167(stack *Stack) { pair z=vm::pop<pair>(Stack); path p=vm::pop<path>(Stack); -#line 2513 "runtime.in" +#line 2529 "runtime.in" {Stack->push<real>(p.directiontime(z)); return;} } -#line 2517 "runtime.in" +#line 2533 "runtime.in" // realarray* intersect(path p, path q, real fuzz=-1); -void gen167(stack *Stack) +void gen168(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); path q=vm::pop<path>(Stack); path p=vm::pop<path>(Stack); -#line 2518 "runtime.in" +#line 2534 "runtime.in" bool exact=fuzz <= 0.0; if(fuzz < 0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), @@ -3276,14 +3297,14 @@ void gen167(stack *Stack) {Stack->push<realarray*>(new array(0)); return;} } -#line 2534 "runtime.in" +#line 2550 "runtime.in" // realarray2* intersections(path p, path q, real fuzz=-1); -void gen168(stack *Stack) +void gen169(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); path q=vm::pop<path>(Stack); path p=vm::pop<path>(Stack); -#line 2535 "runtime.in" +#line 2551 "runtime.in" bool exact=fuzz <= 0.0; if(fuzz < 0.0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), @@ -3313,15 +3334,15 @@ void gen168(stack *Stack) {Stack->push<realarray2*>(V); return;} } -#line 2565 "runtime.in" +#line 2581 "runtime.in" // realarray* intersections(path p, explicit pair a, explicit pair b, real fuzz=-1); -void gen169(stack *Stack) +void gen170(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); path p=vm::pop<path>(Stack); -#line 2566 "runtime.in" +#line 2582 "runtime.in" if(fuzz < 0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), ::max(length(a),length(b))); @@ -3337,15 +3358,15 @@ void gen169(stack *Stack) // Return the intersection point of the extensions of the line segments // PQ and pq. -#line 2582 "runtime.in" +#line 2598 "runtime.in" // pair extension(pair P, pair Q, pair p, pair q); -void gen170(stack *Stack) +void gen171(stack *Stack) { pair q=vm::pop<pair>(Stack); pair p=vm::pop<pair>(Stack); pair Q=vm::pop<pair>(Stack); pair P=vm::pop<pair>(Stack); -#line 2583 "runtime.in" +#line 2599 "runtime.in" pair ac=P-Q; pair bd=q-p; real det=ac.getx()*bd.gety()-ac.gety()*bd.getx(); @@ -3353,49 +3374,49 @@ void gen170(stack *Stack) {Stack->push<pair>(P+((p.getx()-P.getx())*bd.gety()-(p.gety()-P.gety())*bd.getx())*ac/det); return;} } -#line 2591 "runtime.in" +#line 2607 "runtime.in" // Int size(path p); -void gen171(stack *Stack) +void gen172(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2592 "runtime.in" +#line 2608 "runtime.in" {Stack->push<Int>(p.size()); return;} } -#line 2596 "runtime.in" +#line 2612 "runtime.in" // path &(path p, path q); -void gen172(stack *Stack) +void gen173(stack *Stack) { path q=vm::pop<path>(Stack); path p=vm::pop<path>(Stack); -#line 2597 "runtime.in" +#line 2613 "runtime.in" {Stack->push<path>(camp::concat(p,q)); return;} } -#line 2601 "runtime.in" +#line 2617 "runtime.in" // pair min(path p); -void gen173(stack *Stack) +void gen174(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2602 "runtime.in" +#line 2618 "runtime.in" {Stack->push<pair>(p.min()); return;} } -#line 2606 "runtime.in" +#line 2622 "runtime.in" // pair max(path p); -void gen174(stack *Stack) +void gen175(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2607 "runtime.in" +#line 2623 "runtime.in" {Stack->push<pair>(p.max()); return;} } -#line 2611 "runtime.in" +#line 2627 "runtime.in" // realarray* mintimes(path p); -void gen175(stack *Stack) +void gen176(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2612 "runtime.in" +#line 2628 "runtime.in" array *V=new array(2); pair z=p.mintimes(); (*V)[0]=z.getx(); @@ -3403,12 +3424,12 @@ void gen175(stack *Stack) {Stack->push<realarray*>(V); return;} } -#line 2620 "runtime.in" +#line 2636 "runtime.in" // realarray* maxtimes(path p); -void gen176(stack *Stack) +void gen177(stack *Stack) { path p=vm::pop<path>(Stack); -#line 2621 "runtime.in" +#line 2637 "runtime.in" array *V=new array(2); pair z=p.maxtimes(); (*V)[0]=z.getx(); @@ -3416,90 +3437,90 @@ void gen176(stack *Stack) {Stack->push<realarray*>(V); return;} } -#line 2629 "runtime.in" +#line 2645 "runtime.in" // real relativedistance(real theta, real phi, real t, bool atleast); -void gen177(stack *Stack) +void gen178(stack *Stack) { bool atleast=vm::pop<bool>(Stack); real t=vm::pop<real>(Stack); real phi=vm::pop<real>(Stack); real theta=vm::pop<real>(Stack); -#line 2630 "runtime.in" +#line 2646 "runtime.in" {Stack->push<real>(camp::velocity(theta,phi,tension(t,atleast))); return;} } -#line 2634 "runtime.in" +#line 2650 "runtime.in" // Int windingnumber(patharray *p, pair z); -void gen178(stack *Stack) +void gen179(stack *Stack) { pair z=vm::pop<pair>(Stack); patharray * p=vm::pop<patharray *>(Stack); -#line 2635 "runtime.in" +#line 2651 "runtime.in" {Stack->push<Int>(windingnumber(p,z)); return;} } -#line 2639 "runtime.in" +#line 2655 "runtime.in" // bool inside(explicit patharray *g, pair z, pen fillrule=CURRENTPEN); -void gen179(stack *Stack) +void gen180(stack *Stack) { pen fillrule=vm::pop<pen>(Stack,CURRENTPEN); pair z=vm::pop<pair>(Stack); patharray * g=vm::pop<patharray *>(Stack); -#line 2640 "runtime.in" +#line 2656 "runtime.in" {Stack->push<bool>(fillrule.inside(windingnumber(g,z))); return;} } -#line 2644 "runtime.in" +#line 2660 "runtime.in" // bool inside(path g, pair z, pen fillrule=CURRENTPEN); -void gen180(stack *Stack) +void gen181(stack *Stack) { pen fillrule=vm::pop<pen>(Stack,CURRENTPEN); pair z=vm::pop<pair>(Stack); path g=vm::pop<path>(Stack); -#line 2645 "runtime.in" +#line 2661 "runtime.in" {Stack->push<bool>(fillrule.inside(g.windingnumber(z))); return;} } // Determine the side of a--b that c lies on // (negative=left, zero=on line, positive=right). -#line 2651 "runtime.in" +#line 2667 "runtime.in" // real side(pair a, pair b, pair c); -void gen181(stack *Stack) +void gen182(stack *Stack) { pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 2652 "runtime.in" +#line 2668 "runtime.in" {Stack->push<real>(orient2d(a,b,c)); return;} } // Determine the side of the counterclockwise circle through a,b,c that d // lies on (negative=inside, 0=on circle, positive=right). -#line 2658 "runtime.in" +#line 2674 "runtime.in" // real incircle(pair a, pair b, pair c, pair d); -void gen182(stack *Stack) +void gen183(stack *Stack) { pair d=vm::pop<pair>(Stack); pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 2659 "runtime.in" +#line 2675 "runtime.in" {Stack->push<real>(incircle(a.getx(),a.gety(),b.getx(),b.gety(),c.getx(),c.gety(), d.getx(),d.gety())); return;} } // Path3 operations -#line 2666 "runtime.in" +#line 2682 "runtime.in" // path3 path3(triplearray *pre, triplearray *point, triplearray *post, boolarray *straight, bool cyclic); -void gen183(stack *Stack) +void gen184(stack *Stack) { bool cyclic=vm::pop<bool>(Stack); boolarray * straight=vm::pop<boolarray *>(Stack); triplearray * post=vm::pop<triplearray *>(Stack); triplearray * point=vm::pop<triplearray *>(Stack); triplearray * pre=vm::pop<triplearray *>(Stack); -#line 2668 "runtime.in" +#line 2684 "runtime.in" size_t n=checkArrays(pre,point); checkEqual(n,checkArray(post)); checkEqual(n,checkArray(straight)); @@ -3514,144 +3535,144 @@ void gen183(stack *Stack) {Stack->push<path3>(path3(nodes,(Int) n,cyclic)); return;} } -#line 2684 "runtime.in" +#line 2700 "runtime.in" void nullPath3(stack *Stack) { -#line 2685 "runtime.in" +#line 2701 "runtime.in" {Stack->push<path3>(nullpath3); return;} } -#line 2689 "runtime.in" +#line 2705 "runtime.in" // bool ==(path3 a, path3 b); -void gen185(stack *Stack) +void gen186(stack *Stack) { path3 b=vm::pop<path3>(Stack); path3 a=vm::pop<path3>(Stack); -#line 2690 "runtime.in" +#line 2706 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 2694 "runtime.in" +#line 2710 "runtime.in" // bool !=(path3 a, path3 b); -void gen186(stack *Stack) +void gen187(stack *Stack) { path3 b=vm::pop<path3>(Stack); path3 a=vm::pop<path3>(Stack); -#line 2695 "runtime.in" +#line 2711 "runtime.in" {Stack->push<bool>(!(a == b)); return;} } -#line 2699 "runtime.in" +#line 2715 "runtime.in" // triple point(path3 p, Int t); -void gen187(stack *Stack) +void gen188(stack *Stack) { Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2700 "runtime.in" +#line 2716 "runtime.in" {Stack->push<triple>(p.point((Int) t)); return;} } -#line 2704 "runtime.in" +#line 2720 "runtime.in" // triple point(path3 p, real t); -void gen188(stack *Stack) +void gen189(stack *Stack) { real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2705 "runtime.in" +#line 2721 "runtime.in" {Stack->push<triple>(p.point(t)); return;} } -#line 2709 "runtime.in" +#line 2725 "runtime.in" // triple precontrol(path3 p, Int t); -void gen189(stack *Stack) +void gen190(stack *Stack) { Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2710 "runtime.in" +#line 2726 "runtime.in" {Stack->push<triple>(p.precontrol((Int) t)); return;} } -#line 2714 "runtime.in" +#line 2730 "runtime.in" // triple precontrol(path3 p, real t); -void gen190(stack *Stack) +void gen191(stack *Stack) { real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2715 "runtime.in" +#line 2731 "runtime.in" {Stack->push<triple>(p.precontrol(t)); return;} } -#line 2719 "runtime.in" +#line 2735 "runtime.in" // triple postcontrol(path3 p, Int t); -void gen191(stack *Stack) +void gen192(stack *Stack) { Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2720 "runtime.in" +#line 2736 "runtime.in" {Stack->push<triple>(p.postcontrol((Int) t)); return;} } -#line 2724 "runtime.in" +#line 2740 "runtime.in" // triple postcontrol(path3 p, real t); -void gen192(stack *Stack) +void gen193(stack *Stack) { real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2725 "runtime.in" +#line 2741 "runtime.in" {Stack->push<triple>(p.postcontrol(t)); return;} } -#line 2729 "runtime.in" +#line 2745 "runtime.in" // triple dir(path3 p, Int t, Int sign=0, bool normalize=true); -void gen193(stack *Stack) +void gen194(stack *Stack) { bool normalize=vm::pop<bool>(Stack,true); Int sign=vm::pop<Int>(Stack,0); Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2730 "runtime.in" +#line 2746 "runtime.in" {Stack->push<triple>(p.dir(t,sign,normalize)); return;} } -#line 2734 "runtime.in" +#line 2750 "runtime.in" // triple dir(path3 p, real t, bool normalize=true); -void gen194(stack *Stack) +void gen195(stack *Stack) { bool normalize=vm::pop<bool>(Stack,true); real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2735 "runtime.in" +#line 2751 "runtime.in" {Stack->push<triple>(p.dir(t,normalize)); return;} } -#line 2739 "runtime.in" +#line 2755 "runtime.in" // triple accel(path3 p, Int t, Int sign=0); -void gen195(stack *Stack) +void gen196(stack *Stack) { Int sign=vm::pop<Int>(Stack,0); Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2740 "runtime.in" +#line 2756 "runtime.in" {Stack->push<triple>(p.accel(t,sign)); return;} } -#line 2744 "runtime.in" +#line 2760 "runtime.in" // triple accel(path3 p, real t); -void gen196(stack *Stack) +void gen197(stack *Stack) { real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2745 "runtime.in" +#line 2761 "runtime.in" {Stack->push<triple>(p.accel(t)); return;} } -#line 2749 "runtime.in" +#line 2765 "runtime.in" // real radius(path3 p, real t); -void gen197(stack *Stack) +void gen198(stack *Stack) { real t=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2750 "runtime.in" +#line 2766 "runtime.in" triple v=p.dir(t,false); triple a=p.accel(t); real d=dot(a,v); @@ -3662,16 +3683,16 @@ void gen197(stack *Stack) {Stack->push<real>(denom > 0 ? r/sqrt(denom) : 0.0); return;} } -#line 2761 "runtime.in" +#line 2777 "runtime.in" // real radius(triple z0, triple c0, triple c1, triple z1, real t); -void gen198(stack *Stack) +void gen199(stack *Stack) { real t=vm::pop<real>(Stack); triple z1=vm::pop<triple>(Stack); triple c1=vm::pop<triple>(Stack); triple c0=vm::pop<triple>(Stack); triple z0=vm::pop<triple>(Stack); -#line 2762 "runtime.in" +#line 2778 "runtime.in" triple v=(3.0*(z1-z0)+9.0*(c0-c1))*t*t+(6.0*(z0+c1)-12.0*c0)*t+3.0*(c0-z0); triple a=6.0*(z1-z0+3.0*(c0-c1))*t+6.0*(z0+c1)-12.0*c0; real d=dot(a,v); @@ -3682,85 +3703,85 @@ void gen198(stack *Stack) {Stack->push<real>(denom > 0 ? r/sqrt(denom) : 0.0); return;} } -#line 2773 "runtime.in" +#line 2789 "runtime.in" // path3 reverse(path3 p); -void gen199(stack *Stack) +void gen200(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2774 "runtime.in" +#line 2790 "runtime.in" {Stack->push<path3>(p.reverse()); return;} } -#line 2778 "runtime.in" +#line 2794 "runtime.in" // path3 subpath(path3 p, Int a, Int b); -void gen200(stack *Stack) +void gen201(stack *Stack) { Int b=vm::pop<Int>(Stack); Int a=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2779 "runtime.in" +#line 2795 "runtime.in" {Stack->push<path3>(p.subpath((Int) a, (Int) b)); return;} } -#line 2783 "runtime.in" +#line 2799 "runtime.in" // path3 subpath(path3 p, real a, real b); -void gen201(stack *Stack) +void gen202(stack *Stack) { real b=vm::pop<real>(Stack); real a=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2784 "runtime.in" +#line 2800 "runtime.in" {Stack->push<path3>(p.subpath(a,b)); return;} } -#line 2788 "runtime.in" +#line 2804 "runtime.in" // Int length(path3 p); -void gen202(stack *Stack) +void gen203(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2789 "runtime.in" +#line 2805 "runtime.in" {Stack->push<Int>(p.length()); return;} } -#line 2793 "runtime.in" +#line 2809 "runtime.in" // bool cyclic(path3 p); -void gen203(stack *Stack) +void gen204(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2794 "runtime.in" +#line 2810 "runtime.in" {Stack->push<bool>(p.cyclic()); return;} } -#line 2798 "runtime.in" +#line 2814 "runtime.in" // bool straight(path3 p, Int t); -void gen204(stack *Stack) +void gen205(stack *Stack) { Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2799 "runtime.in" +#line 2815 "runtime.in" {Stack->push<bool>(p.straight(t)); return;} } // Return the component of vector v perpendicular to a unit vector u. -#line 2804 "runtime.in" +#line 2820 "runtime.in" // triple perp(triple v, triple u); -void gen205(stack *Stack) +void gen206(stack *Stack) { triple u=vm::pop<triple>(Stack); triple v=vm::pop<triple>(Stack); -#line 2805 "runtime.in" +#line 2821 "runtime.in" {Stack->push<triple>(v-dot(v,u)*u); return;} } // Return the maximum perpendicular deviation of segment i of path3 g // from a straight line. -#line 2811 "runtime.in" +#line 2827 "runtime.in" // real straightness(path3 p, Int t); -void gen206(stack *Stack) +void gen207(stack *Stack) { Int t=vm::pop<Int>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2812 "runtime.in" +#line 2828 "runtime.in" if(p.straight(t)) {Stack->push<real>(0); return;} triple z0=p.point(t); triple u=unit(p.point(t+1)-z0); @@ -3770,55 +3791,55 @@ void gen206(stack *Stack) // Return the maximum perpendicular deviation of z0..controls c0 and c1..z1 // from a straight line. -#line 2822 "runtime.in" +#line 2838 "runtime.in" // real straightness(triple z0, triple c0, triple c1, triple z1); -void gen207(stack *Stack) +void gen208(stack *Stack) { triple z1=vm::pop<triple>(Stack); triple c1=vm::pop<triple>(Stack); triple c0=vm::pop<triple>(Stack); triple z0=vm::pop<triple>(Stack); -#line 2823 "runtime.in" +#line 2839 "runtime.in" triple u=unit(z1-z0); {Stack->push<real>(::max(length(perp(c0-z0,u)),length(perp(c1-z0,u)))); return;} } -#line 2828 "runtime.in" +#line 2844 "runtime.in" // bool piecewisestraight(path3 p); -void gen208(stack *Stack) +void gen209(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2829 "runtime.in" +#line 2845 "runtime.in" {Stack->push<bool>(p.piecewisestraight()); return;} } -#line 2833 "runtime.in" +#line 2849 "runtime.in" // real arclength(path3 p); -void gen209(stack *Stack) +void gen210(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2834 "runtime.in" +#line 2850 "runtime.in" {Stack->push<real>(p.arclength()); return;} } -#line 2838 "runtime.in" +#line 2854 "runtime.in" // real arctime(path3 p, real dval); -void gen210(stack *Stack) +void gen211(stack *Stack) { real dval=vm::pop<real>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2839 "runtime.in" +#line 2855 "runtime.in" {Stack->push<real>(p.arctime(dval)); return;} } -#line 2843 "runtime.in" +#line 2859 "runtime.in" // realarray* intersect(path3 p, path3 q, real fuzz=-1); -void gen211(stack *Stack) +void gen212(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); path3 q=vm::pop<path3>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2844 "runtime.in" +#line 2860 "runtime.in" bool exact=fuzz <= 0.0; if(fuzz < 0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), @@ -3835,14 +3856,14 @@ void gen211(stack *Stack) {Stack->push<realarray*>(new array(0)); return;} } -#line 2861 "runtime.in" +#line 2877 "runtime.in" // realarray2* intersections(path3 p, path3 q, real fuzz=-1); -void gen212(stack *Stack) +void gen213(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); path3 q=vm::pop<path3>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2862 "runtime.in" +#line 2878 "runtime.in" bool exact=fuzz <= 0.0; if(fuzz < 0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), @@ -3874,14 +3895,14 @@ void gen212(stack *Stack) {Stack->push<realarray2*>(V); return;} } -#line 2894 "runtime.in" +#line 2910 "runtime.in" // realarray2* intersections(path3 p, triplearray2 *P, real fuzz=-1); -void gen213(stack *Stack) +void gen214(stack *Stack) { real fuzz=vm::pop<real>(Stack,-1); triplearray2 * P=vm::pop<triplearray2 *>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2895 "runtime.in" +#line 2911 "runtime.in" triple *A=copyTripleArray2C(P,true,4); if(fuzz <= 0) fuzz=BigFuzz*::max(::max(length(p.max()),length(p.min())), norm(A,16)); @@ -3900,49 +3921,49 @@ void gen213(stack *Stack) {Stack->push<realarray2*>(W); return;} // Sorting will done in asy. } -#line 2914 "runtime.in" +#line 2930 "runtime.in" // Int size(path3 p); -void gen214(stack *Stack) +void gen215(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2915 "runtime.in" +#line 2931 "runtime.in" {Stack->push<Int>(p.size()); return;} } -#line 2919 "runtime.in" +#line 2935 "runtime.in" // path3 &(path3 p, path3 q); -void gen215(stack *Stack) +void gen216(stack *Stack) { path3 q=vm::pop<path3>(Stack); path3 p=vm::pop<path3>(Stack); -#line 2920 "runtime.in" +#line 2936 "runtime.in" {Stack->push<path3>(camp::concat(p,q)); return;} } -#line 2924 "runtime.in" +#line 2940 "runtime.in" // triple min(path3 p); -void gen216(stack *Stack) +void gen217(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2925 "runtime.in" +#line 2941 "runtime.in" {Stack->push<triple>(p.min()); return;} } -#line 2929 "runtime.in" +#line 2945 "runtime.in" // triple max(path3 p); -void gen217(stack *Stack) +void gen218(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2930 "runtime.in" +#line 2946 "runtime.in" {Stack->push<triple>(p.max()); return;} } -#line 2934 "runtime.in" +#line 2950 "runtime.in" // realarray* mintimes(path3 p); -void gen218(stack *Stack) +void gen219(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2935 "runtime.in" +#line 2951 "runtime.in" array *V=new array(3); triple v=p.mintimes(); (*V)[0]=v.getx(); @@ -3951,12 +3972,12 @@ void gen218(stack *Stack) {Stack->push<realarray*>(V); return;} } -#line 2944 "runtime.in" +#line 2960 "runtime.in" // realarray* maxtimes(path3 p); -void gen219(stack *Stack) +void gen220(stack *Stack) { path3 p=vm::pop<path3>(Stack); -#line 2945 "runtime.in" +#line 2961 "runtime.in" array *V=new array(3); triple v=p.maxtimes(); (*V)[0]=v.getx(); @@ -3965,30 +3986,30 @@ void gen219(stack *Stack) {Stack->push<realarray*>(V); return;} } -#line 2954 "runtime.in" +#line 2970 "runtime.in" // path3 *(realarray2 *t, path3 g); -void gen220(stack *Stack) +void gen221(stack *Stack) { path3 g=vm::pop<path3>(Stack); realarray2 * t=vm::pop<realarray2 *>(Stack); -#line 2955 "runtime.in" +#line 2971 "runtime.in" {Stack->push<path3>(transformed(*t,g)); return;} } // Guide operations -#line 2961 "runtime.in" +#line 2977 "runtime.in" void nullGuide(stack *Stack) { -#line 2962 "runtime.in" +#line 2978 "runtime.in" {Stack->push<guide*>(new pathguide(path())); return;} } -#line 2967 "runtime.in" +#line 2983 "runtime.in" void dotsGuide(stack *Stack) { guidearray * a=vm::pop<guidearray *>(Stack); -#line 2968 "runtime.in" +#line 2984 "runtime.in" guidevector v; size_t size=checkArray(a); for (size_t i=0; i < size; ++i) @@ -3997,11 +4018,11 @@ void dotsGuide(stack *Stack) {Stack->push<guide*>(new multiguide(v)); return;} } -#line 2977 "runtime.in" +#line 2993 "runtime.in" void dashesGuide(stack *Stack) { guidearray * a=vm::pop<guidearray *>(Stack); -#line 2978 "runtime.in" +#line 2994 "runtime.in" static camp::curlSpec curly; static specguide curlout(&curly, camp::OUT); static specguide curlin(&curly, camp::IN); @@ -4027,179 +4048,179 @@ void dashesGuide(stack *Stack) {Stack->push<guide*>(new multiguide(v)); return;} } -#line 3004 "runtime.in" +#line 3020 "runtime.in" void newCycleToken(stack *Stack) { -#line 3005 "runtime.in" +#line 3021 "runtime.in" {Stack->push<cycleToken>(cycleToken()); return;} } -#line 3009 "runtime.in" +#line 3025 "runtime.in" // guide* operator cast(cycleToken tok); -void gen225(stack *Stack) +void gen226(stack *Stack) { cycleToken tok=vm::pop<cycleToken>(Stack); -#line 3010 "runtime.in" +#line 3026 "runtime.in" // Avoid unused variable warning messages. unused(&tok); {Stack->push<guide*>(new cycletokguide()); return;} } -#line 3016 "runtime.in" +#line 3032 "runtime.in" // guide* operator spec(pair z, Int p); -void gen226(stack *Stack) +void gen227(stack *Stack) { Int p=vm::pop<Int>(Stack); pair z=vm::pop<pair>(Stack); -#line 3017 "runtime.in" +#line 3033 "runtime.in" camp::side d=(camp::side) p; camp::dirSpec *sp=new camp::dirSpec(z); {Stack->push<guide*>(new specguide(sp,d)); return;} } -#line 3024 "runtime.in" +#line 3040 "runtime.in" // curlSpecifier operator curl(real gamma, Int p); -void gen227(stack *Stack) +void gen228(stack *Stack) { Int p=vm::pop<Int>(Stack); real gamma=vm::pop<real>(Stack); -#line 3025 "runtime.in" +#line 3041 "runtime.in" camp::side s=(camp::side) p; {Stack->push<curlSpecifier>(curlSpecifier(gamma,s)); return;} } -#line 3030 "runtime.in" +#line 3046 "runtime.in" void curlSpecifierValuePart(stack *Stack) { curlSpecifier spec=vm::pop<curlSpecifier>(Stack); -#line 3031 "runtime.in" +#line 3047 "runtime.in" {Stack->push<real>(spec.getValue()); return;} } -#line 3035 "runtime.in" +#line 3051 "runtime.in" void curlSpecifierSidePart(stack *Stack) { curlSpecifier spec=vm::pop<curlSpecifier>(Stack); -#line 3036 "runtime.in" +#line 3052 "runtime.in" {Stack->push<Int>(spec.getSide()); return;} } -#line 3040 "runtime.in" +#line 3056 "runtime.in" // guide* operator cast(curlSpecifier spec); -void gen230(stack *Stack) +void gen231(stack *Stack) { curlSpecifier spec=vm::pop<curlSpecifier>(Stack); -#line 3041 "runtime.in" +#line 3057 "runtime.in" {Stack->push<guide*>(new specguide(spec)); return;} } -#line 3045 "runtime.in" +#line 3061 "runtime.in" // tensionSpecifier operator tension(real tout, real tin, bool atleast); -void gen231(stack *Stack) +void gen232(stack *Stack) { bool atleast=vm::pop<bool>(Stack); real tin=vm::pop<real>(Stack); real tout=vm::pop<real>(Stack); -#line 3046 "runtime.in" +#line 3062 "runtime.in" {Stack->push<tensionSpecifier>(tensionSpecifier(tout, tin, atleast)); return;} } -#line 3050 "runtime.in" +#line 3066 "runtime.in" void tensionSpecifierOutPart(stack *Stack) { tensionSpecifier t=vm::pop<tensionSpecifier>(Stack); -#line 3051 "runtime.in" +#line 3067 "runtime.in" {Stack->push<real>(t.getOut()); return;} } -#line 3055 "runtime.in" +#line 3071 "runtime.in" void tensionSpecifierInPart(stack *Stack) { tensionSpecifier t=vm::pop<tensionSpecifier>(Stack); -#line 3056 "runtime.in" +#line 3072 "runtime.in" {Stack->push<real>(t.getIn()); return;} } -#line 3060 "runtime.in" +#line 3076 "runtime.in" void tensionSpecifierAtleastPart(stack *Stack) { tensionSpecifier t=vm::pop<tensionSpecifier>(Stack); -#line 3061 "runtime.in" +#line 3077 "runtime.in" {Stack->push<bool>(t.getAtleast()); return;} } -#line 3065 "runtime.in" +#line 3081 "runtime.in" // guide* operator cast(tensionSpecifier t); -void gen235(stack *Stack) +void gen236(stack *Stack) { tensionSpecifier t=vm::pop<tensionSpecifier>(Stack); -#line 3066 "runtime.in" +#line 3082 "runtime.in" {Stack->push<guide*>(new tensionguide(t)); return;} } -#line 3070 "runtime.in" +#line 3086 "runtime.in" // guide* operator controls(pair zout, pair zin); -void gen236(stack *Stack) +void gen237(stack *Stack) { pair zin=vm::pop<pair>(Stack); pair zout=vm::pop<pair>(Stack); -#line 3071 "runtime.in" +#line 3087 "runtime.in" {Stack->push<guide*>(new controlguide(zout, zin)); return;} } -#line 3075 "runtime.in" +#line 3091 "runtime.in" // Int size(guide *g); -void gen237(stack *Stack) +void gen238(stack *Stack) { guide * g=vm::pop<guide *>(Stack); -#line 3076 "runtime.in" +#line 3092 "runtime.in" flatguide f; g->flatten(f,false); {Stack->push<Int>(f.size()); return;} } -#line 3082 "runtime.in" +#line 3098 "runtime.in" // Int length(guide *g); -void gen238(stack *Stack) +void gen239(stack *Stack) { guide * g=vm::pop<guide *>(Stack); -#line 3083 "runtime.in" +#line 3099 "runtime.in" flatguide f; g->flatten(f,false); {Stack->push<Int>(g->cyclic() ? f.size() : f.size()-1); return;} } -#line 3089 "runtime.in" +#line 3105 "runtime.in" // bool cyclic(guide *g); -void gen239(stack *Stack) +void gen240(stack *Stack) { guide * g=vm::pop<guide *>(Stack); -#line 3090 "runtime.in" +#line 3106 "runtime.in" flatguide f; g->flatten(f,false); {Stack->push<bool>(g->cyclic()); return;} } -#line 3096 "runtime.in" +#line 3112 "runtime.in" // pair point(guide *g, Int t); -void gen240(stack *Stack) +void gen241(stack *Stack) { Int t=vm::pop<Int>(Stack); guide * g=vm::pop<guide *>(Stack); -#line 3097 "runtime.in" +#line 3113 "runtime.in" flatguide f; g->flatten(f,false); {Stack->push<pair>(f.Nodes(adjustedIndex(t,f.size(),g->cyclic())).z); return;} } -#line 3103 "runtime.in" +#line 3119 "runtime.in" // pairarray* dirSpecifier(guide *g, Int t); -void gen241(stack *Stack) +void gen242(stack *Stack) { Int t=vm::pop<Int>(Stack); guide * g=vm::pop<guide *>(Stack); -#line 3104 "runtime.in" +#line 3120 "runtime.in" flatguide f; g->flatten(f,false); Int n=f.size(); @@ -4210,13 +4231,13 @@ void gen241(stack *Stack) {Stack->push<pairarray*>(c); return;} } -#line 3115 "runtime.in" +#line 3131 "runtime.in" // pairarray* controlSpecifier(guide *g, Int t); -void gen242(stack *Stack) +void gen243(stack *Stack) { Int t=vm::pop<Int>(Stack); guide * g=vm::pop<guide *>(Stack); -#line 3116 "runtime.in" +#line 3132 "runtime.in" flatguide f; g->flatten(f,false); Int n=f.size(); @@ -4232,13 +4253,13 @@ void gen242(stack *Stack) } else {Stack->push<pairarray*>(new array(0)); return;} } -#line 3132 "runtime.in" +#line 3148 "runtime.in" // tensionSpecifier tensionSpecifier(guide *g, Int t); -void gen243(stack *Stack) +void gen244(stack *Stack) { Int t=vm::pop<Int>(Stack); guide * g=vm::pop<guide *>(Stack); -#line 3133 "runtime.in" +#line 3149 "runtime.in" flatguide f; g->flatten(f,false); Int n=f.size(); @@ -4247,13 +4268,13 @@ void gen243(stack *Stack) {Stack->push<tensionSpecifier>(tensionSpecifier(curr.tout.val,f.Nodes(t+1).tin.val,curr.tout.atleast)); return;} } -#line 3142 "runtime.in" +#line 3158 "runtime.in" // realarray* curlSpecifier(guide *g, Int t); -void gen244(stack *Stack) +void gen245(stack *Stack) { Int t=vm::pop<Int>(Stack); guide * g=vm::pop<guide *>(Stack); -#line 3143 "runtime.in" +#line 3159 "runtime.in" flatguide f; g->flatten(f,false); Int n=f.size(); @@ -4266,12 +4287,12 @@ void gen244(stack *Stack) {Stack->push<realarray*>(c); return;} } -#line 3156 "runtime.in" +#line 3172 "runtime.in" // guide* reverse(guide *g); -void gen245(stack *Stack) +void gen246(stack *Stack) { guide * g=vm::pop<guide *>(Stack); -#line 3157 "runtime.in" +#line 3173 "runtime.in" flatguide f; g->flatten(f,false); if(f.precyclic()) @@ -4326,21 +4347,21 @@ void gen245(stack *Stack) // Three-dimensional picture and surface operations -#line 3212 "runtime.in" +#line 3228 "runtime.in" // void _draw(picture *f, path3 g, pen p); -void gen246(stack *Stack) +void gen247(stack *Stack) { pen p=vm::pop<pen>(Stack); path3 g=vm::pop<path3>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 3213 "runtime.in" +#line 3229 "runtime.in" if(g.size() > 0) f->append(new drawPath3(g,p)); } -#line 3219 "runtime.in" +#line 3235 "runtime.in" // void draw(picture *f, triplearray2 *g, bool straight, penarray *p, real opacity, real shininess, real granularity, triple normal, bool lighton, penarray *colors); -void gen247(stack *Stack) +void gen248(stack *Stack) { penarray * colors=vm::pop<penarray *>(Stack); bool lighton=vm::pop<bool>(Stack); @@ -4352,80 +4373,80 @@ void gen247(stack *Stack) bool straight=vm::pop<bool>(Stack); triplearray2 * g=vm::pop<triplearray2 *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 3222 "runtime.in" +#line 3238 "runtime.in" f->append(new drawSurface(*g,straight,*p,opacity,shininess,granularity, normal,lighton,*colors)); } -#line 3227 "runtime.in" +#line 3243 "runtime.in" // triple min3(picture *f); -void gen248(stack *Stack) +void gen249(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 3228 "runtime.in" +#line 3244 "runtime.in" {Stack->push<triple>(f->bounds3().Min()); return;} } -#line 3232 "runtime.in" +#line 3248 "runtime.in" // triple max3(picture *f); -void gen249(stack *Stack) +void gen250(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 3233 "runtime.in" +#line 3249 "runtime.in" {Stack->push<triple>(f->bounds3().Max()); return;} } -#line 3237 "runtime.in" +#line 3253 "runtime.in" // pair min(picture *f, realarray2 *t); -void gen250(stack *Stack) +void gen251(stack *Stack) { realarray2 * t=vm::pop<realarray2 *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 3238 "runtime.in" +#line 3254 "runtime.in" real *T=copyArray2C(t,4); pair m=f->bounds(::min,xproject,yproject,T); delete[] T; {Stack->push<pair>(m); return;} } -#line 3245 "runtime.in" +#line 3261 "runtime.in" // pair max(picture *f, realarray2 *t); -void gen251(stack *Stack) +void gen252(stack *Stack) { realarray2 * t=vm::pop<realarray2 *>(Stack); picture * f=vm::pop<picture *>(Stack); -#line 3246 "runtime.in" +#line 3262 "runtime.in" real *T=copyArray2C(t,4); pair M=f->bounds(::max,xproject,yproject,T); delete[] T; {Stack->push<pair>(M); return;} } -#line 3253 "runtime.in" +#line 3269 "runtime.in" // pair minratio(picture *f); -void gen252(stack *Stack) +void gen253(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 3254 "runtime.in" +#line 3270 "runtime.in" {Stack->push<pair>(f->bounds(::min,xratio,yratio)); return;} } -#line 3258 "runtime.in" +#line 3274 "runtime.in" // pair maxratio(picture *f); -void gen253(stack *Stack) +void gen254(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 3259 "runtime.in" +#line 3275 "runtime.in" {Stack->push<pair>(f->bounds(::max,xratio,yratio)); return;} } -#line 3263 "runtime.in" +#line 3279 "runtime.in" // triple minbound(triplearray2 *P, triple b); -void gen254(stack *Stack) +void gen255(stack *Stack) { triple b=vm::pop<triple>(Stack); triplearray2 * P=vm::pop<triplearray2 *>(Stack); -#line 3264 "runtime.in" +#line 3280 "runtime.in" real *A=copyTripleArray2Components(P,true,4); b=triple(bound(A,::min,b.getx(),sqrtFuzz*norm(A,16)), bound(A+16,::min,b.gety(),sqrtFuzz*norm(A+16,16)), @@ -4434,13 +4455,13 @@ void gen254(stack *Stack) {Stack->push<triple>(b); return;} } -#line 3273 "runtime.in" +#line 3289 "runtime.in" // triple maxbound(triplearray2 *P, triple b); -void gen255(stack *Stack) +void gen256(stack *Stack) { triple b=vm::pop<triple>(Stack); triplearray2 * P=vm::pop<triplearray2 *>(Stack); -#line 3274 "runtime.in" +#line 3290 "runtime.in" real *A=copyTripleArray2Components(P,true,4); b=triple(bound(A,::max,b.getx(),sqrtFuzz*norm(A,16)), bound(A+16,::max,b.gety(),sqrtFuzz*norm(A+16,16)), @@ -4449,14 +4470,14 @@ void gen255(stack *Stack) {Stack->push<triple>(b); return;} } -#line 3283 "runtime.in" +#line 3299 "runtime.in" // pair minbound(triplearray2 *P, realarray2 *t, pair b); -void gen256(stack *Stack) +void gen257(stack *Stack) { pair b=vm::pop<pair>(Stack); realarray2 * t=vm::pop<realarray2 *>(Stack); triplearray2 * P=vm::pop<triplearray2 *>(Stack); -#line 3284 "runtime.in" +#line 3300 "runtime.in" triple *A=copyTripleArray2C(P,true,4); real *T=copyArray2C(t,4); real fuzz=sqrtFuzz*norm(A,16); @@ -4467,14 +4488,14 @@ void gen256(stack *Stack) {Stack->push<pair>(b); return;} } -#line 3295 "runtime.in" +#line 3311 "runtime.in" // pair maxbound(triplearray2 *P, realarray2 *t, pair b); -void gen257(stack *Stack) +void gen258(stack *Stack) { pair b=vm::pop<pair>(Stack); realarray2 * t=vm::pop<realarray2 *>(Stack); triplearray2 * P=vm::pop<triplearray2 *>(Stack); -#line 3296 "runtime.in" +#line 3312 "runtime.in" triple *A=copyTripleArray2C(P,true,4); real *T=copyArray2C(t,4); real fuzz=sqrtFuzz*norm(A,16); @@ -4485,38 +4506,38 @@ void gen257(stack *Stack) {Stack->push<pair>(b); return;} } -#line 3307 "runtime.in" +#line 3323 "runtime.in" // pair max(path3 g, realarray2 *t); -void gen258(stack *Stack) +void gen259(stack *Stack) { realarray2 * t=vm::pop<realarray2 *>(Stack); path3 g=vm::pop<path3>(Stack); -#line 3308 "runtime.in" +#line 3324 "runtime.in" real *T=copyArray2C(t,4); pair b=g.bounds(::max,xproject,yproject,T); delete[] T; {Stack->push<pair>(b); return;} } -#line 3315 "runtime.in" +#line 3331 "runtime.in" // pair min(path3 g, realarray2 *t); -void gen259(stack *Stack) +void gen260(stack *Stack) { realarray2 * t=vm::pop<realarray2 *>(Stack); path3 g=vm::pop<path3>(Stack); -#line 3316 "runtime.in" +#line 3332 "runtime.in" real *T=copyArray2C(t,4); pair b=g.bounds(::min,xproject,yproject,T); delete[] T; {Stack->push<pair>(b); return;} } -#line 3323 "runtime.in" +#line 3339 "runtime.in" // real change2(triplearray2 *a); -void gen260(stack *Stack) +void gen261(stack *Stack) { triplearray2 * a=vm::pop<triplearray2 *>(Stack); -#line 3324 "runtime.in" +#line 3340 "runtime.in" size_t n=checkArray(a); if(n == 0) {Stack->push<real>(0.0); return;} @@ -4537,241 +4558,241 @@ void gen260(stack *Stack) {Stack->push<real>(M); return;} } -#line 3345 "runtime.in" +#line 3361 "runtime.in" // bool is3D(picture *f); -void gen261(stack *Stack) +void gen262(stack *Stack) { picture * f=vm::pop<picture *>(Stack); -#line 3346 "runtime.in" +#line 3362 "runtime.in" {Stack->push<bool>(f->have3D()); return;} } -#line 3350 "runtime.in" +#line 3366 "runtime.in" // pair bezier(pair a, pair b, pair c, pair d, real t); -void gen262(stack *Stack) +void gen263(stack *Stack) { real t=vm::pop<real>(Stack); pair d=vm::pop<pair>(Stack); pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 3351 "runtime.in" +#line 3367 "runtime.in" real onemt=1-t; real onemt2=onemt*onemt; {Stack->push<pair>(onemt2*onemt*a+t*(3.0*(onemt2*b+t*onemt*c)+t*t*d)); return;} } -#line 3357 "runtime.in" +#line 3373 "runtime.in" // pair bezierP(pair a, pair b, pair c, pair d, real t); -void gen263(stack *Stack) +void gen264(stack *Stack) { real t=vm::pop<real>(Stack); pair d=vm::pop<pair>(Stack); pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 3358 "runtime.in" +#line 3374 "runtime.in" {Stack->push<pair>(3.0*(t*t*(d-a+3.0*(b-c))+t*(2.0*(a+c)-4.0*b)+b-a)); return;} } -#line 3362 "runtime.in" +#line 3378 "runtime.in" // pair bezierPP(pair a, pair b, pair c, pair d, real t); -void gen264(stack *Stack) +void gen265(stack *Stack) { real t=vm::pop<real>(Stack); pair d=vm::pop<pair>(Stack); pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 3363 "runtime.in" +#line 3379 "runtime.in" {Stack->push<pair>(6.0*(t*(d-a+3.0*(b-c))+a+c-2.0*b)); return;} } -#line 3367 "runtime.in" +#line 3383 "runtime.in" // pair bezierPPP(pair a, pair b, pair c, pair d); -void gen265(stack *Stack) +void gen266(stack *Stack) { pair d=vm::pop<pair>(Stack); pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 3368 "runtime.in" +#line 3384 "runtime.in" {Stack->push<pair>(6.0*(d-a+3.0*(b-c))); return;} } -#line 3372 "runtime.in" +#line 3388 "runtime.in" // triple bezier(triple a, triple b, triple c, triple d, real t); -void gen266(stack *Stack) +void gen267(stack *Stack) { real t=vm::pop<real>(Stack); triple d=vm::pop<triple>(Stack); triple c=vm::pop<triple>(Stack); triple b=vm::pop<triple>(Stack); triple a=vm::pop<triple>(Stack); -#line 3373 "runtime.in" +#line 3389 "runtime.in" real onemt=1-t; real onemt2=onemt*onemt; {Stack->push<triple>(onemt2*onemt*a+t*(3.0*(onemt2*b+t*onemt*c)+t*t*d)); return;} } -#line 3379 "runtime.in" +#line 3395 "runtime.in" // triple bezierP(triple a, triple b, triple c, triple d, real t); -void gen267(stack *Stack) +void gen268(stack *Stack) { real t=vm::pop<real>(Stack); triple d=vm::pop<triple>(Stack); triple c=vm::pop<triple>(Stack); triple b=vm::pop<triple>(Stack); triple a=vm::pop<triple>(Stack); -#line 3380 "runtime.in" +#line 3396 "runtime.in" {Stack->push<triple>(3.0*(t*t*(d-a+3.0*(b-c))+t*(2.0*(a+c)-4.0*b)+b-a)); return;} } -#line 3384 "runtime.in" +#line 3400 "runtime.in" // triple bezierPP(triple a, triple b, triple c, triple d, real t); -void gen268(stack *Stack) +void gen269(stack *Stack) { real t=vm::pop<real>(Stack); triple d=vm::pop<triple>(Stack); triple c=vm::pop<triple>(Stack); triple b=vm::pop<triple>(Stack); triple a=vm::pop<triple>(Stack); -#line 3385 "runtime.in" +#line 3401 "runtime.in" {Stack->push<triple>(6.0*(t*(d-a+3.0*(b-c))+a+c-2.0*b)); return;} } -#line 3389 "runtime.in" +#line 3405 "runtime.in" // triple bezierPPP(triple a, triple b, triple c, triple d); -void gen269(stack *Stack) +void gen270(stack *Stack) { triple d=vm::pop<triple>(Stack); triple c=vm::pop<triple>(Stack); triple b=vm::pop<triple>(Stack); triple a=vm::pop<triple>(Stack); -#line 3390 "runtime.in" +#line 3406 "runtime.in" {Stack->push<triple>(6.0*(d-a+3.0*(b-c))); return;} } // String operations -#line 3396 "runtime.in" +#line 3412 "runtime.in" void emptyString(stack *Stack) { -#line 3397 "runtime.in" +#line 3413 "runtime.in" {Stack->push<string>(emptystring); return;} } -#line 3402 "runtime.in" +#line 3418 "runtime.in" // Int length(string *s); -void gen271(stack *Stack) +void gen272(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 3403 "runtime.in" +#line 3419 "runtime.in" {Stack->push<Int>((Int) s->length()); return;} } -#line 3407 "runtime.in" +#line 3423 "runtime.in" // Int find(string *s, string t, Int pos=0); -void gen272(stack *Stack) +void gen273(stack *Stack) { Int pos=vm::pop<Int>(Stack,0); string t=vm::pop<string>(Stack); string * s=vm::pop<string *>(Stack); -#line 3408 "runtime.in" +#line 3424 "runtime.in" size_t n=s->find(t,pos); {Stack->push<Int>(n == string::npos ? (Int) -1 : (Int) n); return;} } -#line 3413 "runtime.in" +#line 3429 "runtime.in" // Int rfind(string *s, string t, Int pos=-1); -void gen273(stack *Stack) +void gen274(stack *Stack) { Int pos=vm::pop<Int>(Stack,-1); string t=vm::pop<string>(Stack); string * s=vm::pop<string *>(Stack); -#line 3414 "runtime.in" +#line 3430 "runtime.in" size_t n=s->rfind(t,pos); {Stack->push<Int>(n == string::npos ? (Int) -1 : (Int) n); return;} } -#line 3419 "runtime.in" +#line 3435 "runtime.in" // string reverse(string s); -void gen274(stack *Stack) +void gen275(stack *Stack) { string s=vm::pop<string>(Stack); -#line 3420 "runtime.in" +#line 3436 "runtime.in" reverse(s.begin(),s.end()); {Stack->push<string>(s); return;} } -#line 3425 "runtime.in" +#line 3441 "runtime.in" // string insert(string s, Int pos, string t); -void gen275(stack *Stack) +void gen276(stack *Stack) { string t=vm::pop<string>(Stack); Int pos=vm::pop<Int>(Stack); string s=vm::pop<string>(Stack); -#line 3426 "runtime.in" +#line 3442 "runtime.in" if ((size_t) pos < s.length()) {Stack->push<string>(s.insert(pos,t)); return;} {Stack->push<string>(s); return;} } -#line 3432 "runtime.in" +#line 3448 "runtime.in" // string substr(string* s, Int pos, Int n=-1); -void gen276(stack *Stack) +void gen277(stack *Stack) { Int n=vm::pop<Int>(Stack,-1); Int pos=vm::pop<Int>(Stack); string* s=vm::pop<string*>(Stack); -#line 3433 "runtime.in" +#line 3449 "runtime.in" if ((size_t) pos < s->length()) {Stack->push<string>(s->substr(pos,n)); return;} {Stack->push<string>(emptystring); return;} } -#line 3439 "runtime.in" +#line 3455 "runtime.in" // string erase(string s, Int pos, Int n); -void gen277(stack *Stack) +void gen278(stack *Stack) { Int n=vm::pop<Int>(Stack); Int pos=vm::pop<Int>(Stack); string s=vm::pop<string>(Stack); -#line 3440 "runtime.in" +#line 3456 "runtime.in" if ((size_t) pos < s.length()) {Stack->push<string>(s.erase(pos,n)); return;} {Stack->push<string>(s); return;} } -#line 3446 "runtime.in" +#line 3462 "runtime.in" // string downcase(string s); -void gen278(stack *Stack) +void gen279(stack *Stack) { string s=vm::pop<string>(Stack); -#line 3447 "runtime.in" +#line 3463 "runtime.in" std::transform(s.begin(),s.end(),s.begin(),tolower); {Stack->push<string>(s); return;} } -#line 3452 "runtime.in" +#line 3468 "runtime.in" // string upcase(string s); -void gen279(stack *Stack) +void gen280(stack *Stack) { string s=vm::pop<string>(Stack); -#line 3453 "runtime.in" +#line 3469 "runtime.in" std::transform(s.begin(),s.end(),s.begin(),toupper); {Stack->push<string>(s); return;} } // returns a string constructed by translating all occurrences of the string // from in an array of string pairs {from,to} to the string to in string s. -#line 3460 "runtime.in" +#line 3476 "runtime.in" // string replace(string *S, stringarray2 *translate); -void gen280(stack *Stack) +void gen281(stack *Stack) { stringarray2 * translate=vm::pop<stringarray2 *>(Stack); string * S=vm::pop<string *>(Stack); -#line 3461 "runtime.in" +#line 3477 "runtime.in" size_t size=checkArray(translate); for(size_t i=0; i < size; i++) { array *a=read<array*>(translate,i); @@ -4795,13 +4816,13 @@ void gen280(stack *Stack) {Stack->push<string>(buf.str()); return;} } -#line 3485 "runtime.in" +#line 3501 "runtime.in" // string format(string *format, Int x); -void gen281(stack *Stack) +void gen282(stack *Stack) { Int x=vm::pop<Int>(Stack); string * format=vm::pop<string *>(Stack); -#line 3486 "runtime.in" +#line 3502 "runtime.in" const char *f=format->c_str(); checkformat(f,true); @@ -4815,14 +4836,14 @@ void gen281(stack *Stack) {Stack->push<string>(s); return;} } -#line 3500 "runtime.in" +#line 3516 "runtime.in" // string format(string *format, real x, string locale=emptystring); -void gen282(stack *Stack) +void gen283(stack *Stack) { string locale=vm::pop<string>(Stack,emptystring); real x=vm::pop<real>(Stack); string * format=vm::pop<string *>(Stack); -#line 3501 "runtime.in" +#line 3517 "runtime.in" ostringstream out; checkformat(format->c_str(),false); @@ -4939,12 +4960,12 @@ void gen282(stack *Stack) {Stack->push<string>(out.str()); return;} } -#line 3618 "runtime.in" +#line 3634 "runtime.in" // Int hex(string s); -void gen283(stack *Stack) +void gen284(stack *Stack) { string s=vm::pop<string>(Stack); -#line 3619 "runtime.in" +#line 3635 "runtime.in" istringstream is(s); is.setf(std::ios::hex,std::ios::basefield); Int value; @@ -4954,36 +4975,36 @@ void gen283(stack *Stack) error(buf); } -#line 3629 "runtime.in" +#line 3645 "runtime.in" // string string(Int x); -void gen284(stack *Stack) +void gen285(stack *Stack) { Int x=vm::pop<Int>(Stack); -#line 3630 "runtime.in" +#line 3646 "runtime.in" ostringstream buf; buf << x; {Stack->push<string>(buf.str()); return;} } -#line 3636 "runtime.in" +#line 3652 "runtime.in" // string string(real x, Int digits=DBL_DIG); -void gen285(stack *Stack) +void gen286(stack *Stack) { Int digits=vm::pop<Int>(Stack,DBL_DIG); real x=vm::pop<real>(Stack); -#line 3637 "runtime.in" +#line 3653 "runtime.in" ostringstream buf; buf.precision(digits); buf << x; {Stack->push<string>(buf.str()); return;} } -#line 3644 "runtime.in" +#line 3660 "runtime.in" // string time(string format=defaulttimeformat); -void gen286(stack *Stack) +void gen287(stack *Stack) { string format=vm::pop<string>(Stack,defaulttimeformat); -#line 3645 "runtime.in" +#line 3661 "runtime.in" #ifdef HAVE_STRFTIME const time_t bintime=time(NULL); if(!strftime(Time,nTime,format.c_str(),localtime(&bintime))) {Stack->push<string>(""); return;} @@ -4993,13 +5014,13 @@ void gen286(stack *Stack) #endif } -#line 3655 "runtime.in" +#line 3671 "runtime.in" // string time(Int seconds, string format=defaulttimeformat); -void gen287(stack *Stack) +void gen288(stack *Stack) { string format=vm::pop<string>(Stack,defaulttimeformat); Int seconds=vm::pop<Int>(Stack); -#line 3656 "runtime.in" +#line 3672 "runtime.in" #ifdef HAVE_STRFTIME const time_t bintime=seconds; if(!strftime(Time,nTime,format.c_str(),localtime(&bintime))) {Stack->push<string>(""); return;} @@ -5011,13 +5032,13 @@ void gen287(stack *Stack) #endif } -#line 3668 "runtime.in" +#line 3684 "runtime.in" // Int seconds(string t=emptystring, string format=emptystring); -void gen288(stack *Stack) +void gen289(stack *Stack) { string format=vm::pop<string>(Stack,emptystring); string t=vm::pop<string>(Stack,emptystring); -#line 3669 "runtime.in" +#line 3685 "runtime.in" #if defined(HAVE_STRPTIME) const time_t bintime=time(NULL); tm tm=*localtime(&bintime); @@ -5028,11 +5049,11 @@ void gen288(stack *Stack) #endif } -#line 3680 "runtime.in" +#line 3696 "runtime.in" // realarray* _cputime(); -void gen289(stack *Stack) +void gen290(stack *Stack) { -#line 3681 "runtime.in" +#line 3697 "runtime.in" static const real ticktime=1.0/sysconf(_SC_CLK_TCK); struct tms buf; @@ -5047,234 +5068,234 @@ void gen289(stack *Stack) // Math -#line 3696 "runtime.in" +#line 3712 "runtime.in" // real ^(real x, Int y); -void gen290(stack *Stack) +void gen291(stack *Stack) { Int y=vm::pop<Int>(Stack); real x=vm::pop<real>(Stack); -#line 3697 "runtime.in" +#line 3713 "runtime.in" {Stack->push<real>(pow(x,y)); return;} } -#line 3702 "runtime.in" +#line 3718 "runtime.in" // pair ^(pair z, Int y); -void gen291(stack *Stack) +void gen292(stack *Stack) { Int y=vm::pop<Int>(Stack); pair z=vm::pop<pair>(Stack); -#line 3703 "runtime.in" +#line 3719 "runtime.in" {Stack->push<pair>(pow(z,y)); return;} } -#line 3707 "runtime.in" +#line 3723 "runtime.in" // Int quotient(Int x, Int y); -void gen292(stack *Stack) +void gen293(stack *Stack) { Int y=vm::pop<Int>(Stack); Int x=vm::pop<Int>(Stack); -#line 3708 "runtime.in" +#line 3724 "runtime.in" if(y == 0) dividebyzero(); if(y == -1) {Stack->push<Int>(Negate(x)); return;} // Implementation-independent definition of integer division: round down {Stack->push<Int>((x-portableMod(x,y))/y); return;} } -#line 3715 "runtime.in" +#line 3731 "runtime.in" // Int abs(Int x); -void gen293(stack *Stack) +void gen294(stack *Stack) { Int x=vm::pop<Int>(Stack); -#line 3716 "runtime.in" +#line 3732 "runtime.in" {Stack->push<Int>(Abs(x)); return;} } -#line 3720 "runtime.in" +#line 3736 "runtime.in" // Int sgn(real x); -void gen294(stack *Stack) +void gen295(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3721 "runtime.in" +#line 3737 "runtime.in" {Stack->push<Int>(sgn(x)); return;} } -#line 3725 "runtime.in" +#line 3741 "runtime.in" // Int rand(); -void gen295(stack *Stack) +void gen296(stack *Stack) { -#line 3726 "runtime.in" +#line 3742 "runtime.in" {Stack->push<Int>(rand()); return;} } -#line 3730 "runtime.in" +#line 3746 "runtime.in" // void srand(Int seed); -void gen296(stack *Stack) +void gen297(stack *Stack) { Int seed=vm::pop<Int>(Stack); -#line 3731 "runtime.in" +#line 3747 "runtime.in" srand(intcast(seed)); } // a random number uniformly distributed in the interval [0,1] -#line 3736 "runtime.in" +#line 3752 "runtime.in" // real unitrand(); -void gen297(stack *Stack) +void gen298(stack *Stack) { -#line 3737 "runtime.in" +#line 3753 "runtime.in" {Stack->push<real>(((real) rand())/RAND_MAX); return;} } -#line 3741 "runtime.in" +#line 3757 "runtime.in" // Int ceil(real x); -void gen298(stack *Stack) +void gen299(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3742 "runtime.in" +#line 3758 "runtime.in" {Stack->push<Int>(Intcast(ceil(x))); return;} } -#line 3746 "runtime.in" +#line 3762 "runtime.in" // Int floor(real x); -void gen299(stack *Stack) +void gen300(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3747 "runtime.in" +#line 3763 "runtime.in" {Stack->push<Int>(Intcast(floor(x))); return;} } -#line 3751 "runtime.in" +#line 3767 "runtime.in" // Int round(real x); -void gen300(stack *Stack) +void gen301(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3752 "runtime.in" +#line 3768 "runtime.in" if(validInt(x)) {Stack->push<Int>(Round(x)); return;} integeroverflow(0); } -#line 3757 "runtime.in" +#line 3773 "runtime.in" // Int Ceil(real x); -void gen301(stack *Stack) +void gen302(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3758 "runtime.in" +#line 3774 "runtime.in" {Stack->push<Int>(Ceil(x)); return;} } -#line 3762 "runtime.in" +#line 3778 "runtime.in" // Int Floor(real x); -void gen302(stack *Stack) +void gen303(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3763 "runtime.in" +#line 3779 "runtime.in" {Stack->push<Int>(Floor(x)); return;} } -#line 3767 "runtime.in" +#line 3783 "runtime.in" // Int Round(real x); -void gen303(stack *Stack) +void gen304(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3768 "runtime.in" +#line 3784 "runtime.in" {Stack->push<Int>(Round(Intcap(x))); return;} } -#line 3772 "runtime.in" +#line 3788 "runtime.in" // real fmod(real x, real y); -void gen304(stack *Stack) +void gen305(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 3773 "runtime.in" +#line 3789 "runtime.in" if (y == 0.0) dividebyzero(); {Stack->push<real>(fmod(x,y)); return;} } -#line 3778 "runtime.in" +#line 3794 "runtime.in" // real atan2(real y, real x); -void gen305(stack *Stack) +void gen306(stack *Stack) { real x=vm::pop<real>(Stack); real y=vm::pop<real>(Stack); -#line 3779 "runtime.in" +#line 3795 "runtime.in" {Stack->push<real>(atan2(y,x)); return;} } -#line 3783 "runtime.in" +#line 3799 "runtime.in" // real hypot(real x, real y); -void gen306(stack *Stack) +void gen307(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 3784 "runtime.in" +#line 3800 "runtime.in" {Stack->push<real>(hypot(x,y)); return;} } -#line 3788 "runtime.in" +#line 3804 "runtime.in" // real remainder(real x, real y); -void gen307(stack *Stack) +void gen308(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 3789 "runtime.in" +#line 3805 "runtime.in" {Stack->push<real>(remainder(x,y)); return;} } -#line 3793 "runtime.in" +#line 3809 "runtime.in" // real J(Int n, real x); -void gen308(stack *Stack) +void gen309(stack *Stack) { real x=vm::pop<real>(Stack); Int n=vm::pop<Int>(Stack); -#line 3794 "runtime.in" +#line 3810 "runtime.in" {Stack->push<real>(jn(n,x)); return;} } -#line 3798 "runtime.in" +#line 3814 "runtime.in" // real Y(Int n, real x); -void gen309(stack *Stack) +void gen310(stack *Stack) { real x=vm::pop<real>(Stack); Int n=vm::pop<Int>(Stack); -#line 3799 "runtime.in" +#line 3815 "runtime.in" {Stack->push<real>(yn(n,x)); return;} } -#line 3803 "runtime.in" +#line 3819 "runtime.in" // real erf(real x); -void gen310(stack *Stack) +void gen311(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3804 "runtime.in" +#line 3820 "runtime.in" {Stack->push<real>(erf(x)); return;} } -#line 3808 "runtime.in" +#line 3824 "runtime.in" // real erfc(real x); -void gen311(stack *Stack) +void gen312(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3809 "runtime.in" +#line 3825 "runtime.in" {Stack->push<real>(erfc(x)); return;} } -#line 3813 "runtime.in" +#line 3829 "runtime.in" // Int factorial(Int n); -void gen312(stack *Stack) +void gen313(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 3814 "runtime.in" +#line 3830 "runtime.in" if(n < 0) error(invalidargument); {Stack->push<Int>(factorial(n)); return;} } -#line 3818 "runtime.in" +#line 3834 "runtime.in" // Int choose(Int n, Int k); -void gen313(stack *Stack) +void gen314(stack *Stack) { Int k=vm::pop<Int>(Stack); Int n=vm::pop<Int>(Stack); -#line 3819 "runtime.in" +#line 3835 "runtime.in" if(n < 0 || k < 0 || k > n) error(invalidargument); Int f=1; Int r=n-k; @@ -5285,12 +5306,12 @@ void gen313(stack *Stack) {Stack->push<Int>(f); return;} } -#line 3829 "runtime.in" +#line 3845 "runtime.in" // real gamma(real x); -void gen314(stack *Stack) +void gen315(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3830 "runtime.in" +#line 3846 "runtime.in" #ifdef HAVE_TGAMMA {Stack->push<real>(tgamma(x)); return;} #else @@ -5300,23 +5321,23 @@ void gen314(stack *Stack) } // Complex Gamma function -#line 3840 "runtime.in" +#line 3856 "runtime.in" // pair gamma(explicit pair z); -void gen315(stack *Stack) +void gen316(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 3841 "runtime.in" +#line 3857 "runtime.in" {Stack->push<pair>(gamma(z)); return;} } -#line 3845 "runtime.in" +#line 3861 "runtime.in" // realarray* quadraticroots(real a, real b, real c); -void gen316(stack *Stack) +void gen317(stack *Stack) { real c=vm::pop<real>(Stack); real b=vm::pop<real>(Stack); real a=vm::pop<real>(Stack); -#line 3846 "runtime.in" +#line 3862 "runtime.in" quadraticroots q(a,b,c); array *roots=new array(q.roots); if(q.roots >= 1) (*roots)[0]=q.t1; @@ -5324,14 +5345,14 @@ void gen316(stack *Stack) {Stack->push<realarray*>(roots); return;} } -#line 3854 "runtime.in" +#line 3870 "runtime.in" // pairarray* quadraticroots(explicit pair a, explicit pair b, explicit pair c); -void gen317(stack *Stack) +void gen318(stack *Stack) { pair c=vm::pop<pair>(Stack); pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 3855 "runtime.in" +#line 3871 "runtime.in" Quadraticroots q(a,b,c); array *roots=new array(q.roots); if(q.roots >= 1) (*roots)[0]=q.z1; @@ -5339,15 +5360,15 @@ void gen317(stack *Stack) {Stack->push<pairarray*>(roots); return;} } -#line 3863 "runtime.in" +#line 3879 "runtime.in" // realarray* cubicroots(real a, real b, real c, real d); -void gen318(stack *Stack) +void gen319(stack *Stack) { real d=vm::pop<real>(Stack); real c=vm::pop<real>(Stack); real b=vm::pop<real>(Stack); real a=vm::pop<real>(Stack); -#line 3864 "runtime.in" +#line 3880 "runtime.in" cubicroots q(a,b,c,d); array *roots=new array(q.roots); if(q.roots >= 1) (*roots)[0]=q.t1; @@ -5358,103 +5379,103 @@ void gen318(stack *Stack) // Transforms -#line 3875 "runtime.in" +#line 3891 "runtime.in" // bool ==(transform a, transform b); -void gen319(stack *Stack) +void gen320(stack *Stack) { transform b=vm::pop<transform>(Stack); transform a=vm::pop<transform>(Stack); -#line 3876 "runtime.in" +#line 3892 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 3881 "runtime.in" +#line 3897 "runtime.in" // bool !=(transform a, transform b); -void gen320(stack *Stack) +void gen321(stack *Stack) { transform b=vm::pop<transform>(Stack); transform a=vm::pop<transform>(Stack); -#line 3882 "runtime.in" +#line 3898 "runtime.in" {Stack->push<bool>(a != b); return;} } -#line 3886 "runtime.in" +#line 3902 "runtime.in" // transform +(transform a, transform b); -void gen321(stack *Stack) +void gen322(stack *Stack) { transform b=vm::pop<transform>(Stack); transform a=vm::pop<transform>(Stack); -#line 3887 "runtime.in" +#line 3903 "runtime.in" {Stack->push<transform>(a+b); return;} } -#line 3891 "runtime.in" +#line 3907 "runtime.in" // transform *(transform a, transform b); -void gen322(stack *Stack) +void gen323(stack *Stack) { transform b=vm::pop<transform>(Stack); transform a=vm::pop<transform>(Stack); -#line 3892 "runtime.in" +#line 3908 "runtime.in" {Stack->push<transform>(a*b); return;} } -#line 3896 "runtime.in" +#line 3912 "runtime.in" // pair *(transform t, pair z); -void gen323(stack *Stack) +void gen324(stack *Stack) { pair z=vm::pop<pair>(Stack); transform t=vm::pop<transform>(Stack); -#line 3897 "runtime.in" +#line 3913 "runtime.in" {Stack->push<pair>(t*z); return;} } -#line 3901 "runtime.in" +#line 3917 "runtime.in" // path *(transform t, path g); -void gen324(stack *Stack) +void gen325(stack *Stack) { path g=vm::pop<path>(Stack); transform t=vm::pop<transform>(Stack); -#line 3902 "runtime.in" +#line 3918 "runtime.in" {Stack->push<path>(transformed(t,g)); return;} } -#line 3906 "runtime.in" +#line 3922 "runtime.in" // pen *(transform t, pen p); -void gen325(stack *Stack) +void gen326(stack *Stack) { pen p=vm::pop<pen>(Stack); transform t=vm::pop<transform>(Stack); -#line 3907 "runtime.in" +#line 3923 "runtime.in" {Stack->push<pen>(transformed(t,p)); return;} } -#line 3911 "runtime.in" +#line 3927 "runtime.in" // picture* *(transform t, picture *f); -void gen326(stack *Stack) +void gen327(stack *Stack) { picture * f=vm::pop<picture *>(Stack); transform t=vm::pop<transform>(Stack); -#line 3912 "runtime.in" +#line 3928 "runtime.in" {Stack->push<picture*>(transformed(t,f)); return;} } -#line 3916 "runtime.in" +#line 3932 "runtime.in" // picture* *(realarray2 *t, picture *f); -void gen327(stack *Stack) +void gen328(stack *Stack) { picture * f=vm::pop<picture *>(Stack); realarray2 * t=vm::pop<realarray2 *>(Stack); -#line 3917 "runtime.in" +#line 3933 "runtime.in" {Stack->push<picture*>(transformed(*t,f)); return;} } -#line 3921 "runtime.in" +#line 3937 "runtime.in" // transform ^(transform t, Int n); -void gen328(stack *Stack) +void gen329(stack *Stack) { Int n=vm::pop<Int>(Stack); transform t=vm::pop<transform>(Stack); -#line 3922 "runtime.in" +#line 3938 "runtime.in" transform T; if(n < 0) { n=-n; @@ -5464,55 +5485,55 @@ void gen328(stack *Stack) {Stack->push<transform>(T); return;} } -#line 3932 "runtime.in" +#line 3948 "runtime.in" void transformXPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3933 "runtime.in" +#line 3949 "runtime.in" {Stack->push<real>(t.getx()); return;} } -#line 3937 "runtime.in" +#line 3953 "runtime.in" void transformYPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3938 "runtime.in" +#line 3954 "runtime.in" {Stack->push<real>(t.gety()); return;} } -#line 3942 "runtime.in" +#line 3958 "runtime.in" void transformXXPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3943 "runtime.in" +#line 3959 "runtime.in" {Stack->push<real>(t.getxx()); return;} } -#line 3947 "runtime.in" +#line 3963 "runtime.in" void transformXYPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3948 "runtime.in" +#line 3964 "runtime.in" {Stack->push<real>(t.getxy()); return;} } -#line 3952 "runtime.in" +#line 3968 "runtime.in" void transformYXPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3953 "runtime.in" +#line 3969 "runtime.in" {Stack->push<real>(t.getyx()); return;} } -#line 3957 "runtime.in" +#line 3973 "runtime.in" void transformYYPart(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3958 "runtime.in" +#line 3974 "runtime.in" {Stack->push<real>(t.getyy()); return;} } -#line 3962 "runtime.in" +#line 3978 "runtime.in" void real6ToTransform(stack *Stack) { real yy=vm::pop<real>(Stack); @@ -5521,765 +5542,765 @@ void real6ToTransform(stack *Stack) real xx=vm::pop<real>(Stack); real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 3964 "runtime.in" +#line 3980 "runtime.in" {Stack->push<transform>(transform(x,y,xx,xy,yx,yy)); return;} } -#line 3968 "runtime.in" +#line 3984 "runtime.in" // transform shift(transform t); -void gen336(stack *Stack) +void gen337(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3969 "runtime.in" +#line 3985 "runtime.in" {Stack->push<transform>(transform(t.getx(),t.gety(),0,0,0,0)); return;} } -#line 3973 "runtime.in" +#line 3989 "runtime.in" // transform shiftless(transform t); -void gen337(stack *Stack) +void gen338(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3974 "runtime.in" +#line 3990 "runtime.in" {Stack->push<transform>(transform(0,0,t.getxx(),t.getxy(),t.getyx(),t.getyy())); return;} } -#line 3978 "runtime.in" +#line 3994 "runtime.in" // transform identity(); void transformIdentity(stack *Stack) { -#line 3979 "runtime.in" +#line 3995 "runtime.in" {Stack->push<transform>(identity); return;} } -#line 3983 "runtime.in" +#line 3999 "runtime.in" // transform inverse(transform t); -void gen339(stack *Stack) +void gen340(stack *Stack) { transform t=vm::pop<transform>(Stack); -#line 3984 "runtime.in" +#line 4000 "runtime.in" {Stack->push<transform>(inverse(t)); return;} } -#line 3988 "runtime.in" +#line 4004 "runtime.in" // transform shift(pair z); -void gen340(stack *Stack) +void gen341(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 3989 "runtime.in" +#line 4005 "runtime.in" {Stack->push<transform>(shift(z)); return;} } -#line 3993 "runtime.in" +#line 4009 "runtime.in" // transform shift(real x, real y); -void gen341(stack *Stack) +void gen342(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 3994 "runtime.in" +#line 4010 "runtime.in" {Stack->push<transform>(shift(pair(x,y))); return;} } -#line 3998 "runtime.in" +#line 4014 "runtime.in" // transform xscale(real x); -void gen342(stack *Stack) +void gen343(stack *Stack) { real x=vm::pop<real>(Stack); -#line 3999 "runtime.in" +#line 4015 "runtime.in" {Stack->push<transform>(xscale(x)); return;} } -#line 4003 "runtime.in" +#line 4019 "runtime.in" // transform yscale(real y); -void gen343(stack *Stack) +void gen344(stack *Stack) { real y=vm::pop<real>(Stack); -#line 4004 "runtime.in" +#line 4020 "runtime.in" {Stack->push<transform>(yscale(y)); return;} } -#line 4008 "runtime.in" +#line 4024 "runtime.in" // transform scale(real x); -void gen344(stack *Stack) +void gen345(stack *Stack) { real x=vm::pop<real>(Stack); -#line 4009 "runtime.in" +#line 4025 "runtime.in" {Stack->push<transform>(scale(x)); return;} } -#line 4013 "runtime.in" +#line 4029 "runtime.in" // transform scale(real x, real y); -void gen345(stack *Stack) +void gen346(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 4014 "runtime.in" +#line 4030 "runtime.in" {Stack->push<transform>(xscale(x)*yscale(y)); return;} } -#line 4018 "runtime.in" +#line 4034 "runtime.in" // transform slant(real s); -void gen346(stack *Stack) +void gen347(stack *Stack) { real s=vm::pop<real>(Stack); -#line 4019 "runtime.in" +#line 4035 "runtime.in" {Stack->push<transform>(slant(s)); return;} } -#line 4023 "runtime.in" +#line 4039 "runtime.in" // transform rotate(real angle, pair z=0); -void gen347(stack *Stack) +void gen348(stack *Stack) { pair z=vm::pop<pair>(Stack,0); real angle=vm::pop<real>(Stack); -#line 4024 "runtime.in" +#line 4040 "runtime.in" {Stack->push<transform>(rotatearound(z,radians(angle))); return;} } -#line 4028 "runtime.in" +#line 4044 "runtime.in" // transform reflect(pair a, pair b); -void gen348(stack *Stack) +void gen349(stack *Stack) { pair b=vm::pop<pair>(Stack); pair a=vm::pop<pair>(Stack); -#line 4029 "runtime.in" +#line 4045 "runtime.in" {Stack->push<transform>(reflectabout(a,b)); return;} } // Pair operations -#line 4035 "runtime.in" +#line 4051 "runtime.in" void pairZero(stack *Stack) { -#line 4036 "runtime.in" +#line 4052 "runtime.in" {Stack->push<pair>(zero); return;} } -#line 4041 "runtime.in" +#line 4057 "runtime.in" void realRealToPair(stack *Stack) { real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 4042 "runtime.in" +#line 4058 "runtime.in" {Stack->push<pair>(pair(x,y)); return;} } -#line 4046 "runtime.in" +#line 4062 "runtime.in" void pairNegate(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4047 "runtime.in" +#line 4063 "runtime.in" {Stack->push<pair>(-z); return;} } -#line 4051 "runtime.in" +#line 4067 "runtime.in" // real xpart(pair z); void pairXPart(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4052 "runtime.in" +#line 4068 "runtime.in" {Stack->push<real>(z.getx()); return;} } -#line 4056 "runtime.in" +#line 4072 "runtime.in" // real ypart(pair z); void pairYPart(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4057 "runtime.in" +#line 4073 "runtime.in" {Stack->push<real>(z.gety()); return;} } -#line 4061 "runtime.in" +#line 4077 "runtime.in" // real length(pair z); -void gen354(stack *Stack) +void gen355(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4062 "runtime.in" +#line 4078 "runtime.in" {Stack->push<real>(z.length()); return;} } -#line 4066 "runtime.in" +#line 4082 "runtime.in" // real abs(pair z); -void gen355(stack *Stack) +void gen356(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4067 "runtime.in" +#line 4083 "runtime.in" {Stack->push<real>(z.length()); return;} } -#line 4071 "runtime.in" +#line 4087 "runtime.in" // pair sqrt(explicit pair z); -void gen356(stack *Stack) +void gen357(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4072 "runtime.in" +#line 4088 "runtime.in" {Stack->push<pair>(Sqrt(z)); return;} } // Return the angle of z in radians. -#line 4077 "runtime.in" +#line 4093 "runtime.in" // real angle(pair z, bool warn=true); -void gen357(stack *Stack) +void gen358(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); pair z=vm::pop<pair>(Stack); -#line 4078 "runtime.in" +#line 4094 "runtime.in" if(!warn && z.getx() == 0.0 && z.gety() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(z.angle()); return;} } // Return the angle of z in degrees in the interval [0,360). -#line 4084 "runtime.in" +#line 4100 "runtime.in" // real degrees(pair z, bool warn=true); -void gen358(stack *Stack) +void gen359(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); pair z=vm::pop<pair>(Stack); -#line 4085 "runtime.in" +#line 4101 "runtime.in" if(!warn && z.getx() == 0.0 && z.gety() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(principalBranch(degrees(z.angle()))); return;} } // Convert degrees to radians. -#line 4091 "runtime.in" +#line 4107 "runtime.in" // real radians(real degrees); -void gen359(stack *Stack) +void gen360(stack *Stack) { real degrees=vm::pop<real>(Stack); -#line 4092 "runtime.in" +#line 4108 "runtime.in" {Stack->push<real>(radians(degrees)); return;} } // Convert radians to degrees. -#line 4097 "runtime.in" +#line 4113 "runtime.in" // real degrees(real radians); -void gen360(stack *Stack) +void gen361(stack *Stack) { real radians=vm::pop<real>(Stack); -#line 4098 "runtime.in" +#line 4114 "runtime.in" {Stack->push<real>(degrees(radians)); return;} } // Convert radians to degrees in [0,360). -#line 4103 "runtime.in" +#line 4119 "runtime.in" // real Degrees(real radians); -void gen361(stack *Stack) +void gen362(stack *Stack) { real radians=vm::pop<real>(Stack); -#line 4104 "runtime.in" +#line 4120 "runtime.in" {Stack->push<real>(principalBranch(degrees(radians))); return;} } -#line 4108 "runtime.in" +#line 4124 "runtime.in" // real Sin(real deg); -void gen362(stack *Stack) +void gen363(stack *Stack) { real deg=vm::pop<real>(Stack); -#line 4109 "runtime.in" +#line 4125 "runtime.in" {Stack->push<real>(sin(radians(deg))); return;} } -#line 4113 "runtime.in" +#line 4129 "runtime.in" // real Cos(real deg); -void gen363(stack *Stack) +void gen364(stack *Stack) { real deg=vm::pop<real>(Stack); -#line 4114 "runtime.in" +#line 4130 "runtime.in" {Stack->push<real>(cos(radians(deg))); return;} } -#line 4118 "runtime.in" +#line 4134 "runtime.in" // real Tan(real deg); -void gen364(stack *Stack) +void gen365(stack *Stack) { real deg=vm::pop<real>(Stack); -#line 4119 "runtime.in" +#line 4135 "runtime.in" {Stack->push<real>(tan(radians(deg))); return;} } -#line 4123 "runtime.in" +#line 4139 "runtime.in" // real aSin(real x); -void gen365(stack *Stack) +void gen366(stack *Stack) { real x=vm::pop<real>(Stack); -#line 4124 "runtime.in" +#line 4140 "runtime.in" {Stack->push<real>(degrees(asin(x))); return;} } -#line 4128 "runtime.in" +#line 4144 "runtime.in" // real aCos(real x); -void gen366(stack *Stack) +void gen367(stack *Stack) { real x=vm::pop<real>(Stack); -#line 4129 "runtime.in" +#line 4145 "runtime.in" {Stack->push<real>(degrees(acos(x))); return;} } -#line 4133 "runtime.in" +#line 4149 "runtime.in" // real aTan(real x); -void gen367(stack *Stack) +void gen368(stack *Stack) { real x=vm::pop<real>(Stack); -#line 4134 "runtime.in" +#line 4150 "runtime.in" {Stack->push<real>(degrees(atan(x))); return;} } -#line 4138 "runtime.in" +#line 4154 "runtime.in" // pair unit(pair z); -void gen368(stack *Stack) +void gen369(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4139 "runtime.in" +#line 4155 "runtime.in" {Stack->push<pair>(unit(z)); return;} } -#line 4143 "runtime.in" +#line 4159 "runtime.in" // pair dir(real degrees); -void gen369(stack *Stack) +void gen370(stack *Stack) { real degrees=vm::pop<real>(Stack); -#line 4144 "runtime.in" +#line 4160 "runtime.in" {Stack->push<pair>(expi(radians(degrees))); return;} } -#line 4148 "runtime.in" +#line 4164 "runtime.in" // pair dir(explicit pair z); -void gen370(stack *Stack) +void gen371(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4149 "runtime.in" +#line 4165 "runtime.in" {Stack->push<pair>(unit(z)); return;} } -#line 4153 "runtime.in" +#line 4169 "runtime.in" // pair expi(real angle); -void gen371(stack *Stack) +void gen372(stack *Stack) { real angle=vm::pop<real>(Stack); -#line 4154 "runtime.in" +#line 4170 "runtime.in" {Stack->push<pair>(expi(angle)); return;} } -#line 4158 "runtime.in" +#line 4174 "runtime.in" // pair exp(explicit pair z); -void gen372(stack *Stack) +void gen373(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4159 "runtime.in" +#line 4175 "runtime.in" {Stack->push<pair>(exp(z)); return;} } -#line 4163 "runtime.in" +#line 4179 "runtime.in" // pair log(explicit pair z); -void gen373(stack *Stack) +void gen374(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4164 "runtime.in" +#line 4180 "runtime.in" {Stack->push<pair>(pair(log(z.length()),z.angle())); return;} } -#line 4168 "runtime.in" +#line 4184 "runtime.in" // pair sin(explicit pair z); -void gen374(stack *Stack) +void gen375(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4169 "runtime.in" +#line 4185 "runtime.in" {Stack->push<pair>(sin(z)); return;} } -#line 4173 "runtime.in" +#line 4189 "runtime.in" // pair cos(explicit pair z); -void gen375(stack *Stack) +void gen376(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4174 "runtime.in" +#line 4190 "runtime.in" {Stack->push<pair>(pair(cos(z.getx())*cosh(z.gety()),-sin(z.getx())*sinh(z.gety()))); return;} } -#line 4178 "runtime.in" +#line 4194 "runtime.in" // pair conj(pair z); -void gen376(stack *Stack) +void gen377(stack *Stack) { pair z=vm::pop<pair>(Stack); -#line 4179 "runtime.in" +#line 4195 "runtime.in" {Stack->push<pair>(conj(z)); return;} } -#line 4183 "runtime.in" +#line 4199 "runtime.in" // pair realmult(pair z, pair w); -void gen377(stack *Stack) +void gen378(stack *Stack) { pair w=vm::pop<pair>(Stack); pair z=vm::pop<pair>(Stack); -#line 4184 "runtime.in" +#line 4200 "runtime.in" {Stack->push<pair>(pair (z.getx()*w.getx(),z.gety()*w.gety())); return;} } -#line 4188 "runtime.in" +#line 4204 "runtime.in" // triple realmult(triple u, triple v); -void gen378(stack *Stack) +void gen379(stack *Stack) { triple v=vm::pop<triple>(Stack); triple u=vm::pop<triple>(Stack); -#line 4189 "runtime.in" +#line 4205 "runtime.in" {Stack->push<triple>(triple (u.getx()*v.getx(),u.gety()*v.gety(),u.getz()*v.getz())); return;} } // To avoid confusion, a dot product requires explicit pair arguments. -#line 4194 "runtime.in" +#line 4210 "runtime.in" // real dot(explicit pair z, explicit pair w); -void gen379(stack *Stack) +void gen380(stack *Stack) { pair w=vm::pop<pair>(Stack); pair z=vm::pop<pair>(Stack); -#line 4195 "runtime.in" +#line 4211 "runtime.in" {Stack->push<real>(dot(z,w)); return;} } // Triple operations -#line 4201 "runtime.in" +#line 4217 "runtime.in" void tripleZero(stack *Stack) { -#line 4202 "runtime.in" +#line 4218 "runtime.in" static triple zero; {Stack->push<triple>(zero); return;} } -#line 4208 "runtime.in" +#line 4224 "runtime.in" void realRealRealToTriple(stack *Stack) { real z=vm::pop<real>(Stack); real y=vm::pop<real>(Stack); real x=vm::pop<real>(Stack); -#line 4209 "runtime.in" +#line 4225 "runtime.in" {Stack->push<triple>(triple(x,y,z)); return;} } -#line 4213 "runtime.in" +#line 4229 "runtime.in" // real xpart(triple v); void tripleXPart(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4214 "runtime.in" +#line 4230 "runtime.in" {Stack->push<real>(v.getx()); return;} } -#line 4218 "runtime.in" +#line 4234 "runtime.in" // real ypart(triple v); void tripleYPart(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4219 "runtime.in" +#line 4235 "runtime.in" {Stack->push<real>(v.gety()); return;} } -#line 4223 "runtime.in" +#line 4239 "runtime.in" // real zpart(triple v); void tripleZPart(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4224 "runtime.in" +#line 4240 "runtime.in" {Stack->push<real>(v.getz()); return;} } -#line 4228 "runtime.in" +#line 4244 "runtime.in" // triple *(real x, triple v); -void gen385(stack *Stack) +void gen386(stack *Stack) { triple v=vm::pop<triple>(Stack); real x=vm::pop<real>(Stack); -#line 4229 "runtime.in" +#line 4245 "runtime.in" {Stack->push<triple>(x*v); return;} } -#line 4233 "runtime.in" +#line 4249 "runtime.in" // triple *(triple v, real x); -void gen386(stack *Stack) +void gen387(stack *Stack) { real x=vm::pop<real>(Stack); triple v=vm::pop<triple>(Stack); -#line 4234 "runtime.in" +#line 4250 "runtime.in" {Stack->push<triple>(v*x); return;} } -#line 4238 "runtime.in" +#line 4254 "runtime.in" // triple /(triple v, real x); -void gen387(stack *Stack) +void gen388(stack *Stack) { real x=vm::pop<real>(Stack); triple v=vm::pop<triple>(Stack); -#line 4239 "runtime.in" +#line 4255 "runtime.in" {Stack->push<triple>(v/x); return;} } -#line 4243 "runtime.in" +#line 4259 "runtime.in" // real length(triple v); -void gen388(stack *Stack) +void gen389(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4244 "runtime.in" +#line 4260 "runtime.in" {Stack->push<real>(v.length()); return;} } -#line 4248 "runtime.in" +#line 4264 "runtime.in" // real abs(triple v); -void gen389(stack *Stack) +void gen390(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4249 "runtime.in" +#line 4265 "runtime.in" {Stack->push<real>(v.length()); return;} } -#line 4253 "runtime.in" +#line 4269 "runtime.in" // real polar(triple v, bool warn=true); -void gen390(stack *Stack) +void gen391(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); triple v=vm::pop<triple>(Stack); -#line 4254 "runtime.in" +#line 4270 "runtime.in" if(!warn && v.getx() == 0.0 && v.gety() == 0.0 && v.getz() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(v.polar()); return;} } -#line 4259 "runtime.in" +#line 4275 "runtime.in" // real azimuth(triple v, bool warn=true); -void gen391(stack *Stack) +void gen392(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); triple v=vm::pop<triple>(Stack); -#line 4260 "runtime.in" +#line 4276 "runtime.in" if(!warn && v.getx() == 0.0 && v.gety() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(v.azimuth()); return;} } -#line 4265 "runtime.in" +#line 4281 "runtime.in" // real colatitude(triple v, bool warn=true); -void gen392(stack *Stack) +void gen393(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); triple v=vm::pop<triple>(Stack); -#line 4266 "runtime.in" +#line 4282 "runtime.in" if(!warn && v.getx() == 0.0 && v.gety() == 0.0 && v.getz() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(degrees(v.polar())); return;} } -#line 4271 "runtime.in" +#line 4287 "runtime.in" // real latitude(triple v, bool warn=true); -void gen393(stack *Stack) +void gen394(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); triple v=vm::pop<triple>(Stack); -#line 4272 "runtime.in" +#line 4288 "runtime.in" if(!warn && v.getx() == 0.0 && v.gety() == 0.0 && v.getz() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(90.0-degrees(v.polar())); return;} } // Return the longitude of v in [0,360). -#line 4278 "runtime.in" +#line 4294 "runtime.in" // real longitude(triple v, bool warn=true); -void gen394(stack *Stack) +void gen395(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); triple v=vm::pop<triple>(Stack); -#line 4279 "runtime.in" +#line 4295 "runtime.in" if(!warn && v.getx() == 0.0 && v.gety() == 0.0) {Stack->push<real>(0.0); return;} {Stack->push<real>(principalBranch(degrees(v.azimuth()))); return;} } -#line 4284 "runtime.in" +#line 4300 "runtime.in" // triple unit(triple v); -void gen395(stack *Stack) +void gen396(stack *Stack) { triple v=vm::pop<triple>(Stack); -#line 4285 "runtime.in" +#line 4301 "runtime.in" {Stack->push<triple>(unit(v)); return;} } -#line 4289 "runtime.in" +#line 4305 "runtime.in" // real dot(triple u, triple v); -void gen396(stack *Stack) +void gen397(stack *Stack) { triple v=vm::pop<triple>(Stack); triple u=vm::pop<triple>(Stack); -#line 4290 "runtime.in" +#line 4306 "runtime.in" {Stack->push<real>(dot(u,v)); return;} } -#line 4294 "runtime.in" +#line 4310 "runtime.in" // triple cross(triple u, triple v); -void gen397(stack *Stack) +void gen398(stack *Stack) { triple v=vm::pop<triple>(Stack); triple u=vm::pop<triple>(Stack); -#line 4295 "runtime.in" +#line 4311 "runtime.in" {Stack->push<triple>(cross(u,v)); return;} } -#line 4299 "runtime.in" +#line 4315 "runtime.in" // triple expi(real polar, real azimuth); -void gen398(stack *Stack) +void gen399(stack *Stack) { real azimuth=vm::pop<real>(Stack); real polar=vm::pop<real>(Stack); -#line 4300 "runtime.in" +#line 4316 "runtime.in" {Stack->push<triple>(expi(polar,azimuth)); return;} } -#line 4304 "runtime.in" +#line 4320 "runtime.in" // triple dir(real colatitude, real longitude); -void gen399(stack *Stack) +void gen400(stack *Stack) { real longitude=vm::pop<real>(Stack); real colatitude=vm::pop<real>(Stack); -#line 4305 "runtime.in" +#line 4321 "runtime.in" {Stack->push<triple>(expi(radians(colatitude),radians(longitude))); return;} } // System routines -#line 4311 "runtime.in" +#line 4327 "runtime.in" // void atupdate(callable *f); -void gen400(stack *Stack) +void gen401(stack *Stack) { callable * f=vm::pop<callable *>(Stack); -#line 4312 "runtime.in" +#line 4328 "runtime.in" processData().atUpdateFunction=f; } -#line 4317 "runtime.in" +#line 4333 "runtime.in" // callable* atupdate(); -void gen401(stack *Stack) +void gen402(stack *Stack) { -#line 4318 "runtime.in" +#line 4334 "runtime.in" {Stack->push<callable*>(processData().atUpdateFunction); return;} } -#line 4322 "runtime.in" +#line 4338 "runtime.in" // void atexit(callable *f); -void gen402(stack *Stack) +void gen403(stack *Stack) { callable * f=vm::pop<callable *>(Stack); -#line 4323 "runtime.in" +#line 4339 "runtime.in" processData().atExitFunction=f; } -#line 4327 "runtime.in" +#line 4343 "runtime.in" // callable* atexit(); -void gen403(stack *Stack) +void gen404(stack *Stack) { -#line 4328 "runtime.in" +#line 4344 "runtime.in" {Stack->push<callable*>(processData().atExitFunction); return;} } -#line 4332 "runtime.in" +#line 4348 "runtime.in" // void atbreakpoint(callableBp *f); -void gen404(stack *Stack) +void gen405(stack *Stack) { callableBp * f=vm::pop<callableBp *>(Stack); -#line 4333 "runtime.in" +#line 4349 "runtime.in" processData().atBreakpointFunction=f; } -#line 4337 "runtime.in" +#line 4353 "runtime.in" // void breakpoint(runnable *s=NULL); -void gen405(stack *Stack) +void gen406(stack *Stack) { runnable * s=vm::pop<runnable *>(Stack,NULL); -#line 4338 "runtime.in" +#line 4354 "runtime.in" breakpoint(Stack,s); } -#line 4342 "runtime.in" +#line 4358 "runtime.in" // string locatefile(string file); -void gen406(stack *Stack) +void gen407(stack *Stack) { string file=vm::pop<string>(Stack); -#line 4343 "runtime.in" +#line 4359 "runtime.in" {Stack->push<string>(locateFile(file)); return;} } -#line 4347 "runtime.in" +#line 4363 "runtime.in" // void stop(string file, Int line, runnable *s=NULL); -void gen407(stack *Stack) +void gen408(stack *Stack) { runnable * s=vm::pop<runnable *>(Stack,NULL); Int line=vm::pop<Int>(Stack); string file=vm::pop<string>(Stack); -#line 4348 "runtime.in" +#line 4364 "runtime.in" file=locateFile(file); clear(file,line); cout << "setting breakpoint at " << file << ": " << line << endl; bplist.push_back(bpinfo(file,line,s)); } -#line 4355 "runtime.in" +#line 4371 "runtime.in" // void breakpoints(); -void gen408(stack *) +void gen409(stack *) { -#line 4356 "runtime.in" +#line 4372 "runtime.in" for(mem::list<bpinfo>::iterator p=bplist.begin(); p != bplist.end(); ++p) cout << p->f.name() << ": " << p->f.line() << endl; } -#line 4361 "runtime.in" +#line 4377 "runtime.in" // void clear(string file, Int line); -void gen409(stack *Stack) +void gen410(stack *Stack) { Int line=vm::pop<Int>(Stack); string file=vm::pop<string>(Stack); -#line 4362 "runtime.in" +#line 4378 "runtime.in" file=locateFile(file); clear(file,line,true); } -#line 4367 "runtime.in" +#line 4383 "runtime.in" // void clear(); -void gen410(stack *) +void gen411(stack *) { -#line 4368 "runtime.in" +#line 4384 "runtime.in" bplist.clear(); } // Strip directory from string -#line 4373 "runtime.in" +#line 4389 "runtime.in" // string stripdirectory(string *s); -void gen411(stack *Stack) +void gen412(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 4374 "runtime.in" +#line 4390 "runtime.in" {Stack->push<string>(stripDir(*s)); return;} } // Strip directory from string -#line 4379 "runtime.in" +#line 4395 "runtime.in" // string stripfile(string *s); -void gen412(stack *Stack) +void gen413(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 4380 "runtime.in" +#line 4396 "runtime.in" {Stack->push<string>(stripFile(*s)); return;} } // Strip file extension from string -#line 4385 "runtime.in" +#line 4401 "runtime.in" // string stripextension(string *s); -void gen413(stack *Stack) +void gen414(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 4386 "runtime.in" +#line 4402 "runtime.in" {Stack->push<string>(stripExt(*s)); return;} } // Call ImageMagick convert. -#line 4391 "runtime.in" +#line 4407 "runtime.in" // Int convert(string args=emptystring, string file=emptystring, string format=emptystring); -void gen414(stack *Stack) +void gen415(stack *Stack) { string format=vm::pop<string>(Stack,emptystring); string file=vm::pop<string>(Stack,emptystring); string args=vm::pop<string>(Stack,emptystring); -#line 4393 "runtime.in" +#line 4409 "runtime.in" ostringstream cmd; string name=convertname(file,format); @@ -6295,14 +6316,14 @@ void gen414(stack *Stack) } // Call ImageMagick animate. -#line 4409 "runtime.in" +#line 4425 "runtime.in" // Int animate(string args=emptystring, string file=emptystring, string format=emptystring); -void gen415(stack *Stack) +void gen416(stack *Stack) { string format=vm::pop<string>(Stack,emptystring); string file=vm::pop<string>(Stack,emptystring); string args=vm::pop<string>(Stack,emptystring); -#line 4411 "runtime.in" +#line 4427 "runtime.in" #ifndef __CYGWIN__ string name=convertname(file,format,false); if(view()) { @@ -6316,12 +6337,12 @@ void gen415(stack *Stack) } // Delete file named s. -#line 4425 "runtime.in" +#line 4441 "runtime.in" // Int delete(string *s); -void gen416(stack *Stack) +void gen417(stack *Stack) { string * s=vm::pop<string *>(Stack); -#line 4426 "runtime.in" +#line 4442 "runtime.in" checkLocal(*s); Int rc=unlink(s->c_str()); if(rc == 0 && verbose > 0) @@ -6330,13 +6351,13 @@ void gen416(stack *Stack) } // Rename file "from" to file "to". -#line 4435 "runtime.in" +#line 4451 "runtime.in" // Int rename(string *from, string *to); -void gen417(stack *Stack) +void gen418(stack *Stack) { string * to=vm::pop<string *>(Stack); string * from=vm::pop<string *>(Stack); -#line 4436 "runtime.in" +#line 4452 "runtime.in" checkLocal(*from); checkLocal(*to); Int rc=rename(from->c_str(),to->c_str()); @@ -6349,10 +6370,10 @@ void gen417(stack *Stack) // Array operations // Create an empty array. -#line 4449 "runtime.in" +#line 4465 "runtime.in" void emptyArray(stack *Stack) { -#line 4450 "runtime.in" +#line 4466 "runtime.in" {Stack->push<array*>(new array(0)); return;} } @@ -6361,11 +6382,11 @@ void emptyArray(stack *Stack) // is popped off the stack, followed by each dimension in reverse order. // The array itself is technically a one dimensional array of one // dimension arrays and so on. -#line 4459 "runtime.in" +#line 4475 "runtime.in" void newDeepArray(stack *Stack) { Int depth=vm::pop<Int>(Stack); -#line 4460 "runtime.in" +#line 4476 "runtime.in" assert(depth > 0); Int *dims = new Int[depth]; @@ -6384,11 +6405,11 @@ void newDeepArray(stack *Stack) // Creates an array with elements already specified. First, the number // of elements is popped off the stack, followed by each element in // reverse order. -#line 4479 "runtime.in" +#line 4495 "runtime.in" void newInitializedArray(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 4480 "runtime.in" +#line 4496 "runtime.in" assert(n >= 0); array *a = new array(n); @@ -6401,12 +6422,12 @@ void newInitializedArray(stack *Stack) // Similar to newInitializedArray, but after the n elements, append another // array to it. -#line 4493 "runtime.in" +#line 4509 "runtime.in" void newAppendedArray(stack *Stack) { Int n=vm::pop<Int>(Stack); array* tail=vm::pop<array*>(Stack); -#line 4494 "runtime.in" +#line 4510 "runtime.in" assert(n >= 0); array *a = new array(n); @@ -6421,13 +6442,13 @@ void newAppendedArray(stack *Stack) // The function T[] array(int n, T value, int depth=0) produces a array of n // copies of x, where each copy is copied up to depth. -#line 4509 "runtime.in" +#line 4525 "runtime.in" void newDuplicateArray(stack *Stack) { Int depth=vm::pop<Int>(Stack,Int_MAX); item value=vm::pop(Stack); Int n=vm::pop<Int>(Stack); -#line 4510 "runtime.in" +#line 4526 "runtime.in" if(n < 0) error("cannot create a negative length array"); if(depth < 0) error("cannot copy to a negative depth"); @@ -6435,12 +6456,12 @@ void newDuplicateArray(stack *Stack) } // Read an element from an array. Checks for initialization & bounds. -#line 4518 "runtime.in" +#line 4534 "runtime.in" void arrayRead(stack *Stack) { Int n=vm::pop<Int>(Stack); array * a=vm::pop<array *>(Stack); -#line 4519 "runtime.in" +#line 4535 "runtime.in" item& i=arrayRead(a,n); if (i.empty()) { ostringstream buf; @@ -6451,50 +6472,50 @@ void arrayRead(stack *Stack) } // Slice a substring from an array. -#line 4530 "runtime.in" +#line 4546 "runtime.in" void arraySliceRead(stack *Stack) { Int right=vm::pop<Int>(Stack); Int left=vm::pop<Int>(Stack); array * a=vm::pop<array *>(Stack); -#line 4531 "runtime.in" +#line 4547 "runtime.in" checkArray(a); {Stack->push(a->slice(left, right)); return;} } // Slice a substring from an array. This implements the cases a[i:] and a[:] // where the endpoint is not given, and assumed to be the length of the array. -#line 4538 "runtime.in" +#line 4554 "runtime.in" void arraySliceReadToEnd(stack *Stack) { Int left=vm::pop<Int>(Stack); array * a=vm::pop<array *>(Stack); -#line 4539 "runtime.in" +#line 4555 "runtime.in" size_t len=checkArray(a); {Stack->push(a->slice(left, (Int)len)); return;} } // Read an element from an array of arrays. Check bounds and initialize // as necessary. -#line 4546 "runtime.in" +#line 4562 "runtime.in" void arrayArrayRead(stack *Stack) { Int n=vm::pop<Int>(Stack); array * a=vm::pop<array *>(Stack); -#line 4547 "runtime.in" +#line 4563 "runtime.in" item& i=arrayRead(a,n); if (i.empty()) i=new array(0); {Stack->push(i); return;} } // Write an element to an array. Increase size if necessary. -#line 4554 "runtime.in" +#line 4570 "runtime.in" void arrayWrite(stack *Stack) { Int n=vm::pop<Int>(Stack); array * a=vm::pop<array *>(Stack); item value=vm::pop(Stack); -#line 4555 "runtime.in" +#line 4571 "runtime.in" size_t len=checkArray(a); bool cyclic=a->cyclic(); if(cyclic && len > 0) n=imod(n,len); @@ -6508,27 +6529,27 @@ void arrayWrite(stack *Stack) {Stack->push(value); return;} } -#line 4569 "runtime.in" +#line 4585 "runtime.in" void arraySliceWrite(stack *Stack) { Int right=vm::pop<Int>(Stack); Int left=vm::pop<Int>(Stack); array * dest=vm::pop<array *>(Stack); array * src=vm::pop<array *>(Stack); -#line 4570 "runtime.in" +#line 4586 "runtime.in" checkArray(src); checkArray(dest); dest->setSlice(left, right, src); {Stack->push<array*>(src); return;} } -#line 4577 "runtime.in" +#line 4593 "runtime.in" void arraySliceWriteToEnd(stack *Stack) { Int left=vm::pop<Int>(Stack); array * dest=vm::pop<array *>(Stack); array * src=vm::pop<array *>(Stack); -#line 4578 "runtime.in" +#line 4594 "runtime.in" checkArray(src); size_t len=checkArray(dest); dest->setSlice(left, (Int) len, src); @@ -6536,20 +6557,20 @@ void arraySliceWriteToEnd(stack *Stack) } // Returns the length of an array. -#line 4586 "runtime.in" +#line 4602 "runtime.in" void arrayLength(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4587 "runtime.in" +#line 4603 "runtime.in" {Stack->push<Int>((Int) checkArray(a)); return;} } // Returns an array of integers representing the keys of the array. -#line 4592 "runtime.in" +#line 4608 "runtime.in" void arrayKeys(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4593 "runtime.in" +#line 4609 "runtime.in" size_t size=checkArray(a); array *keys=new array(); @@ -6563,22 +6584,22 @@ void arrayKeys(stack *Stack) } // Return the cyclic flag for an array. -#line 4607 "runtime.in" +#line 4623 "runtime.in" void arrayCyclicFlag(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4608 "runtime.in" +#line 4624 "runtime.in" checkArray(a); {Stack->push<bool>(a->cyclic()); return;} } // Check to see if an array element is initialized. -#line 4614 "runtime.in" +#line 4630 "runtime.in" void arrayInitializedHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); Int n=vm::pop<Int>(Stack); -#line 4615 "runtime.in" +#line 4631 "runtime.in" size_t len=checkArray(a); bool cyclic=a->cyclic(); if(cyclic && len > 0) n=imod(n,len); @@ -6588,62 +6609,62 @@ void arrayInitializedHelper(stack *Stack) } // Returns the initialize method for an array. -#line 4625 "runtime.in" +#line 4641 "runtime.in" void arrayInitialized(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4626 "runtime.in" +#line 4642 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayInitializedHelper),a)); return;} } // The helper function for the cyclic method that sets the cyclic flag. -#line 4631 "runtime.in" +#line 4647 "runtime.in" void arrayCyclicHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); bool b=vm::pop<bool>(Stack); -#line 4632 "runtime.in" +#line 4648 "runtime.in" checkArray(a); a->cyclic(b); } // Set the cyclic flag for an array. -#line 4638 "runtime.in" +#line 4654 "runtime.in" void arrayCyclic(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4639 "runtime.in" +#line 4655 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayCyclicHelper),a)); return;} } // The helper function for the push method that does the actual operation. -#line 4644 "runtime.in" +#line 4660 "runtime.in" void arrayPushHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); item x=vm::pop(Stack); -#line 4645 "runtime.in" +#line 4661 "runtime.in" checkArray(a); a->push(x); {Stack->push(x); return;} } // Returns the push method for an array. -#line 4652 "runtime.in" +#line 4668 "runtime.in" void arrayPush(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4653 "runtime.in" +#line 4669 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayPushHelper),a)); return;} } // The helper function for the append method that appends b to a. -#line 4658 "runtime.in" +#line 4674 "runtime.in" void arrayAppendHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); array * b=vm::pop<array *>(Stack); -#line 4659 "runtime.in" +#line 4675 "runtime.in" checkArray(a); size_t size=checkArray(b); for(size_t i=0; i < size; i++) @@ -6651,20 +6672,20 @@ void arrayAppendHelper(stack *Stack) } // Returns the append method for an array. -#line 4667 "runtime.in" +#line 4683 "runtime.in" void arrayAppend(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4668 "runtime.in" +#line 4684 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayAppendHelper),a)); return;} } // The helper function for the pop method. -#line 4673 "runtime.in" +#line 4689 "runtime.in" void arrayPopHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4674 "runtime.in" +#line 4690 "runtime.in" size_t asize=checkArray(a); if(asize == 0) error("cannot pop element from empty array"); @@ -6672,22 +6693,22 @@ void arrayPopHelper(stack *Stack) } // Returns the pop method for an array. -#line 4682 "runtime.in" +#line 4698 "runtime.in" void arrayPop(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4683 "runtime.in" +#line 4699 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayPopHelper),a)); return;} } // The helper function for the insert method. -#line 4688 "runtime.in" +#line 4704 "runtime.in" void arrayInsertHelper(stack *Stack) { array * a=vm::pop<array *>(Stack); array * x=vm::pop<array *>(Stack); Int i=vm::pop<Int>(Stack); -#line 4689 "runtime.in" +#line 4705 "runtime.in" size_t asize=checkArray(a); checkArray(x); if(a->cyclic() && asize > 0) i=imod(i,asize); @@ -6697,39 +6718,39 @@ void arrayInsertHelper(stack *Stack) } // Returns the insert method for an array. -#line 4699 "runtime.in" +#line 4715 "runtime.in" void arrayInsert(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4700 "runtime.in" +#line 4716 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayInsertHelper),a)); return;} } // Returns the delete method for an array. -#line 4705 "runtime.in" +#line 4721 "runtime.in" void arrayDelete(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4706 "runtime.in" +#line 4722 "runtime.in" {Stack->push<callable*>(new thunk(new bfunc(arrayDeleteHelper),a)); return;} } -#line 4710 "runtime.in" +#line 4726 "runtime.in" void arrayAlias(stack *Stack) { array * b=vm::pop<array *>(Stack); array * a=vm::pop<array *>(Stack); -#line 4711 "runtime.in" +#line 4727 "runtime.in" {Stack->push<bool>(a==b); return;} } // Return array formed by indexing array a with elements of integer array b -#line 4716 "runtime.in" +#line 4732 "runtime.in" void arrayIntArray(stack *Stack) { array * b=vm::pop<array *>(Stack); array * a=vm::pop<array *>(Stack); -#line 4717 "runtime.in" +#line 4733 "runtime.in" size_t asize=checkArray(a); size_t bsize=checkArray(b); array *r=new array(bsize); @@ -6747,13 +6768,13 @@ void arrayIntArray(stack *Stack) // returns the complement of the integer array a in {0,2,...,n-1}, // so that b[complement(a,b.length)] yields the complement of b[a]. -#line 4735 "runtime.in" +#line 4751 "runtime.in" // Intarray* complement(Intarray *a, Int n); -void gen448(stack *Stack) +void gen449(stack *Stack) { Int n=vm::pop<Int>(Stack); Intarray * a=vm::pop<Intarray *>(Stack); -#line 4736 "runtime.in" +#line 4752 "runtime.in" size_t asize=checkArray(a); array *r=new array(0); bool *keep=new bool[n]; @@ -6770,12 +6791,12 @@ void gen448(stack *Stack) } // Generate the sequence {f(i) : i=0,1,...n-1} given a function f and integer n -#line 4753 "runtime.in" +#line 4769 "runtime.in" void arraySequence(stack *Stack) { Int n=vm::pop<Int>(Stack); callable * f=vm::pop<callable *>(Stack); -#line 4754 "runtime.in" +#line 4770 "runtime.in" if(n < 0) n=0; array *a=new array(n); for(Int i=0; i < n; ++i) { @@ -6787,12 +6808,12 @@ void arraySequence(stack *Stack) } // Return the array {0,1,...n-1} -#line 4766 "runtime.in" +#line 4782 "runtime.in" // Intarray* sequence(Int n); -void gen450(stack *Stack) +void gen451(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 4767 "runtime.in" +#line 4783 "runtime.in" if(n < 0) n=0; array *a=new array(n); for(Int i=0; i < n; ++i) { @@ -6802,12 +6823,12 @@ void gen450(stack *Stack) } // Apply a function to each element of an array -#line 4777 "runtime.in" +#line 4793 "runtime.in" void arrayFunction(stack *Stack) { array * a=vm::pop<array *>(Stack); callable * f=vm::pop<callable *>(Stack); -#line 4778 "runtime.in" +#line 4794 "runtime.in" size_t size=checkArray(a); array *b=new array(size); for(size_t i=0; i < size; ++i) { @@ -6818,12 +6839,12 @@ void arrayFunction(stack *Stack) {Stack->push<array*>(b); return;} } -#line 4789 "runtime.in" +#line 4805 "runtime.in" void arraySort(stack *Stack) { callable * f=vm::pop<callable *>(Stack); array * a=vm::pop<array *>(Stack); -#line 4790 "runtime.in" +#line 4806 "runtime.in" array *c=copyArray(a); compareFunc=f; FuncStack=Stack; @@ -6831,12 +6852,12 @@ void arraySort(stack *Stack) {Stack->push<array*>(c); return;} } -#line 4798 "runtime.in" +#line 4814 "runtime.in" // bool all(boolarray *a); -void gen453(stack *Stack) +void gen454(stack *Stack) { boolarray * a=vm::pop<boolarray *>(Stack); -#line 4799 "runtime.in" +#line 4815 "runtime.in" size_t size=checkArray(a); bool c=true; for(size_t i=0; i < size; i++) @@ -6844,12 +6865,12 @@ void gen453(stack *Stack) {Stack->push<bool>(c); return;} } -#line 4807 "runtime.in" +#line 4823 "runtime.in" // boolarray* !(boolarray* a); -void gen454(stack *Stack) +void gen455(stack *Stack) { boolarray* a=vm::pop<boolarray*>(Stack); -#line 4808 "runtime.in" +#line 4824 "runtime.in" size_t size=checkArray(a); array *c=new array(size); for(size_t i=0; i < size; i++) @@ -6857,12 +6878,12 @@ void gen454(stack *Stack) {Stack->push<boolarray*>(c); return;} } -#line 4816 "runtime.in" +#line 4832 "runtime.in" // Int sum(boolarray *a); -void gen455(stack *Stack) +void gen456(stack *Stack) { boolarray * a=vm::pop<boolarray *>(Stack); -#line 4817 "runtime.in" +#line 4833 "runtime.in" size_t size=checkArray(a); Int sum=0; for(size_t i=0; i < size; i++) @@ -6870,19 +6891,19 @@ void gen455(stack *Stack) {Stack->push<Int>(sum); return;} } -#line 4825 "runtime.in" +#line 4841 "runtime.in" void arrayCopy(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4826 "runtime.in" +#line 4842 "runtime.in" {Stack->push<array*>(copyArray(a)); return;} } -#line 4830 "runtime.in" +#line 4846 "runtime.in" void arrayConcat(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4831 "runtime.in" +#line 4847 "runtime.in" // a is an array of arrays to be concatenated together. // The signature is // T[] concat(... T[][] a); @@ -6909,27 +6930,27 @@ void arrayConcat(stack *Stack) {Stack->push<array*>(result); return;} } -#line 4858 "runtime.in" +#line 4874 "runtime.in" void array2Copy(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4859 "runtime.in" +#line 4875 "runtime.in" {Stack->push<array*>(copyArray2(a)); return;} } -#line 4863 "runtime.in" +#line 4879 "runtime.in" void array3Copy(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4864 "runtime.in" +#line 4880 "runtime.in" {Stack->push<array*>(copyArray3(a)); return;} } -#line 4868 "runtime.in" +#line 4884 "runtime.in" void array2Transpose(stack *Stack) { array * a=vm::pop<array *>(Stack); -#line 4869 "runtime.in" +#line 4885 "runtime.in" size_t asize=checkArray(a); array *c=new array(0); for(size_t i=0; i < asize; i++) { @@ -6956,12 +6977,12 @@ void array2Transpose(stack *Stack) // permutation (021 or 120, etc; original is 012). // Transpose by sending respective members to the permutated locations: // return the array obtained by putting a[i][j][k] into position perm{ijk}. -#line 4896 "runtime.in" +#line 4912 "runtime.in" void array3Transpose(stack *Stack) { array * perm=vm::pop<array *>(Stack); array * a=vm::pop<array *>(Stack); -#line 4897 "runtime.in" +#line 4913 "runtime.in" const size_t DIM=3; if(checkArray(perm) != DIM) { @@ -7045,13 +7066,13 @@ void array3Transpose(stack *Stack) // In a boolean array, find the index of the nth true value or -1 if not found // If n is negative, search backwards. -#line 4981 "runtime.in" +#line 4997 "runtime.in" // Int find(boolarray *a, Int n=1); -void gen462(stack *Stack) +void gen463(stack *Stack) { Int n=vm::pop<Int>(Stack,1); boolarray * a=vm::pop<boolarray *>(Stack); -#line 4982 "runtime.in" +#line 4998 "runtime.in" size_t size=checkArray(a); Int j=-1; @@ -7068,13 +7089,13 @@ void gen462(stack *Stack) {Stack->push<Int>(j); return;} } -#line 4999 "runtime.in" +#line 5015 "runtime.in" // bool ==(realarray2 *a, realarray2 *b); -void gen463(stack *Stack) +void gen464(stack *Stack) { realarray2 * b=vm::pop<realarray2 *>(Stack); realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5000 "runtime.in" +#line 5016 "runtime.in" size_t n=checkArray(a); if(n != checkArray(b)) {Stack->push<bool>(false); return;} @@ -7094,13 +7115,13 @@ void gen463(stack *Stack) // construct vector obtained by replacing those elements of b for which the // corresponding elements of a are false by the corresponding element of c. -#line 5020 "runtime.in" +#line 5036 "runtime.in" void arrayConditional(stack *Stack) { array * c=vm::pop<array *>(Stack); array * b=vm::pop<array *>(Stack); array * a=vm::pop<array *>(Stack); -#line 5021 "runtime.in" +#line 5037 "runtime.in" size_t size=checkArray(a); array *r=new array(size); if(b && c) { @@ -7124,21 +7145,21 @@ void arrayConditional(stack *Stack) } // Return an n x n identity matrix. -#line 5045 "runtime.in" +#line 5061 "runtime.in" // realarray2* identity(Int n); -void gen465(stack *Stack) +void gen466(stack *Stack) { Int n=vm::pop<Int>(Stack); -#line 5046 "runtime.in" +#line 5062 "runtime.in" {Stack->push<realarray2*>(Identity(n)); return;} } // Return the diagonal matrix with diagonal entries given by a. -#line 5051 "runtime.in" +#line 5067 "runtime.in" void diagonal(stack *Stack) { realarray * a=vm::pop<realarray *>(Stack); -#line 5052 "runtime.in" +#line 5068 "runtime.in" size_t n=checkArray(a); array *c=new array(n); for(size_t i=0; i < n; ++i) { @@ -7154,12 +7175,12 @@ void diagonal(stack *Stack) } // Return the inverse of an n x n matrix a using Gauss-Jordan elimination. -#line 5068 "runtime.in" +#line 5084 "runtime.in" // realarray2* inverse(realarray2 *a); -void gen467(stack *Stack) +void gen468(stack *Stack) { realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5069 "runtime.in" +#line 5085 "runtime.in" a=copyArray2(a); size_t n=checkArray(a); checkSquare(a); @@ -7252,14 +7273,14 @@ void gen467(stack *Stack) // Solve the linear equation ax=b by LU decomposition, returning the // solution x, where a is an n x n matrix and b is an array of length n. // If no solution exists, return an empty array. -#line 5162 "runtime.in" +#line 5178 "runtime.in" // realarray* solve(realarray2 *a, realarray *b, bool warn=true); -void gen468(stack *Stack) +void gen469(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); realarray * b=vm::pop<realarray *>(Stack); realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5163 "runtime.in" +#line 5179 "runtime.in" size_t n=checkArray(a); if(n == 0) {Stack->push<realarray*>(new array(0)); return;} @@ -7309,14 +7330,14 @@ void gen468(stack *Stack) // Solve the linear equation ax=b by LU decomposition, returning the // solution x, where a is an n x n matrix and b is an n x m matrix. // If no solution exists, return an empty array. -#line 5213 "runtime.in" +#line 5229 "runtime.in" // realarray2* solve(realarray2 *a, realarray2 *b, bool warn=true); -void gen469(stack *Stack) +void gen470(stack *Stack) { bool warn=vm::pop<bool>(Stack,true); realarray2 * b=vm::pop<realarray2 *>(Stack); realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5214 "runtime.in" +#line 5230 "runtime.in" size_t n=checkArray(a); if(n == 0) {Stack->push<realarray2*>(new array(0)); return;} @@ -7377,12 +7398,12 @@ void gen469(stack *Stack) } // Compute the determinant of an n x n matrix. -#line 5275 "runtime.in" +#line 5291 "runtime.in" // real determinant(realarray2 *a); -void gen470(stack *Stack) +void gen471(stack *Stack) { realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5276 "runtime.in" +#line 5292 "runtime.in" real *A=copyArray2C(a); size_t n=checkArray(a); @@ -7396,13 +7417,13 @@ void gen470(stack *Stack) {Stack->push<real>(det); return;} } -#line 5290 "runtime.in" +#line 5306 "runtime.in" // realarray* *(realarray2 *a, realarray *b); -void gen471(stack *Stack) +void gen472(stack *Stack) { realarray * b=vm::pop<realarray *>(Stack); realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5291 "runtime.in" +#line 5307 "runtime.in" size_t n=checkArray(a); size_t m=checkArray(b); array *c=new array(n); @@ -7419,13 +7440,13 @@ void gen471(stack *Stack) {Stack->push<realarray*>(c); return;} } -#line 5308 "runtime.in" +#line 5324 "runtime.in" // realarray2* *(realarray2 *a, realarray2 *b); -void gen472(stack *Stack) +void gen473(stack *Stack) { realarray2 * b=vm::pop<realarray2 *>(Stack); realarray2 * a=vm::pop<realarray2 *>(Stack); -#line 5309 "runtime.in" +#line 5325 "runtime.in" size_t n=checkArray(a); size_t nb=checkArray(b); @@ -7459,23 +7480,23 @@ void gen472(stack *Stack) {Stack->push<realarray2*>(c); return;} } -#line 5343 "runtime.in" +#line 5359 "runtime.in" // triple *(realarray2 *t, triple v); -void gen473(stack *Stack) +void gen474(stack *Stack) { triple v=vm::pop<triple>(Stack); realarray2 * t=vm::pop<realarray2 *>(Stack); -#line 5344 "runtime.in" +#line 5360 "runtime.in" {Stack->push<triple>(*t*v); return;} } -#line 5348 "runtime.in" +#line 5364 "runtime.in" // pair project(triple v, realarray2 *t); -void gen474(stack *Stack) +void gen475(stack *Stack) { realarray2 * t=vm::pop<realarray2 *>(Stack); triple v=vm::pop<triple>(Stack); -#line 5349 "runtime.in" +#line 5365 "runtime.in" size_t n=checkArray(t); if(n != 4) error(incommensurate); array *t0=read<array*>(t,0); @@ -7500,13 +7521,13 @@ void gen474(stack *Stack) } // Compute the dot product of vectors a and b. -#line 5374 "runtime.in" +#line 5390 "runtime.in" // real dot(realarray *a, realarray *b); -void gen475(stack *Stack) +void gen476(stack *Stack) { realarray * b=vm::pop<realarray *>(Stack); realarray * a=vm::pop<realarray *>(Stack); -#line 5375 "runtime.in" +#line 5391 "runtime.in" size_t n=checkArrays(a,b); real sum=0.0; for(size_t i=0; i < n; ++i) @@ -7521,15 +7542,15 @@ void gen475(stack *Stack) // [ a[2] b[2] c[2] ] // [ ... ] // [ c[n-1] a[n-1] b[n-1] ] -#line 5390 "runtime.in" +#line 5406 "runtime.in" // realarray* tridiagonal(realarray *a, realarray *b, realarray *c, realarray *f); -void gen476(stack *Stack) +void gen477(stack *Stack) { realarray * f=vm::pop<realarray *>(Stack); realarray * c=vm::pop<realarray *>(Stack); realarray * b=vm::pop<realarray *>(Stack); realarray * a=vm::pop<realarray *>(Stack); -#line 5391 "runtime.in" +#line 5407 "runtime.in" size_t n=checkArrays(a,b); checkEqual(n,checkArray(c)); checkEqual(n,checkArray(f)); @@ -7626,16 +7647,16 @@ void gen476(stack *Stack) } // Root solve by Newton-Raphson -#line 5488 "runtime.in" +#line 5504 "runtime.in" // real newton(Int iterations=100, callableReal *f, callableReal *fprime, real x, bool verbose=false); -void gen477(stack *Stack) +void gen478(stack *Stack) { bool verbose=vm::pop<bool>(Stack,false); real x=vm::pop<real>(Stack); callableReal * fprime=vm::pop<callableReal *>(Stack); callableReal * f=vm::pop<callableReal *>(Stack); Int iterations=vm::pop<Int>(Stack,100); -#line 5490 "runtime.in" +#line 5506 "runtime.in" static const real fuzz=1000.0*DBL_EPSILON; Int i=0; size_t oldPrec=0; @@ -7681,9 +7702,9 @@ void gen477(stack *Stack) // Root solve by Newton-Raphson bisection // cf. routine rtsafe (Press et al., Numerical Recipes, 1991). -#line 5536 "runtime.in" +#line 5552 "runtime.in" // real newton(Int iterations=100, callableReal *f, callableReal *fprime, real x1, real x2, bool verbose=false); -void gen478(stack *Stack) +void gen479(stack *Stack) { bool verbose=vm::pop<bool>(Stack,false); real x2=vm::pop<real>(Stack); @@ -7691,7 +7712,7 @@ void gen478(stack *Stack) callableReal * fprime=vm::pop<callableReal *>(Stack); callableReal * f=vm::pop<callableReal *>(Stack); Int iterations=vm::pop<Int>(Stack,100); -#line 5538 "runtime.in" +#line 5554 "runtime.in" static const real fuzz=1000.0*DBL_EPSILON; size_t oldPrec=0; if(verbose) @@ -7769,16 +7790,16 @@ void gen478(stack *Stack) {Stack->push<real>((j == iterations) ? DBL_MAX : x); return;} } -#line 5616 "runtime.in" +#line 5632 "runtime.in" // real simpson(callableReal *f, real a, real b, real acc=DBL_EPSILON, real dxmax=0); -void gen479(stack *Stack) +void gen480(stack *Stack) { real dxmax=vm::pop<real>(Stack,0); real acc=vm::pop<real>(Stack,DBL_EPSILON); real b=vm::pop<real>(Stack); real a=vm::pop<real>(Stack); callableReal * f=vm::pop<callableReal *>(Stack); -#line 5618 "runtime.in" +#line 5634 "runtime.in" real integral; if(dxmax == 0) dxmax=b-a; Func=f; @@ -7789,12 +7810,12 @@ void gen479(stack *Stack) } // Compute the fast Fourier transform of a pair array -#line 5629 "runtime.in" +#line 5645 "runtime.in" void pairArrayFFT(stack *Stack) { Int sign=vm::pop<Int>(Stack,1); pairarray * a=vm::pop<pairarray *>(Stack); -#line 5630 "runtime.in" +#line 5646 "runtime.in" unsigned n=(unsigned) checkArray(a); #ifdef HAVE_LIBFFTW3 array *c=new array(n); @@ -7822,12 +7843,12 @@ void pairArrayFFT(stack *Stack) {Stack->push<pairarray*>(c); return;} } -#line 5658 "runtime.in" +#line 5674 "runtime.in" // Intarray2* triangulate(pairarray *z); -void gen481(stack *Stack) +void gen482(stack *Stack) { pairarray * z=vm::pop<pairarray *>(Stack); -#line 5659 "runtime.in" +#line 5675 "runtime.in" size_t nv=checkArray(z); // Call robust version of Gilles Dumoulin's port of Paul Bourke's // triangulation code. @@ -7863,55 +7884,55 @@ void gen481(stack *Stack) // File operations -#line 5695 "runtime.in" +#line 5711 "runtime.in" // bool ==(file *a, file *b); -void gen482(stack *Stack) +void gen483(stack *Stack) { file * b=vm::pop<file *>(Stack); file * a=vm::pop<file *>(Stack); -#line 5696 "runtime.in" +#line 5712 "runtime.in" {Stack->push<bool>(a == b); return;} } -#line 5701 "runtime.in" +#line 5717 "runtime.in" // bool !=(file *a, file *b); -void gen483(stack *Stack) +void gen484(stack *Stack) { file * b=vm::pop<file *>(Stack); file * a=vm::pop<file *>(Stack); -#line 5702 "runtime.in" +#line 5718 "runtime.in" {Stack->push<bool>(a != b); return;} } -#line 5706 "runtime.in" +#line 5722 "runtime.in" void nullFile(stack *Stack) { -#line 5707 "runtime.in" +#line 5723 "runtime.in" {Stack->push<file*>(&camp::nullfile); return;} } -#line 5711 "runtime.in" +#line 5727 "runtime.in" // file* input(string name, bool check=true, string comment=commentchar); -void gen485(stack *Stack) +void gen486(stack *Stack) { string comment=vm::pop<string>(Stack,commentchar); bool check=vm::pop<bool>(Stack,true); string name=vm::pop<string>(Stack); -#line 5712 "runtime.in" +#line 5728 "runtime.in" char c=comment.empty() ? (char) 0 : comment[0]; file *f=new ifile(name,c,check); f->open(); {Stack->push<file*>(f); return;} } -#line 5719 "runtime.in" +#line 5735 "runtime.in" // file* output(string name, bool update=false, string comment=commentchar); -void gen486(stack *Stack) +void gen487(stack *Stack) { string comment=vm::pop<string>(Stack,commentchar); bool update=vm::pop<bool>(Stack,false); string name=vm::pop<string>(Stack); -#line 5720 "runtime.in" +#line 5736 "runtime.in" file *f; if(update) { char c=comment.empty() ? (char) 0 : comment[0]; @@ -7922,13 +7943,13 @@ void gen486(stack *Stack) {Stack->push<file*>(f); return;} } -#line 5731 "runtime.in" +#line 5747 "runtime.in" // file* xinput(string name, bool check=true); -void gen487(stack *Stack) +void gen488(stack *Stack) { bool check=vm::pop<bool>(Stack,true); string name=vm::pop<string>(Stack); -#line 5732 "runtime.in" +#line 5748 "runtime.in" #ifdef HAVE_RPC_RPC_H file *f=new ixfile(name,check); f->open(); @@ -7941,13 +7962,13 @@ void gen487(stack *Stack) #endif } -#line 5745 "runtime.in" +#line 5761 "runtime.in" // file* xoutput(string name, bool update=false); -void gen488(stack *Stack) +void gen489(stack *Stack) { bool update=vm::pop<bool>(Stack,false); string name=vm::pop<string>(Stack); -#line 5746 "runtime.in" +#line 5762 "runtime.in" #ifdef HAVE_RPC_RPC_H file *f; if(update) @@ -7964,25 +7985,25 @@ void gen488(stack *Stack) #endif } -#line 5763 "runtime.in" +#line 5779 "runtime.in" // file* binput(string name, bool check=true); -void gen489(stack *Stack) +void gen490(stack *Stack) { bool check=vm::pop<bool>(Stack,true); string name=vm::pop<string>(Stack); -#line 5764 "runtime.in" +#line 5780 "runtime.in" file *f=new ibfile(name,check); f->open(); {Stack->push<file*>(f); return;} } -#line 5770 "runtime.in" +#line 5786 "runtime.in" // file* boutput(string name, bool update=false); -void gen490(stack *Stack) +void gen491(stack *Stack) { bool update=vm::pop<bool>(Stack,false); string name=vm::pop<string>(Stack); -#line 5771 "runtime.in" +#line 5787 "runtime.in" file *f; if(update) f=new iobfile(name); else f=new obfile(name); @@ -7991,77 +8012,77 @@ void gen490(stack *Stack) {Stack->push<file*>(f); return;} } -#line 5780 "runtime.in" +#line 5796 "runtime.in" // bool eof(file *File); -void gen491(stack *Stack) +void gen492(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5781 "runtime.in" +#line 5797 "runtime.in" {Stack->push<bool>(File->eof()); return;} } -#line 5785 "runtime.in" +#line 5801 "runtime.in" // bool eol(file *File); -void gen492(stack *Stack) +void gen493(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5786 "runtime.in" +#line 5802 "runtime.in" {Stack->push<bool>(File->eol()); return;} } -#line 5790 "runtime.in" +#line 5806 "runtime.in" // bool error(file *File); -void gen493(stack *Stack) +void gen494(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5791 "runtime.in" +#line 5807 "runtime.in" {Stack->push<bool>(File->error()); return;} } -#line 5795 "runtime.in" +#line 5811 "runtime.in" // void clear(file *File); -void gen494(stack *Stack) +void gen495(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5796 "runtime.in" +#line 5812 "runtime.in" File->clear(); } -#line 5800 "runtime.in" +#line 5816 "runtime.in" // void close(file *File); -void gen495(stack *Stack) +void gen496(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5801 "runtime.in" +#line 5817 "runtime.in" File->close(); } -#line 5805 "runtime.in" +#line 5821 "runtime.in" // Int precision(file *File=NULL, Int digits=0); -void gen496(stack *Stack) +void gen497(stack *Stack) { Int digits=vm::pop<Int>(Stack,0); file * File=vm::pop<file *>(Stack,NULL); -#line 5806 "runtime.in" +#line 5822 "runtime.in" if(File == 0) File=&camp::Stdout; {Stack->push<Int>(File->precision(digits)); return;} } -#line 5811 "runtime.in" +#line 5827 "runtime.in" // void flush(file *File); -void gen497(stack *Stack) +void gen498(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5812 "runtime.in" +#line 5828 "runtime.in" File->flush(); } -#line 5816 "runtime.in" +#line 5832 "runtime.in" // string getc(file *File); -void gen498(stack *Stack) +void gen499(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5817 "runtime.in" +#line 5833 "runtime.in" char c=0; if(File->isOpen()) File->read(c); static char str[1]; @@ -8069,189 +8090,189 @@ void gen498(stack *Stack) {Stack->push<string>(string(str)); return;} } -#line 5825 "runtime.in" +#line 5841 "runtime.in" // Int tell(file *File); -void gen499(stack *Stack) +void gen500(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5826 "runtime.in" +#line 5842 "runtime.in" {Stack->push<Int>(File->tell()); return;} } -#line 5830 "runtime.in" +#line 5846 "runtime.in" // void seek(file *File, Int pos); -void gen500(stack *Stack) +void gen501(stack *Stack) { Int pos=vm::pop<Int>(Stack); file * File=vm::pop<file *>(Stack); -#line 5831 "runtime.in" +#line 5847 "runtime.in" File->seek(pos,pos >= 0); } -#line 5835 "runtime.in" +#line 5851 "runtime.in" // void seekeof(file *File); -void gen501(stack *Stack) +void gen502(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5836 "runtime.in" +#line 5852 "runtime.in" File->seek(0,false); } // Set file dimensions -#line 5841 "runtime.in" +#line 5857 "runtime.in" // file* dimension(file *File, Int nx); -void gen502(stack *Stack) +void gen503(stack *Stack) { Int nx=vm::pop<Int>(Stack); file * File=vm::pop<file *>(Stack); -#line 5842 "runtime.in" +#line 5858 "runtime.in" File->dimension(nx); {Stack->push<file*>(File); return;} } -#line 5847 "runtime.in" +#line 5863 "runtime.in" // file* dimension(file *File, Int nx, Int ny); -void gen503(stack *Stack) +void gen504(stack *Stack) { Int ny=vm::pop<Int>(Stack); Int nx=vm::pop<Int>(Stack); file * File=vm::pop<file *>(Stack); -#line 5848 "runtime.in" +#line 5864 "runtime.in" File->dimension(nx,ny); {Stack->push<file*>(File); return;} } -#line 5853 "runtime.in" +#line 5869 "runtime.in" // file* dimension(file *File, Int nx, Int ny, Int nz); -void gen504(stack *Stack) +void gen505(stack *Stack) { Int nz=vm::pop<Int>(Stack); Int ny=vm::pop<Int>(Stack); Int nx=vm::pop<Int>(Stack); file * File=vm::pop<file *>(Stack); -#line 5854 "runtime.in" +#line 5870 "runtime.in" File->dimension(nx,ny,nz); {Stack->push<file*>(File); return;} } // Set file to read comma-separated values -#line 5860 "runtime.in" +#line 5876 "runtime.in" // file* csv(file *File, bool b=true); -void gen505(stack *Stack) +void gen506(stack *Stack) { bool b=vm::pop<bool>(Stack,true); file * File=vm::pop<file *>(Stack); -#line 5861 "runtime.in" +#line 5877 "runtime.in" File->CSVMode(b); {Stack->push<file*>(File); return;} } // Set file to read whitespace-separated values -#line 5867 "runtime.in" +#line 5883 "runtime.in" // file* word(file *File, bool b=true); -void gen506(stack *Stack) +void gen507(stack *Stack) { bool b=vm::pop<bool>(Stack,true); file * File=vm::pop<file *>(Stack); -#line 5868 "runtime.in" +#line 5884 "runtime.in" File->WordMode(b); {Stack->push<file*>(File); return;} } // Set file to read arrays in line-at-a-time mode -#line 5874 "runtime.in" +#line 5890 "runtime.in" // file* line(file *File, bool b=true); -void gen507(stack *Stack) +void gen508(stack *Stack) { bool b=vm::pop<bool>(Stack,true); file * File=vm::pop<file *>(Stack); -#line 5875 "runtime.in" +#line 5891 "runtime.in" File->LineMode(b); {Stack->push<file*>(File); return;} } // Set file to read/write single-precision XDR values. -#line 5881 "runtime.in" +#line 5897 "runtime.in" // file* single(file *File, bool b=true); -void gen508(stack *Stack) +void gen509(stack *Stack) { bool b=vm::pop<bool>(Stack,true); file * File=vm::pop<file *>(Stack); -#line 5882 "runtime.in" +#line 5898 "runtime.in" File->SingleReal(b); File->SingleInt(b); {Stack->push<file*>(File); return;} } // Set file to read/write single-precision real XDR values. -#line 5889 "runtime.in" +#line 5905 "runtime.in" // file* single(file *File, real x, bool b=true); -void gen509(stack *Stack) +void gen510(stack *Stack) { bool b=vm::pop<bool>(Stack,true); real x=vm::pop<real>(Stack); file * File=vm::pop<file *>(Stack); -#line 5890 "runtime.in" +#line 5906 "runtime.in" File->SingleReal(b); unused(&x); {Stack->push<file*>(File); return;} } // Set file to read/write single-precision int XDR values. -#line 5897 "runtime.in" +#line 5913 "runtime.in" // file* single(file *File, Int x, bool b=true); -void gen510(stack *Stack) +void gen511(stack *Stack) { bool b=vm::pop<bool>(Stack,true); Int x=vm::pop<Int>(Stack); file * File=vm::pop<file *>(Stack); -#line 5898 "runtime.in" +#line 5914 "runtime.in" File->SingleInt(b); unused(&x); {Stack->push<file*>(File); return;} } // Set file to read an array1 (1 Int size followed by a 1d array) -#line 5905 "runtime.in" +#line 5921 "runtime.in" // file* read1(file *File); -void gen511(stack *Stack) +void gen512(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5906 "runtime.in" +#line 5922 "runtime.in" File->dimension(-2); {Stack->push<file*>(File); return;} } // Set file to read an array2 (2 Int sizes followed by a 2d array) -#line 5912 "runtime.in" +#line 5928 "runtime.in" // file* read2(file *File); -void gen512(stack *Stack) +void gen513(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5913 "runtime.in" +#line 5929 "runtime.in" File->dimension(-2,-2); {Stack->push<file*>(File); return;} } // Set file to read an array3 (3 Int sizes followed by a 3d array) -#line 5919 "runtime.in" +#line 5935 "runtime.in" // file* read3(file *File); -void gen513(stack *Stack) +void gen514(stack *Stack) { file * File=vm::pop<file *>(Stack); -#line 5920 "runtime.in" +#line 5936 "runtime.in" File->dimension(-2,-2,-2); {Stack->push<file*>(File); return;} } // Return the last n lines of the history named name. -#line 5926 "runtime.in" +#line 5942 "runtime.in" // stringarray* history(string name, Int n=1); -void gen514(stack *Stack) +void gen515(stack *Stack) { Int n=vm::pop<Int>(Stack,1); string name=vm::pop<string>(Stack); -#line 5927 "runtime.in" +#line 5943 "runtime.in" #if defined(HAVE_LIBREADLINE) && defined(HAVE_LIBCURSES) bool newhistory=historyMap.find(name) == historyMap.end(); @@ -8283,12 +8304,12 @@ void gen514(stack *Stack) } // Return the last n lines of the interactive history. -#line 5959 "runtime.in" +#line 5975 "runtime.in" // stringarray* history(Int n=0); -void gen515(stack *Stack) +void gen516(stack *Stack) { Int n=vm::pop<Int>(Stack,0); -#line 5960 "runtime.in" +#line 5976 "runtime.in" #if defined(HAVE_LIBREADLINE) && defined(HAVE_LIBCURSES) {Stack->push<stringarray*>(get_history(n)); return;} #else @@ -8299,14 +8320,14 @@ void gen515(stack *Stack) // Prompt for a string using prompt, the GNU readline library, and a // local history named name. -#line 5971 "runtime.in" +#line 5987 "runtime.in" // string readline(string prompt=emptystring, string name=emptystring, bool tabcompletion=false); -void gen516(stack *Stack) +void gen517(stack *Stack) { bool tabcompletion=vm::pop<bool>(Stack,false); string name=vm::pop<string>(Stack,emptystring); string prompt=vm::pop<string>(Stack,emptystring); -#line 5973 "runtime.in" +#line 5989 "runtime.in" if(!isatty(STDIN_FILENO)) {Stack->push<string>(emptystring); return;} #if defined(HAVE_LIBREADLINE) && defined(HAVE_LIBCURSES) @@ -8348,14 +8369,14 @@ void gen516(stack *Stack) // Save a string in a local history named name. // If store=true, store the local history in the file historyfilename(name). -#line 6015 "runtime.in" +#line 6031 "runtime.in" // void saveline(string name, string value, bool store=true); -void gen517(stack *Stack) +void gen518(stack *Stack) { bool store=vm::pop<bool>(Stack,true); string value=vm::pop<string>(Stack); string name=vm::pop<string>(Stack); -#line 6016 "runtime.in" +#line 6032 "runtime.in" #if defined(HAVE_LIBREADLINE) && defined(HAVE_LIBCURSES) store_history(&history_save); bool newhistory=historyMap.find(name) == historyMap.end(); @@ -8382,11 +8403,11 @@ void gen517(stack *Stack) #endif } -#line 6043 "runtime.in" +#line 6059 "runtime.in" // void generate_random_backtrace(); -void gen518(stack *) +void gen519(stack *) { -#line 6044 "runtime.in" +#line 6060 "runtime.in" #if defined(USEGC) && defined(GC_DEBUG) && defined(GC_BACKTRACE) GC_generate_random_backtrace(); #else @@ -8394,12 +8415,12 @@ void gen518(stack *) #endif } -#line 6052 "runtime.in" +#line 6068 "runtime.in" // void print_random_addresses(Int n=1); -void gen519(stack *Stack) +void gen520(stack *Stack) { Int n=vm::pop<Int>(Stack,1); -#line 6053 "runtime.in" +#line 6069 "runtime.in" #if defined(USEGC) && defined(GC_DEBUG) && defined(GC_BACKTRACE) GC_gcollect(); for (Int i=0; i < n; ++i) @@ -8416,876 +8437,878 @@ namespace trans { void gen_base_venv(venv &ve) { -#line 1167 "runtime.in" +#line 1177 "runtime.in" addFunc(ve, run::gen8, primBoolean(), "!", formal(primBoolean(), "b", false, false)); -#line 1195 "runtime.in" +#line 1205 "runtime.in" addFunc(ve, run::gen13, primInt(), "AND", formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); -#line 1203 "runtime.in" +#line 1213 "runtime.in" addFunc(ve, run::gen14, primInt(), "OR", formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); -#line 1208 "runtime.in" +#line 1218 "runtime.in" addFunc(ve, run::gen15, primInt(), "XOR", formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); -#line 1213 "runtime.in" +#line 1223 "runtime.in" addFunc(ve, run::gen16, primInt(), "NOT", formal(primInt(), "a", false, false)); -#line 1244 "runtime.in" +#line 1254 "runtime.in" addFunc(ve, run::gen21, primBoolean(), "empty", formal(primPicture(), "f", false, false)); -#line 1249 "runtime.in" +#line 1259 "runtime.in" addFunc(ve, run::gen22, primVoid(), "erase", formal(primPicture(), "f", false, false)); -#line 1254 "runtime.in" +#line 1264 "runtime.in" addFunc(ve, run::gen23, primPair(), "min", formal(primPicture(), "f", false, false)); -#line 1259 "runtime.in" +#line 1269 "runtime.in" addFunc(ve, run::gen24, primPair(), "max", formal(primPicture(), "f", false, false)); -#line 1264 "runtime.in" +#line 1274 "runtime.in" addFunc(ve, run::gen25, primVoid(), "label", formal(primPicture(), "f", false, false), formal(primString(), "s", false, false), formal(primString(), "size", false, false), formal(primTransform(), "t", false, false), formal(primPair(), "position", false, false), formal(primPair(), "align", false, false), formal(primPen(), "p", false, false)); -#line 1270 "runtime.in" +#line 1280 "runtime.in" addFunc(ve, run::gen26, primBoolean(), "labels", formal(primPicture(), "f", false, false)); -#line 1275 "runtime.in" - addFunc(ve, run::gen27, pathArray() , "_texpath", formal(primString(), "s", false, false), formal(primPen(), "p", true, false)); -#line 1390 "runtime.in" - addFunc(ve, run::gen28, pathArray() , "textpath", formal(primString(), "s", false, false), formal(primPen(), "p", true, false)); -#line 1462 "runtime.in" - addFunc(ve, run::gen29, pathArray() , "_strokepath", formal(primPath(), "g", false, false), formal(primPen(), "p", true, false)); -#line 1486 "runtime.in" - addFunc(ve, run::gen30, primVoid(), "_draw", formal(primPicture(), "f", false, false), formal(primPath(), "g", false, false), formal(primPen(), "p", false, false)); -#line 1491 "runtime.in" - addFunc(ve, run::gen31, primVoid(), "fill", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primPen(), "p", true, false), formal(primBoolean(), "copy", true, false)); -#line 1497 "runtime.in" - addFunc(ve, run::gen32, primVoid(), "latticeshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray2() , "p", false, false), formal(primBoolean(), "copy", true, false)); -#line 1504 "runtime.in" - addFunc(ve, run::gen33, primVoid(), "axialshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "pena", false, false), formal(primPair(), "a", false, false), formal(primPen(), "penb", false, false), formal(primPair(), "b", false, false), formal(primBoolean(), "copy", true, false)); -#line 1511 "runtime.in" - addFunc(ve, run::gen34, primVoid(), "radialshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "pena", false, false), formal(primPair(), "a", false, false), formal(primReal(), "ra", false, false), formal(primPen(), "penb", false, false), formal(primPair(), "b", false, false), formal(primReal(), "rb", false, false), formal(primBoolean(), "copy", true, false)); -#line 1518 "runtime.in" - addFunc(ve, run::gen35, primVoid(), "gouraudshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray() , "p", false, false), formal(pairArray(), "z", false, false), formal(IntArray(), "edges", false, false), formal(primBoolean(), "copy", true, false)); -#line 1529 "runtime.in" - addFunc(ve, run::gen36, primVoid(), "gouraudshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray() , "p", false, false), formal(IntArray(), "edges", false, false), formal(primBoolean(), "copy", true, false)); -#line 1553 "runtime.in" - addFunc(ve, run::gen37, primVoid(), "tensorshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray2() , "p", false, false), formal(pathArray() , "b", true, false), formal(pairArray2(), "z", true, false), formal(primBoolean(), "copy", true, false)); -#line 1568 "runtime.in" - addFunc(ve, run::gen38, primVoid(), "functionshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primString() , "shader", true, false), formal(primBoolean(), "copy", true, false)); -#line 1576 "runtime.in" - addFunc(ve, run::gen39, primVoid(), "clip", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primBoolean(), "copy", true, false)); -#line 1586 "runtime.in" - addFunc(ve, run::gen40, primVoid(), "beginclip", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primBoolean(), "copy", true, false)); -#line 1593 "runtime.in" - addFunc(ve, run::gen41, primVoid(), "endclip", formal(primPicture(), "f", false, false)); -#line 1598 "runtime.in" - addFunc(ve, run::gen42, primVoid(), "gsave", formal(primPicture(), "f", false, false)); -#line 1603 "runtime.in" - addFunc(ve, run::gen43, primVoid(), "grestore", formal(primPicture(), "f", false, false)); -#line 1608 "runtime.in" - addFunc(ve, run::gen44, primVoid(), "begingroup", formal(primPicture(), "f", false, false)); -#line 1613 "runtime.in" - addFunc(ve, run::gen45, primVoid(), "endgroup", formal(primPicture(), "f", false, false)); -#line 1618 "runtime.in" - addFunc(ve, run::gen46, primVoid(), "add", formal(primPicture(), "dest", false, false), formal(primPicture(), "src", false, false)); -#line 1623 "runtime.in" - addFunc(ve, run::gen47, primVoid(), "prepend", formal(primPicture(), "dest", false, false), formal(primPicture(), "src", false, false)); -#line 1628 "runtime.in" - addFunc(ve, run::gen48, primVoid(), "postscript", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false)); -#line 1633 "runtime.in" - addFunc(ve, run::gen49, primVoid(), "tex", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false)); -#line 1638 "runtime.in" - addFunc(ve, run::gen50, primVoid(), "postscript", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primPair(), "min", false, false), formal(primPair(), "max", false, false)); -#line 1643 "runtime.in" - addFunc(ve, run::gen51, primVoid(), "tex", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primPair(), "min", false, false), formal(primPair(), "max", false, false)); -#line 1648 "runtime.in" - addFunc(ve, run::gen52, primVoid(), "texpreamble", formal(primString() , "s", false, false)); -#line 1656 "runtime.in" - addFunc(ve, run::gen53, primVoid(), "deletepreamble"); -#line 1663 "runtime.in" - addFunc(ve, run::gen54, primVoid(), "_labelpath", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primString() , "size", false, false), formal(primPath(), "g", false, false), formal(primString() , "justify", false, false), formal(primPair(), "offset", false, false), formal(primPen(), "p", false, false)); -#line 1669 "runtime.in" - addFunc(ve, run::gen55, primVoid(), "texreset"); -#line 1677 "runtime.in" - addFunc(ve, run::gen56, primVoid(), "layer", formal(primPicture(), "f", false, false)); -#line 1682 "runtime.in" - addFunc(ve, run::gen57, primVoid(), "newpage", formal(primPicture(), "f", false, false)); -#line 1687 "runtime.in" - addFunc(ve, run::gen58, primVoid(), "_image", formal(primPicture(), "f", false, false), formal(realArray2(), "data", false, false), formal(primPair(), "initial", false, false), formal(primPair(), "final", false, false), formal(penArray() , "palette", true, false), formal(primTransform(), "t", true, false), formal(primBoolean(), "copy", true, false), formal(primBoolean(), "antialias", true, false)); -#line 1697 "runtime.in" - addFunc(ve, run::gen59, primVoid(), "_image", formal(primPicture(), "f", false, false), formal(penArray2() , "data", false, false), formal(primPair(), "initial", false, false), formal(primPair(), "final", false, false), formal(primTransform(), "t", true, false), formal(primBoolean(), "copy", true, false), formal(primBoolean(), "antialias", true, false)); -#line 1704 "runtime.in" - addFunc(ve, run::gen60, primString() , "nativeformat"); -#line 1709 "runtime.in" - addFunc(ve, run::gen61, primBoolean(), "latex"); -#line 1714 "runtime.in" - addFunc(ve, run::gen62, primBoolean(), "pdf"); -#line 1719 "runtime.in" - addFunc(ve, run::gen63, primVoid(), "shipout", formal(primString() , "prefix", true, false), formal(primPicture(), "f", false, false), formal(primPicture(), "preamble", true, false), formal(primString() , "format", true, false), formal(primBoolean(), "wait", true, false), formal(primBoolean(), "view", true, false), formal(transformFunction(), "xform", false, false)); -#line 1765 "runtime.in" - addFunc(ve, run::gen64, primVoid(), "shipout3", formal(primString() , "prefix", false, false), formal(primPicture(), "f", false, false), formal(primString() , "format", true, false), formal(primReal(), "width", false, false), formal(primReal(), "height", false, false), formal(primReal(), "angle", false, false), formal(primTriple(), "m", false, false), formal(primTriple(), "m", false, false), formal(realArray2(), "t", false, false), formal(realArray(), "background", false, false), formal(tripleArray(), "lights", false, false), formal(realArray2(), "diffuse", false, false), formal(realArray2(), "ambient", false, false), formal(realArray2(), "specular", false, false), formal(primBoolean(), "viewportlighting", false, false), formal(primBoolean(), "view", true, false)); +#line 1285 "runtime.in" + addFunc(ve, run::gen27, realArray(), "texsize", formal(primString(), "s", false, false), formal(primPen(), "p", true, false)); +#line 1305 "runtime.in" + addFunc(ve, run::gen28, pathArray() , "_texpath", formal(primString(), "s", false, false), formal(primPen(), "p", true, false)); +#line 1413 "runtime.in" + addFunc(ve, run::gen29, pathArray() , "textpath", formal(primString(), "s", false, false), formal(primPen(), "p", true, false)); +#line 1477 "runtime.in" + addFunc(ve, run::gen30, pathArray() , "_strokepath", formal(primPath(), "g", false, false), formal(primPen(), "p", true, false)); +#line 1502 "runtime.in" + addFunc(ve, run::gen31, primVoid(), "_draw", formal(primPicture(), "f", false, false), formal(primPath(), "g", false, false), formal(primPen(), "p", false, false)); +#line 1507 "runtime.in" + addFunc(ve, run::gen32, primVoid(), "fill", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primPen(), "p", true, false), formal(primBoolean(), "copy", true, false)); +#line 1513 "runtime.in" + addFunc(ve, run::gen33, primVoid(), "latticeshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray2() , "p", false, false), formal(primBoolean(), "copy", true, false)); +#line 1520 "runtime.in" + addFunc(ve, run::gen34, primVoid(), "axialshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "pena", false, false), formal(primPair(), "a", false, false), formal(primPen(), "penb", false, false), formal(primPair(), "b", false, false), formal(primBoolean(), "copy", true, false)); +#line 1527 "runtime.in" + addFunc(ve, run::gen35, primVoid(), "radialshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "pena", false, false), formal(primPair(), "a", false, false), formal(primReal(), "ra", false, false), formal(primPen(), "penb", false, false), formal(primPair(), "b", false, false), formal(primReal(), "rb", false, false), formal(primBoolean(), "copy", true, false)); +#line 1534 "runtime.in" + addFunc(ve, run::gen36, primVoid(), "gouraudshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray() , "p", false, false), formal(pairArray(), "z", false, false), formal(IntArray(), "edges", false, false), formal(primBoolean(), "copy", true, false)); +#line 1545 "runtime.in" + addFunc(ve, run::gen37, primVoid(), "gouraudshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray() , "p", false, false), formal(IntArray(), "edges", false, false), formal(primBoolean(), "copy", true, false)); +#line 1569 "runtime.in" + addFunc(ve, run::gen38, primVoid(), "tensorshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(penArray2() , "p", false, false), formal(pathArray() , "b", true, false), formal(pairArray2(), "z", true, false), formal(primBoolean(), "copy", true, false)); +#line 1584 "runtime.in" + addFunc(ve, run::gen39, primVoid(), "functionshade", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primString() , "shader", true, false), formal(primBoolean(), "copy", true, false)); +#line 1592 "runtime.in" + addFunc(ve, run::gen40, primVoid(), "clip", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primBoolean(), "copy", true, false)); +#line 1602 "runtime.in" + addFunc(ve, run::gen41, primVoid(), "beginclip", formal(primPicture(), "f", false, false), formal(pathArray() , "g", false, false), formal(primBoolean(), "stroke", true, false), formal(primPen(), "fillrule", true, false), formal(primBoolean(), "copy", true, false)); +#line 1609 "runtime.in" + addFunc(ve, run::gen42, primVoid(), "endclip", formal(primPicture(), "f", false, false)); +#line 1614 "runtime.in" + addFunc(ve, run::gen43, primVoid(), "gsave", formal(primPicture(), "f", false, false)); +#line 1619 "runtime.in" + addFunc(ve, run::gen44, primVoid(), "grestore", formal(primPicture(), "f", false, false)); +#line 1624 "runtime.in" + addFunc(ve, run::gen45, primVoid(), "begingroup", formal(primPicture(), "f", false, false)); +#line 1629 "runtime.in" + addFunc(ve, run::gen46, primVoid(), "endgroup", formal(primPicture(), "f", false, false)); +#line 1634 "runtime.in" + addFunc(ve, run::gen47, primVoid(), "add", formal(primPicture(), "dest", false, false), formal(primPicture(), "src", false, false)); +#line 1639 "runtime.in" + addFunc(ve, run::gen48, primVoid(), "prepend", formal(primPicture(), "dest", false, false), formal(primPicture(), "src", false, false)); +#line 1644 "runtime.in" + addFunc(ve, run::gen49, primVoid(), "postscript", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false)); +#line 1649 "runtime.in" + addFunc(ve, run::gen50, primVoid(), "tex", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false)); +#line 1654 "runtime.in" + addFunc(ve, run::gen51, primVoid(), "postscript", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primPair(), "min", false, false), formal(primPair(), "max", false, false)); +#line 1659 "runtime.in" + addFunc(ve, run::gen52, primVoid(), "tex", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primPair(), "min", false, false), formal(primPair(), "max", false, false)); +#line 1664 "runtime.in" + addFunc(ve, run::gen53, primVoid(), "texpreamble", formal(primString() , "s", false, false)); +#line 1672 "runtime.in" + addFunc(ve, run::gen54, primVoid(), "deletepreamble"); +#line 1679 "runtime.in" + addFunc(ve, run::gen55, primVoid(), "_labelpath", formal(primPicture(), "f", false, false), formal(primString() , "s", false, false), formal(primString() , "size", false, false), formal(primPath(), "g", false, false), formal(primString() , "justify", false, false), formal(primPair(), "offset", false, false), formal(primPen(), "p", false, false)); +#line 1685 "runtime.in" + addFunc(ve, run::gen56, primVoid(), "texreset"); +#line 1693 "runtime.in" + addFunc(ve, run::gen57, primVoid(), "layer", formal(primPicture(), "f", false, false)); +#line 1698 "runtime.in" + addFunc(ve, run::gen58, primVoid(), "newpage", formal(primPicture(), "f", false, false)); +#line 1703 "runtime.in" + addFunc(ve, run::gen59, primVoid(), "_image", formal(primPicture(), "f", false, false), formal(realArray2(), "data", false, false), formal(primPair(), "initial", false, false), formal(primPair(), "final", false, false), formal(penArray() , "palette", true, false), formal(primTransform(), "t", true, false), formal(primBoolean(), "copy", true, false), formal(primBoolean(), "antialias", true, false)); +#line 1713 "runtime.in" + addFunc(ve, run::gen60, primVoid(), "_image", formal(primPicture(), "f", false, false), formal(penArray2() , "data", false, false), formal(primPair(), "initial", false, false), formal(primPair(), "final", false, false), formal(primTransform(), "t", true, false), formal(primBoolean(), "copy", true, false), formal(primBoolean(), "antialias", true, false)); +#line 1720 "runtime.in" + addFunc(ve, run::gen61, primString() , "nativeformat"); +#line 1725 "runtime.in" + addFunc(ve, run::gen62, primBoolean(), "latex"); +#line 1730 "runtime.in" + addFunc(ve, run::gen63, primBoolean(), "pdf"); +#line 1735 "runtime.in" + addFunc(ve, run::gen64, primVoid(), "shipout", formal(primString() , "prefix", true, false), formal(primPicture(), "f", false, false), formal(primPicture(), "preamble", true, false), formal(primString() , "format", true, false), formal(primBoolean(), "wait", true, false), formal(primBoolean(), "view", true, false), formal(transformFunction(), "xform", false, false)); #line 1781 "runtime.in" - addFunc(ve, run::gen65, primVoid(), "shipout3", formal(primString() , "prefix", false, false), formal(primPicture(), "f", false, false)); -#line 1786 "runtime.in" - addFunc(ve, run::gen66, primVoid(), "deconstruct", formal(primPicture(), "f", false, false), formal(primPicture(), "preamble", true, false), formal(primReal(), "magnification", true, false), formal(transformFunction(), "xform", false, false)); -#line 1919 "runtime.in" - addFunc(ve, run::gen67, primVoid(), "purge", formal(primInt(), "divisor", true, false)); -#line 1932 "runtime.in" - addFunc(ve, run::gen69, primBoolean(), "==", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); -#line 1937 "runtime.in" - addFunc(ve, run::gen70, primBoolean(), "!=", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); -#line 1942 "runtime.in" - addFunc(ve, run::gen71, primPen(), "+", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); -#line 1947 "runtime.in" - addFunc(ve, run::gen72, primPen(), "*", formal(primReal(), "a", false, false), formal(primPen(), "b", false, false)); -#line 1952 "runtime.in" - addFunc(ve, run::gen73, primPen(), "*", formal(primPen(), "a", false, false), formal(primReal(), "b", false, false)); -#line 1957 "runtime.in" - addFunc(ve, run::gen74, primPair(), "max", formal(primPen(), "p", false, false)); -#line 1962 "runtime.in" - addFunc(ve, run::gen75, primPair(), "min", formal(primPen(), "p", false, false)); -#line 1967 "runtime.in" - addFunc(ve, run::gen76, primVoid(), "resetdefaultpen"); + addFunc(ve, run::gen65, primVoid(), "shipout3", formal(primString() , "prefix", false, false), formal(primPicture(), "f", false, false), formal(primString() , "format", true, false), formal(primReal(), "width", false, false), formal(primReal(), "height", false, false), formal(primReal(), "angle", false, false), formal(primTriple(), "m", false, false), formal(primTriple(), "m", false, false), formal(realArray2(), "t", false, false), formal(realArray(), "background", false, false), formal(tripleArray(), "lights", false, false), formal(realArray2(), "diffuse", false, false), formal(realArray2(), "ambient", false, false), formal(realArray2(), "specular", false, false), formal(primBoolean(), "viewportlighting", false, false), formal(primBoolean(), "view", true, false)); +#line 1797 "runtime.in" + addFunc(ve, run::gen66, primVoid(), "shipout3", formal(primString() , "prefix", false, false), formal(primPicture(), "f", false, false)); +#line 1802 "runtime.in" + addFunc(ve, run::gen67, primVoid(), "deconstruct", formal(primPicture(), "f", false, false), formal(primPicture(), "preamble", true, false), formal(primReal(), "magnification", true, false), formal(transformFunction(), "xform", false, false)); +#line 1935 "runtime.in" + addFunc(ve, run::gen68, primVoid(), "purge", formal(primInt(), "divisor", true, false)); +#line 1948 "runtime.in" + addFunc(ve, run::gen70, primBoolean(), "==", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); +#line 1953 "runtime.in" + addFunc(ve, run::gen71, primBoolean(), "!=", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); +#line 1958 "runtime.in" + addFunc(ve, run::gen72, primPen(), "+", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false)); +#line 1963 "runtime.in" + addFunc(ve, run::gen73, primPen(), "*", formal(primReal(), "a", false, false), formal(primPen(), "b", false, false)); +#line 1968 "runtime.in" + addFunc(ve, run::gen74, primPen(), "*", formal(primPen(), "a", false, false), formal(primReal(), "b", false, false)); #line 1973 "runtime.in" - addFunc(ve, run::gen77, primVoid(), "defaultpen", formal(primPen(), "p", false, false)); + addFunc(ve, run::gen75, primPair(), "max", formal(primPen(), "p", false, false)); #line 1978 "runtime.in" - addFunc(ve, run::gen78, primPen(), "defaultpen"); + addFunc(ve, run::gen76, primPair(), "min", formal(primPen(), "p", false, false)); #line 1983 "runtime.in" - addFunc(ve, run::gen79, primBoolean(), "invisible", formal(primPen(), "p", false, false)); -#line 1988 "runtime.in" - addFunc(ve, run::gen80, primPen(), "invisible"); -#line 1993 "runtime.in" - addFunc(ve, run::gen81, primPen(), "gray", formal(primPen(), "p", false, false)); + addFunc(ve, run::gen77, primVoid(), "resetdefaultpen"); +#line 1989 "runtime.in" + addFunc(ve, run::gen78, primVoid(), "defaultpen", formal(primPen(), "p", false, false)); +#line 1994 "runtime.in" + addFunc(ve, run::gen79, primPen(), "defaultpen"); #line 1999 "runtime.in" - addFunc(ve, run::gen82, primPen(), "rgb", formal(primPen(), "p", false, false)); -#line 2005 "runtime.in" - addFunc(ve, run::gen83, primPen(), "cmyk", formal(primPen(), "p", false, false)); -#line 2011 "runtime.in" - addFunc(ve, run::gen84, primPen(), "interp", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false), formal(primReal(), "t", false, false)); -#line 2016 "runtime.in" - addFunc(ve, run::gen85, primPen(), "rgb", formal(primReal(), "r", false, false), formal(primReal(), "g", false, false), formal(primReal(), "b", false, false)); + addFunc(ve, run::gen80, primBoolean(), "invisible", formal(primPen(), "p", false, false)); +#line 2004 "runtime.in" + addFunc(ve, run::gen81, primPen(), "invisible"); +#line 2009 "runtime.in" + addFunc(ve, run::gen82, primPen(), "gray", formal(primPen(), "p", false, false)); +#line 2015 "runtime.in" + addFunc(ve, run::gen83, primPen(), "rgb", formal(primPen(), "p", false, false)); #line 2021 "runtime.in" - addFunc(ve, run::gen86, primPen(), "cmyk", formal(primReal(), "c", false, false), formal(primReal(), "m", false, false), formal(primReal(), "y", false, false), formal(primReal(), "k", false, false)); -#line 2026 "runtime.in" - addFunc(ve, run::gen87, primPen(), "gray", formal(primReal(), "gray", false, false)); -#line 2031 "runtime.in" - addFunc(ve, run::gen88, realArray(), "colors", formal(primPen(), "p", false, false)); -#line 2059 "runtime.in" - addFunc(ve, run::gen89, primString() , "colorspace", formal(primPen(), "p", false, false)); -#line 2066 "runtime.in" - addFunc(ve, run::gen90, primPen(), "pattern", formal(primString(), "s", false, false)); -#line 2071 "runtime.in" - addFunc(ve, run::gen91, primString() , "pattern", formal(primPen(), "p", false, false)); -#line 2076 "runtime.in" - addFunc(ve, run::gen92, primPen(), "fillrule", formal(primInt(), "n", false, false)); -#line 2081 "runtime.in" - addFunc(ve, run::gen93, primInt(), "fillrule", formal(primPen(), "p", false, false)); -#line 2086 "runtime.in" - addFunc(ve, run::gen94, primPen(), "opacity", formal(primReal(), "opacity", true, false), formal(primString() , "blend", true, false)); -#line 2096 "runtime.in" - addFunc(ve, run::gen95, primReal(), "opacity", formal(primPen(), "p", false, false)); -#line 2101 "runtime.in" - addFunc(ve, run::gen96, primString() , "blend", formal(primPen(), "p", false, false)); -#line 2106 "runtime.in" - addFunc(ve, run::gen97, primPen(), "linetype", formal(primString(), "s", false, false), formal(primReal(), "offset", true, false), formal(primBoolean(), "scale", true, false), formal(primBoolean(), "adjust", true, false)); -#line 2111 "runtime.in" - addFunc(ve, run::gen98, primString() , "linetype", formal(primPen(), "p", true, false)); -#line 2116 "runtime.in" - addFunc(ve, run::gen99, primReal(), "offset", formal(primPen(), "p", false, false)); -#line 2121 "runtime.in" - addFunc(ve, run::gen100, primBoolean(), "scale", formal(primPen(), "p", false, false)); -#line 2126 "runtime.in" - addFunc(ve, run::gen101, primBoolean(), "adjust", formal(primPen(), "p", false, false)); -#line 2131 "runtime.in" - addFunc(ve, run::gen102, primPen(), "adjust", formal(primPen(), "p", false, false), formal(primReal(), "arclength", false, false), formal(primBoolean(), "cyclic", false, false)); -#line 2136 "runtime.in" - addFunc(ve, run::gen103, primPen(), "linecap", formal(primInt(), "n", false, false)); -#line 2141 "runtime.in" - addFunc(ve, run::gen104, primInt(), "linecap", formal(primPen(), "p", true, false)); -#line 2146 "runtime.in" - addFunc(ve, run::gen105, primPen(), "linejoin", formal(primInt(), "n", false, false)); -#line 2151 "runtime.in" - addFunc(ve, run::gen106, primInt(), "linejoin", formal(primPen(), "p", true, false)); -#line 2156 "runtime.in" - addFunc(ve, run::gen107, primPen(), "miterlimit", formal(primReal(), "x", false, false)); -#line 2161 "runtime.in" - addFunc(ve, run::gen108, primReal(), "miterlimit", formal(primPen(), "p", true, false)); -#line 2166 "runtime.in" - addFunc(ve, run::gen109, primPen(), "linewidth", formal(primReal(), "x", false, false)); -#line 2171 "runtime.in" - addFunc(ve, run::gen110, primReal(), "linewidth", formal(primPen(), "p", true, false)); -#line 2176 "runtime.in" - addFunc(ve, run::gen111, primPen(), "fontcommand", formal(primString(), "s", false, false)); -#line 2181 "runtime.in" - addFunc(ve, run::gen112, primString() , "font", formal(primPen(), "p", true, false)); -#line 2186 "runtime.in" - addFunc(ve, run::gen113, primPen(), "fontsize", formal(primReal(), "size", false, false), formal(primReal(), "lineskip", false, false)); + addFunc(ve, run::gen84, primPen(), "cmyk", formal(primPen(), "p", false, false)); +#line 2027 "runtime.in" + addFunc(ve, run::gen85, primPen(), "interp", formal(primPen(), "a", false, false), formal(primPen(), "b", false, false), formal(primReal(), "t", false, false)); +#line 2032 "runtime.in" + addFunc(ve, run::gen86, primPen(), "rgb", formal(primReal(), "r", false, false), formal(primReal(), "g", false, false), formal(primReal(), "b", false, false)); +#line 2037 "runtime.in" + addFunc(ve, run::gen87, primPen(), "cmyk", formal(primReal(), "c", false, false), formal(primReal(), "m", false, false), formal(primReal(), "y", false, false), formal(primReal(), "k", false, false)); +#line 2042 "runtime.in" + addFunc(ve, run::gen88, primPen(), "gray", formal(primReal(), "gray", false, false)); +#line 2047 "runtime.in" + addFunc(ve, run::gen89, realArray(), "colors", formal(primPen(), "p", false, false)); +#line 2075 "runtime.in" + addFunc(ve, run::gen90, primString() , "colorspace", formal(primPen(), "p", false, false)); +#line 2082 "runtime.in" + addFunc(ve, run::gen91, primPen(), "pattern", formal(primString(), "s", false, false)); +#line 2087 "runtime.in" + addFunc(ve, run::gen92, primString() , "pattern", formal(primPen(), "p", false, false)); +#line 2092 "runtime.in" + addFunc(ve, run::gen93, primPen(), "fillrule", formal(primInt(), "n", false, false)); +#line 2097 "runtime.in" + addFunc(ve, run::gen94, primInt(), "fillrule", formal(primPen(), "p", false, false)); +#line 2102 "runtime.in" + addFunc(ve, run::gen95, primPen(), "opacity", formal(primReal(), "opacity", true, false), formal(primString() , "blend", true, false)); +#line 2112 "runtime.in" + addFunc(ve, run::gen96, primReal(), "opacity", formal(primPen(), "p", false, false)); +#line 2117 "runtime.in" + addFunc(ve, run::gen97, primString() , "blend", formal(primPen(), "p", false, false)); +#line 2122 "runtime.in" + addFunc(ve, run::gen98, primPen(), "linetype", formal(primString(), "s", false, false), formal(primReal(), "offset", true, false), formal(primBoolean(), "scale", true, false), formal(primBoolean(), "adjust", true, false)); +#line 2127 "runtime.in" + addFunc(ve, run::gen99, primString() , "linetype", formal(primPen(), "p", true, false)); +#line 2132 "runtime.in" + addFunc(ve, run::gen100, primReal(), "offset", formal(primPen(), "p", false, false)); +#line 2137 "runtime.in" + addFunc(ve, run::gen101, primBoolean(), "scale", formal(primPen(), "p", false, false)); +#line 2142 "runtime.in" + addFunc(ve, run::gen102, primBoolean(), "adjust", formal(primPen(), "p", false, false)); +#line 2147 "runtime.in" + addFunc(ve, run::gen103, primPen(), "adjust", formal(primPen(), "p", false, false), formal(primReal(), "arclength", false, false), formal(primBoolean(), "cyclic", false, false)); +#line 2152 "runtime.in" + addFunc(ve, run::gen104, primPen(), "linecap", formal(primInt(), "n", false, false)); +#line 2157 "runtime.in" + addFunc(ve, run::gen105, primInt(), "linecap", formal(primPen(), "p", true, false)); +#line 2162 "runtime.in" + addFunc(ve, run::gen106, primPen(), "linejoin", formal(primInt(), "n", false, false)); +#line 2167 "runtime.in" + addFunc(ve, run::gen107, primInt(), "linejoin", formal(primPen(), "p", true, false)); +#line 2172 "runtime.in" + addFunc(ve, run::gen108, primPen(), "miterlimit", formal(primReal(), "x", false, false)); +#line 2177 "runtime.in" + addFunc(ve, run::gen109, primReal(), "miterlimit", formal(primPen(), "p", true, false)); +#line 2182 "runtime.in" + addFunc(ve, run::gen110, primPen(), "linewidth", formal(primReal(), "x", false, false)); +#line 2187 "runtime.in" + addFunc(ve, run::gen111, primReal(), "linewidth", formal(primPen(), "p", true, false)); #line 2192 "runtime.in" - addFunc(ve, run::gen114, primReal(), "fontsize", formal(primPen(), "p", true, false)); + addFunc(ve, run::gen112, primPen(), "fontcommand", formal(primString(), "s", false, false)); #line 2197 "runtime.in" - addFunc(ve, run::gen115, primReal(), "lineskip", formal(primPen(), "p", true, false)); + addFunc(ve, run::gen113, primString() , "font", formal(primPen(), "p", true, false)); #line 2202 "runtime.in" - addFunc(ve, run::gen116, primPen(), "overwrite", formal(primInt(), "n", false, false)); + addFunc(ve, run::gen114, primPen(), "fontsize", formal(primReal(), "size", false, false), formal(primReal(), "lineskip", false, false)); #line 2208 "runtime.in" - addFunc(ve, run::gen117, primInt(), "overwrite", formal(primPen(), "p", true, false)); + addFunc(ve, run::gen115, primReal(), "fontsize", formal(primPen(), "p", true, false)); #line 2213 "runtime.in" - addFunc(ve, run::gen118, primPen(), "basealign", formal(primInt(), "n", false, false)); + addFunc(ve, run::gen116, primReal(), "lineskip", formal(primPen(), "p", true, false)); #line 2218 "runtime.in" - addFunc(ve, run::gen119, primInt(), "basealign", formal(primPen(), "p", true, false)); -#line 2223 "runtime.in" - addFunc(ve, run::gen120, primTransform(), "transform", formal(primPen(), "p", false, false)); -#line 2228 "runtime.in" - addFunc(ve, run::gen121, primPath(), "nib", formal(primPen(), "p", false, false)); -#line 2233 "runtime.in" - addFunc(ve, run::gen122, primPen(), "makepen", formal(primPath(), "p", false, false)); -#line 2238 "runtime.in" - addFunc(ve, run::gen123, primPen(), "colorless", formal(primPen(), "p", false, false)); + addFunc(ve, run::gen117, primPen(), "overwrite", formal(primInt(), "n", false, false)); +#line 2224 "runtime.in" + addFunc(ve, run::gen118, primInt(), "overwrite", formal(primPen(), "p", true, false)); +#line 2229 "runtime.in" + addFunc(ve, run::gen119, primPen(), "basealign", formal(primInt(), "n", false, false)); +#line 2234 "runtime.in" + addFunc(ve, run::gen120, primInt(), "basealign", formal(primPen(), "p", true, false)); +#line 2239 "runtime.in" + addFunc(ve, run::gen121, primTransform(), "transform", formal(primPen(), "p", false, false)); #line 2244 "runtime.in" - addFunc(ve, run::gen124, primBoolean(), "interactive"); -#line 2251 "runtime.in" - addFunc(ve, run::gen125, primBoolean(), "uptodate"); -#line 2256 "runtime.in" - addFunc(ve, run::gen126, primInt(), "system", formal(primString() , "s", false, false)); -#line 2266 "runtime.in" - addFunc(ve, run::gen127, primBoolean(), "view"); -#line 2271 "runtime.in" - addFunc(ve, run::gen128, primString() , "asydir"); -#line 2276 "runtime.in" - addFunc(ve, run::gen129, primString() , "locale", formal(primString() , "s", true, false)); + addFunc(ve, run::gen122, primPath(), "nib", formal(primPen(), "p", false, false)); +#line 2249 "runtime.in" + addFunc(ve, run::gen123, primPen(), "makepen", formal(primPath(), "p", false, false)); +#line 2254 "runtime.in" + addFunc(ve, run::gen124, primPen(), "colorless", formal(primPen(), "p", false, false)); +#line 2260 "runtime.in" + addFunc(ve, run::gen125, primBoolean(), "interactive"); +#line 2267 "runtime.in" + addFunc(ve, run::gen126, primBoolean(), "uptodate"); +#line 2272 "runtime.in" + addFunc(ve, run::gen127, primInt(), "system", formal(primString() , "s", false, false)); #line 2282 "runtime.in" - addFunc(ve, run::gen130, primVoid(), "abort", formal(primString() , "s", true, false)); -#line 2288 "runtime.in" - addFunc(ve, run::gen131, primVoid(), "exit"); -#line 2293 "runtime.in" - addFunc(ve, run::gen132, primVoid(), "assert", formal(primBoolean(), "b", false, false), formal(primString() , "s", true, false)); + addFunc(ve, run::gen128, primBoolean(), "view"); +#line 2287 "runtime.in" + addFunc(ve, run::gen129, primString() , "asydir"); +#line 2292 "runtime.in" + addFunc(ve, run::gen130, primString() , "locale", formal(primString() , "s", true, false)); +#line 2298 "runtime.in" + addFunc(ve, run::gen131, primVoid(), "abort", formal(primString() , "s", true, false)); #line 2304 "runtime.in" - addFunc(ve, run::gen133, primVoid(), "sleep", formal(primInt(), "seconds", false, false)); -#line 2310 "runtime.in" - addFunc(ve, run::gen134, primVoid(), "usleep", formal(primInt(), "microseconds", false, false)); -#line 2316 "runtime.in" - addFunc(ve, run::gen135, primVoid(), "_eval", formal(primString(), "s", false, false), formal(primBoolean(), "embedded", false, false), formal(primBoolean(), "interactivewrite", true, false)); -#line 2331 "runtime.in" - addFunc(ve, run::gen136, primVoid(), "_eval", formal(primCode(), "s", false, false), formal(primBoolean(), "embedded", false, false)); -#line 2349 "runtime.in" - addFunc(ve, run::gen137, primString() , "location"); -#line 2361 "runtime.in" - addFunc(ve, run::gen139, primString() , "cd", formal(primString() , "s", true, false)); -#line 2367 "runtime.in" - addFunc(ve, run::gen140, primVoid(), "list", formal(primString(), "s", false, false), formal(primBoolean(), "imports", true, false)); -#line 2384 "runtime.in" - addFunc(ve, run::gen142, primBoolean(), "==", formal(primPath(), "a", false, false), formal(primPath(), "b", false, false)); -#line 2389 "runtime.in" - addFunc(ve, run::gen143, primBoolean(), "!=", formal(primPath(), "a", false, false), formal(primPath(), "b", false, false)); -#line 2394 "runtime.in" - addFunc(ve, run::gen144, primPair(), "point", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2399 "runtime.in" - addFunc(ve, run::gen145, primPair(), "point", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2404 "runtime.in" - addFunc(ve, run::gen146, primPair(), "precontrol", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2409 "runtime.in" - addFunc(ve, run::gen147, primPair(), "precontrol", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2414 "runtime.in" - addFunc(ve, run::gen148, primPair(), "postcontrol", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2419 "runtime.in" - addFunc(ve, run::gen149, primPair(), "postcontrol", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2424 "runtime.in" - addFunc(ve, run::gen150, primPair(), "dir", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false), formal(primBoolean(), "normalize", true, false)); -#line 2429 "runtime.in" - addFunc(ve, run::gen151, primPair(), "dir", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "normalize", true, false)); -#line 2434 "runtime.in" - addFunc(ve, run::gen152, primPair(), "accel", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false)); -#line 2439 "runtime.in" - addFunc(ve, run::gen153, primPair(), "accel", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2444 "runtime.in" - addFunc(ve, run::gen154, primReal(), "radius", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2456 "runtime.in" - addFunc(ve, run::gen155, primPath(), "reverse", formal(primPath(), "p", false, false)); -#line 2461 "runtime.in" - addFunc(ve, run::gen156, primPath(), "subpath", formal(primPath(), "p", false, false), formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); -#line 2466 "runtime.in" - addFunc(ve, run::gen157, primPath(), "subpath", formal(primPath(), "p", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false)); -#line 2471 "runtime.in" - addFunc(ve, run::gen158, primPath(), "nurb", formal(primPair(), "z0", false, false), formal(primPair(), "z1", false, false), formal(primPair(), "z2", false, false), formal(primPair(), "z3", false, false), formal(primReal(), "w0", false, false), formal(primReal(), "w1", false, false), formal(primReal(), "w2", false, false), formal(primReal(), "w3", false, false), formal(primInt(), "m", false, false)); + addFunc(ve, run::gen132, primVoid(), "exit"); +#line 2309 "runtime.in" + addFunc(ve, run::gen133, primVoid(), "assert", formal(primBoolean(), "b", false, false), formal(primString() , "s", true, false)); +#line 2320 "runtime.in" + addFunc(ve, run::gen134, primVoid(), "sleep", formal(primInt(), "seconds", false, false)); +#line 2326 "runtime.in" + addFunc(ve, run::gen135, primVoid(), "usleep", formal(primInt(), "microseconds", false, false)); +#line 2332 "runtime.in" + addFunc(ve, run::gen136, primVoid(), "_eval", formal(primString(), "s", false, false), formal(primBoolean(), "embedded", false, false), formal(primBoolean(), "interactivewrite", true, false)); +#line 2347 "runtime.in" + addFunc(ve, run::gen137, primVoid(), "_eval", formal(primCode(), "s", false, false), formal(primBoolean(), "embedded", false, false)); +#line 2365 "runtime.in" + addFunc(ve, run::gen138, primString() , "location"); +#line 2377 "runtime.in" + addFunc(ve, run::gen140, primString() , "cd", formal(primString() , "s", true, false)); +#line 2383 "runtime.in" + addFunc(ve, run::gen141, primVoid(), "list", formal(primString(), "s", false, false), formal(primBoolean(), "imports", true, false)); +#line 2400 "runtime.in" + addFunc(ve, run::gen143, primBoolean(), "==", formal(primPath(), "a", false, false), formal(primPath(), "b", false, false)); +#line 2405 "runtime.in" + addFunc(ve, run::gen144, primBoolean(), "!=", formal(primPath(), "a", false, false), formal(primPath(), "b", false, false)); +#line 2410 "runtime.in" + addFunc(ve, run::gen145, primPair(), "point", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2415 "runtime.in" + addFunc(ve, run::gen146, primPair(), "point", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2420 "runtime.in" + addFunc(ve, run::gen147, primPair(), "precontrol", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2425 "runtime.in" + addFunc(ve, run::gen148, primPair(), "precontrol", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2430 "runtime.in" + addFunc(ve, run::gen149, primPair(), "postcontrol", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2435 "runtime.in" + addFunc(ve, run::gen150, primPair(), "postcontrol", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2440 "runtime.in" + addFunc(ve, run::gen151, primPair(), "dir", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false), formal(primBoolean(), "normalize", true, false)); +#line 2445 "runtime.in" + addFunc(ve, run::gen152, primPair(), "dir", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "normalize", true, false)); +#line 2450 "runtime.in" + addFunc(ve, run::gen153, primPair(), "accel", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false)); +#line 2455 "runtime.in" + addFunc(ve, run::gen154, primPair(), "accel", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2460 "runtime.in" + addFunc(ve, run::gen155, primReal(), "radius", formal(primPath(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2472 "runtime.in" + addFunc(ve, run::gen156, primPath(), "reverse", formal(primPath(), "p", false, false)); #line 2477 "runtime.in" - addFunc(ve, run::gen159, primInt(), "length", formal(primPath(), "p", false, false)); + addFunc(ve, run::gen157, primPath(), "subpath", formal(primPath(), "p", false, false), formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); #line 2482 "runtime.in" - addFunc(ve, run::gen160, primBoolean(), "cyclic", formal(primPath(), "p", false, false)); + addFunc(ve, run::gen158, primPath(), "subpath", formal(primPath(), "p", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false)); #line 2487 "runtime.in" - addFunc(ve, run::gen161, primBoolean(), "straight", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2492 "runtime.in" - addFunc(ve, run::gen162, primPath(), "unstraighten", formal(primPath(), "p", false, false)); -#line 2497 "runtime.in" - addFunc(ve, run::gen163, primBoolean(), "piecewisestraight", formal(primPath(), "p", false, false)); -#line 2502 "runtime.in" - addFunc(ve, run::gen164, primReal(), "arclength", formal(primPath(), "p", false, false)); -#line 2507 "runtime.in" - addFunc(ve, run::gen165, primReal(), "arctime", formal(primPath(), "p", false, false), formal(primReal(), "dval", false, false)); -#line 2512 "runtime.in" - addFunc(ve, run::gen166, primReal(), "dirtime", formal(primPath(), "p", false, false), formal(primPair(), "z", false, false)); -#line 2517 "runtime.in" - addFunc(ve, run::gen167, realArray(), "intersect", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false), formal(primReal(), "fuzz", true, false)); -#line 2534 "runtime.in" - addFunc(ve, run::gen168, realArray2(), "intersections", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false), formal(primReal(), "fuzz", true, false)); -#line 2565 "runtime.in" - addFunc(ve, run::gen169, realArray(), "intersections", formal(primPath(), "p", false, false), formal(primPair(), "a", false, true), formal(primPair(), "b", false, true), formal(primReal(), "fuzz", true, false)); -#line 2580 "runtime.in" - addFunc(ve, run::gen170, primPair(), "extension", formal(primPair(), "p", false, false), formal(primPair(), "q", false, false), formal(primPair(), "p", false, false), formal(primPair(), "q", false, false)); -#line 2591 "runtime.in" - addFunc(ve, run::gen171, primInt(), "size", formal(primPath(), "p", false, false)); + addFunc(ve, run::gen159, primPath(), "nurb", formal(primPair(), "z0", false, false), formal(primPair(), "z1", false, false), formal(primPair(), "z2", false, false), formal(primPair(), "z3", false, false), formal(primReal(), "w0", false, false), formal(primReal(), "w1", false, false), formal(primReal(), "w2", false, false), formal(primReal(), "w3", false, false), formal(primInt(), "m", false, false)); +#line 2493 "runtime.in" + addFunc(ve, run::gen160, primInt(), "length", formal(primPath(), "p", false, false)); +#line 2498 "runtime.in" + addFunc(ve, run::gen161, primBoolean(), "cyclic", formal(primPath(), "p", false, false)); +#line 2503 "runtime.in" + addFunc(ve, run::gen162, primBoolean(), "straight", formal(primPath(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2508 "runtime.in" + addFunc(ve, run::gen163, primPath(), "unstraighten", formal(primPath(), "p", false, false)); +#line 2513 "runtime.in" + addFunc(ve, run::gen164, primBoolean(), "piecewisestraight", formal(primPath(), "p", false, false)); +#line 2518 "runtime.in" + addFunc(ve, run::gen165, primReal(), "arclength", formal(primPath(), "p", false, false)); +#line 2523 "runtime.in" + addFunc(ve, run::gen166, primReal(), "arctime", formal(primPath(), "p", false, false), formal(primReal(), "dval", false, false)); +#line 2528 "runtime.in" + addFunc(ve, run::gen167, primReal(), "dirtime", formal(primPath(), "p", false, false), formal(primPair(), "z", false, false)); +#line 2533 "runtime.in" + addFunc(ve, run::gen168, realArray(), "intersect", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false), formal(primReal(), "fuzz", true, false)); +#line 2550 "runtime.in" + addFunc(ve, run::gen169, realArray2(), "intersections", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false), formal(primReal(), "fuzz", true, false)); +#line 2581 "runtime.in" + addFunc(ve, run::gen170, realArray(), "intersections", formal(primPath(), "p", false, false), formal(primPair(), "a", false, true), formal(primPair(), "b", false, true), formal(primReal(), "fuzz", true, false)); #line 2596 "runtime.in" - addFunc(ve, run::gen172, primPath(), "&", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false)); -#line 2601 "runtime.in" - addFunc(ve, run::gen173, primPair(), "min", formal(primPath(), "p", false, false)); -#line 2606 "runtime.in" - addFunc(ve, run::gen174, primPair(), "max", formal(primPath(), "p", false, false)); -#line 2611 "runtime.in" - addFunc(ve, run::gen175, realArray(), "mintimes", formal(primPath(), "p", false, false)); -#line 2620 "runtime.in" - addFunc(ve, run::gen176, realArray(), "maxtimes", formal(primPath(), "p", false, false)); -#line 2629 "runtime.in" - addFunc(ve, run::gen177, primReal(), "relativedistance", formal(primReal(), "theta", false, false), formal(primReal(), "phi", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "atleast", false, false)); -#line 2634 "runtime.in" - addFunc(ve, run::gen178, primInt(), "windingnumber", formal(pathArray() , "p", false, false), formal(primPair(), "z", false, false)); -#line 2639 "runtime.in" - addFunc(ve, run::gen179, primBoolean(), "inside", formal(pathArray() , "g", false, true), formal(primPair(), "z", false, false), formal(primPen(), "fillrule", true, false)); -#line 2644 "runtime.in" - addFunc(ve, run::gen180, primBoolean(), "inside", formal(primPath(), "g", false, false), formal(primPair(), "z", false, false), formal(primPen(), "fillrule", true, false)); -#line 2649 "runtime.in" - addFunc(ve, run::gen181, primReal(), "side", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false)); -#line 2656 "runtime.in" - addFunc(ve, run::gen182, primReal(), "incircle", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false)); -#line 2664 "runtime.in" - addFunc(ve, run::gen183, primPath3(), "path3", formal(tripleArray(), "pre", false, false), formal(tripleArray(), "point", false, false), formal(tripleArray(), "post", false, false), formal(boolArray(), "straight", false, false), formal(primBoolean(), "cyclic", false, false)); -#line 2689 "runtime.in" - addFunc(ve, run::gen185, primBoolean(), "==", formal(primPath3(), "a", false, false), formal(primPath3(), "b", false, false)); -#line 2694 "runtime.in" - addFunc(ve, run::gen186, primBoolean(), "!=", formal(primPath3(), "a", false, false), formal(primPath3(), "b", false, false)); -#line 2699 "runtime.in" - addFunc(ve, run::gen187, primTriple(), "point", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2704 "runtime.in" - addFunc(ve, run::gen188, primTriple(), "point", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2709 "runtime.in" - addFunc(ve, run::gen189, primTriple(), "precontrol", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2714 "runtime.in" - addFunc(ve, run::gen190, primTriple(), "precontrol", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2719 "runtime.in" - addFunc(ve, run::gen191, primTriple(), "postcontrol", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2724 "runtime.in" - addFunc(ve, run::gen192, primTriple(), "postcontrol", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2729 "runtime.in" - addFunc(ve, run::gen193, primTriple(), "dir", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false), formal(primBoolean(), "normalize", true, false)); -#line 2734 "runtime.in" - addFunc(ve, run::gen194, primTriple(), "dir", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "normalize", true, false)); -#line 2739 "runtime.in" - addFunc(ve, run::gen195, primTriple(), "accel", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false)); -#line 2744 "runtime.in" - addFunc(ve, run::gen196, primTriple(), "accel", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2749 "runtime.in" - addFunc(ve, run::gen197, primReal(), "radius", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); -#line 2761 "runtime.in" - addFunc(ve, run::gen198, primReal(), "radius", formal(primTriple(), "z0", false, false), formal(primTriple(), "c0", false, false), formal(primTriple(), "c1", false, false), formal(primTriple(), "z1", false, false), formal(primReal(), "t", false, false)); -#line 2773 "runtime.in" - addFunc(ve, run::gen199, primPath3(), "reverse", formal(primPath3(), "p", false, false)); -#line 2778 "runtime.in" - addFunc(ve, run::gen200, primPath3(), "subpath", formal(primPath3(), "p", false, false), formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); -#line 2783 "runtime.in" - addFunc(ve, run::gen201, primPath3(), "subpath", formal(primPath3(), "p", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false)); -#line 2788 "runtime.in" - addFunc(ve, run::gen202, primInt(), "length", formal(primPath3(), "p", false, false)); -#line 2793 "runtime.in" - addFunc(ve, run::gen203, primBoolean(), "cyclic", formal(primPath3(), "p", false, false)); -#line 2798 "runtime.in" - addFunc(ve, run::gen204, primBoolean(), "straight", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2803 "runtime.in" - addFunc(ve, run::gen205, primTriple(), "perp", formal(primTriple(), "v", false, false), formal(primTriple(), "u", false, false)); + addFunc(ve, run::gen171, primPair(), "extension", formal(primPair(), "p", false, false), formal(primPair(), "q", false, false), formal(primPair(), "p", false, false), formal(primPair(), "q", false, false)); +#line 2607 "runtime.in" + addFunc(ve, run::gen172, primInt(), "size", formal(primPath(), "p", false, false)); +#line 2612 "runtime.in" + addFunc(ve, run::gen173, primPath(), "&", formal(primPath(), "p", false, false), formal(primPath(), "q", false, false)); +#line 2617 "runtime.in" + addFunc(ve, run::gen174, primPair(), "min", formal(primPath(), "p", false, false)); +#line 2622 "runtime.in" + addFunc(ve, run::gen175, primPair(), "max", formal(primPath(), "p", false, false)); +#line 2627 "runtime.in" + addFunc(ve, run::gen176, realArray(), "mintimes", formal(primPath(), "p", false, false)); +#line 2636 "runtime.in" + addFunc(ve, run::gen177, realArray(), "maxtimes", formal(primPath(), "p", false, false)); +#line 2645 "runtime.in" + addFunc(ve, run::gen178, primReal(), "relativedistance", formal(primReal(), "theta", false, false), formal(primReal(), "phi", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "atleast", false, false)); +#line 2650 "runtime.in" + addFunc(ve, run::gen179, primInt(), "windingnumber", formal(pathArray() , "p", false, false), formal(primPair(), "z", false, false)); +#line 2655 "runtime.in" + addFunc(ve, run::gen180, primBoolean(), "inside", formal(pathArray() , "g", false, true), formal(primPair(), "z", false, false), formal(primPen(), "fillrule", true, false)); +#line 2660 "runtime.in" + addFunc(ve, run::gen181, primBoolean(), "inside", formal(primPath(), "g", false, false), formal(primPair(), "z", false, false), formal(primPen(), "fillrule", true, false)); +#line 2665 "runtime.in" + addFunc(ve, run::gen182, primReal(), "side", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false)); +#line 2672 "runtime.in" + addFunc(ve, run::gen183, primReal(), "incircle", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false)); +#line 2680 "runtime.in" + addFunc(ve, run::gen184, primPath3(), "path3", formal(tripleArray(), "pre", false, false), formal(tripleArray(), "point", false, false), formal(tripleArray(), "post", false, false), formal(boolArray(), "straight", false, false), formal(primBoolean(), "cyclic", false, false)); +#line 2705 "runtime.in" + addFunc(ve, run::gen186, primBoolean(), "==", formal(primPath3(), "a", false, false), formal(primPath3(), "b", false, false)); +#line 2710 "runtime.in" + addFunc(ve, run::gen187, primBoolean(), "!=", formal(primPath3(), "a", false, false), formal(primPath3(), "b", false, false)); +#line 2715 "runtime.in" + addFunc(ve, run::gen188, primTriple(), "point", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2720 "runtime.in" + addFunc(ve, run::gen189, primTriple(), "point", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2725 "runtime.in" + addFunc(ve, run::gen190, primTriple(), "precontrol", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2730 "runtime.in" + addFunc(ve, run::gen191, primTriple(), "precontrol", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2735 "runtime.in" + addFunc(ve, run::gen192, primTriple(), "postcontrol", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2740 "runtime.in" + addFunc(ve, run::gen193, primTriple(), "postcontrol", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2745 "runtime.in" + addFunc(ve, run::gen194, primTriple(), "dir", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false), formal(primBoolean(), "normalize", true, false)); +#line 2750 "runtime.in" + addFunc(ve, run::gen195, primTriple(), "dir", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false), formal(primBoolean(), "normalize", true, false)); +#line 2755 "runtime.in" + addFunc(ve, run::gen196, primTriple(), "accel", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false), formal(primInt(), "sign", true, false)); +#line 2760 "runtime.in" + addFunc(ve, run::gen197, primTriple(), "accel", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2765 "runtime.in" + addFunc(ve, run::gen198, primReal(), "radius", formal(primPath3(), "p", false, false), formal(primReal(), "t", false, false)); +#line 2777 "runtime.in" + addFunc(ve, run::gen199, primReal(), "radius", formal(primTriple(), "z0", false, false), formal(primTriple(), "c0", false, false), formal(primTriple(), "c1", false, false), formal(primTriple(), "z1", false, false), formal(primReal(), "t", false, false)); +#line 2789 "runtime.in" + addFunc(ve, run::gen200, primPath3(), "reverse", formal(primPath3(), "p", false, false)); +#line 2794 "runtime.in" + addFunc(ve, run::gen201, primPath3(), "subpath", formal(primPath3(), "p", false, false), formal(primInt(), "a", false, false), formal(primInt(), "b", false, false)); +#line 2799 "runtime.in" + addFunc(ve, run::gen202, primPath3(), "subpath", formal(primPath3(), "p", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false)); +#line 2804 "runtime.in" + addFunc(ve, run::gen203, primInt(), "length", formal(primPath3(), "p", false, false)); #line 2809 "runtime.in" - addFunc(ve, run::gen206, primReal(), "straightness", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); -#line 2820 "runtime.in" - addFunc(ve, run::gen207, primReal(), "straightness", formal(primTriple(), "z0", false, false), formal(primTriple(), "c0", false, false), formal(primTriple(), "c1", false, false), formal(primTriple(), "z1", false, false)); -#line 2828 "runtime.in" - addFunc(ve, run::gen208, primBoolean(), "piecewisestraight", formal(primPath3(), "p", false, false)); -#line 2833 "runtime.in" - addFunc(ve, run::gen209, primReal(), "arclength", formal(primPath3(), "p", false, false)); -#line 2838 "runtime.in" - addFunc(ve, run::gen210, primReal(), "arctime", formal(primPath3(), "p", false, false), formal(primReal(), "dval", false, false)); -#line 2843 "runtime.in" - addFunc(ve, run::gen211, realArray(), "intersect", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false), formal(primReal(), "fuzz", true, false)); -#line 2861 "runtime.in" - addFunc(ve, run::gen212, realArray2(), "intersections", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false), formal(primReal(), "fuzz", true, false)); -#line 2894 "runtime.in" - addFunc(ve, run::gen213, realArray2(), "intersections", formal(primPath3(), "p", false, false), formal(tripleArray2(), "p", false, false), formal(primReal(), "fuzz", true, false)); -#line 2914 "runtime.in" - addFunc(ve, run::gen214, primInt(), "size", formal(primPath3(), "p", false, false)); -#line 2919 "runtime.in" - addFunc(ve, run::gen215, primPath3(), "&", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false)); -#line 2924 "runtime.in" - addFunc(ve, run::gen216, primTriple(), "min", formal(primPath3(), "p", false, false)); -#line 2929 "runtime.in" - addFunc(ve, run::gen217, primTriple(), "max", formal(primPath3(), "p", false, false)); -#line 2934 "runtime.in" - addFunc(ve, run::gen218, realArray(), "mintimes", formal(primPath3(), "p", false, false)); -#line 2944 "runtime.in" - addFunc(ve, run::gen219, realArray(), "maxtimes", formal(primPath3(), "p", false, false)); -#line 2954 "runtime.in" - addFunc(ve, run::gen220, primPath3(), "*", formal(realArray2(), "t", false, false), formal(primPath3(), "g", false, false)); -#line 3009 "runtime.in" - addFunc(ve, run::gen225, primGuide(), "operator cast", formal(primCycleToken(), "tok", false, false)); -#line 3016 "runtime.in" - addFunc(ve, run::gen226, primGuide(), "operator spec", formal(primPair(), "z", false, false), formal(primInt(), "p", false, false)); -#line 3024 "runtime.in" - addFunc(ve, run::gen227, primCurlSpecifier(), "operator curl", formal(primReal(), "gamma", false, false), formal(primInt(), "p", false, false)); + addFunc(ve, run::gen204, primBoolean(), "cyclic", formal(primPath3(), "p", false, false)); +#line 2814 "runtime.in" + addFunc(ve, run::gen205, primBoolean(), "straight", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2819 "runtime.in" + addFunc(ve, run::gen206, primTriple(), "perp", formal(primTriple(), "v", false, false), formal(primTriple(), "u", false, false)); +#line 2825 "runtime.in" + addFunc(ve, run::gen207, primReal(), "straightness", formal(primPath3(), "p", false, false), formal(primInt(), "t", false, false)); +#line 2836 "runtime.in" + addFunc(ve, run::gen208, primReal(), "straightness", formal(primTriple(), "z0", false, false), formal(primTriple(), "c0", false, false), formal(primTriple(), "c1", false, false), formal(primTriple(), "z1", false, false)); +#line 2844 "runtime.in" + addFunc(ve, run::gen209, primBoolean(), "piecewisestraight", formal(primPath3(), "p", false, false)); +#line 2849 "runtime.in" + addFunc(ve, run::gen210, primReal(), "arclength", formal(primPath3(), "p", false, false)); +#line 2854 "runtime.in" + addFunc(ve, run::gen211, primReal(), "arctime", formal(primPath3(), "p", false, false), formal(primReal(), "dval", false, false)); +#line 2859 "runtime.in" + addFunc(ve, run::gen212, realArray(), "intersect", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false), formal(primReal(), "fuzz", true, false)); +#line 2877 "runtime.in" + addFunc(ve, run::gen213, realArray2(), "intersections", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false), formal(primReal(), "fuzz", true, false)); +#line 2910 "runtime.in" + addFunc(ve, run::gen214, realArray2(), "intersections", formal(primPath3(), "p", false, false), formal(tripleArray2(), "p", false, false), formal(primReal(), "fuzz", true, false)); +#line 2930 "runtime.in" + addFunc(ve, run::gen215, primInt(), "size", formal(primPath3(), "p", false, false)); +#line 2935 "runtime.in" + addFunc(ve, run::gen216, primPath3(), "&", formal(primPath3(), "p", false, false), formal(primPath3(), "q", false, false)); +#line 2940 "runtime.in" + addFunc(ve, run::gen217, primTriple(), "min", formal(primPath3(), "p", false, false)); +#line 2945 "runtime.in" + addFunc(ve, run::gen218, primTriple(), "max", formal(primPath3(), "p", false, false)); +#line 2950 "runtime.in" + addFunc(ve, run::gen219, realArray(), "mintimes", formal(primPath3(), "p", false, false)); +#line 2960 "runtime.in" + addFunc(ve, run::gen220, realArray(), "maxtimes", formal(primPath3(), "p", false, false)); +#line 2970 "runtime.in" + addFunc(ve, run::gen221, primPath3(), "*", formal(realArray2(), "t", false, false), formal(primPath3(), "g", false, false)); +#line 3025 "runtime.in" + addFunc(ve, run::gen226, primGuide(), "operator cast", formal(primCycleToken(), "tok", false, false)); +#line 3032 "runtime.in" + addFunc(ve, run::gen227, primGuide(), "operator spec", formal(primPair(), "z", false, false), formal(primInt(), "p", false, false)); #line 3040 "runtime.in" - addFunc(ve, run::gen230, primGuide(), "operator cast", formal(primCurlSpecifier(), "spec", false, false)); -#line 3045 "runtime.in" - addFunc(ve, run::gen231, primTensionSpecifier(), "operator tension", formal(primReal(), "tout", false, false), formal(primReal(), "tin", false, false), formal(primBoolean(), "atleast", false, false)); -#line 3065 "runtime.in" - addFunc(ve, run::gen235, primGuide(), "operator cast", formal(primTensionSpecifier(), "t", false, false)); -#line 3070 "runtime.in" - addFunc(ve, run::gen236, primGuide(), "operator controls", formal(primPair(), "zout", false, false), formal(primPair(), "zin", false, false)); -#line 3075 "runtime.in" - addFunc(ve, run::gen237, primInt(), "size", formal(primGuide(), "g", false, false)); -#line 3082 "runtime.in" - addFunc(ve, run::gen238, primInt(), "length", formal(primGuide(), "g", false, false)); -#line 3089 "runtime.in" - addFunc(ve, run::gen239, primBoolean(), "cyclic", formal(primGuide(), "g", false, false)); -#line 3096 "runtime.in" - addFunc(ve, run::gen240, primPair(), "point", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); -#line 3103 "runtime.in" - addFunc(ve, run::gen241, pairArray(), "dirSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); -#line 3115 "runtime.in" - addFunc(ve, run::gen242, pairArray(), "controlSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); -#line 3132 "runtime.in" - addFunc(ve, run::gen243, primTensionSpecifier(), "tensionSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); -#line 3142 "runtime.in" - addFunc(ve, run::gen244, realArray(), "curlSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); -#line 3156 "runtime.in" - addFunc(ve, run::gen245, primGuide(), "reverse", formal(primGuide(), "g", false, false)); -#line 3210 "runtime.in" - addFunc(ve, run::gen246, primVoid(), "_draw", formal(primPicture(), "f", false, false), formal(primPath3(), "g", false, false), formal(primPen(), "p", false, false)); -#line 3219 "runtime.in" - addFunc(ve, run::gen247, primVoid(), "draw", formal(primPicture(), "f", false, false), formal(tripleArray2(), "g", false, false), formal(primBoolean(), "straight", false, false), formal(penArray() , "p", false, false), formal(primReal(), "opacity", false, false), formal(primReal(), "shininess", false, false), formal(primReal(), "granularity", false, false), formal(primTriple(), "normal", false, false), formal(primBoolean(), "lighton", false, false), formal(penArray() , "colors", false, false)); -#line 3227 "runtime.in" - addFunc(ve, run::gen248, primTriple(), "min3", formal(primPicture(), "f", false, false)); -#line 3232 "runtime.in" - addFunc(ve, run::gen249, primTriple(), "max3", formal(primPicture(), "f", false, false)); -#line 3237 "runtime.in" - addFunc(ve, run::gen250, primPair(), "min", formal(primPicture(), "f", false, false), formal(realArray2(), "t", false, false)); -#line 3245 "runtime.in" - addFunc(ve, run::gen251, primPair(), "max", formal(primPicture(), "f", false, false), formal(realArray2(), "t", false, false)); + addFunc(ve, run::gen228, primCurlSpecifier(), "operator curl", formal(primReal(), "gamma", false, false), formal(primInt(), "p", false, false)); +#line 3056 "runtime.in" + addFunc(ve, run::gen231, primGuide(), "operator cast", formal(primCurlSpecifier(), "spec", false, false)); +#line 3061 "runtime.in" + addFunc(ve, run::gen232, primTensionSpecifier(), "operator tension", formal(primReal(), "tout", false, false), formal(primReal(), "tin", false, false), formal(primBoolean(), "atleast", false, false)); +#line 3081 "runtime.in" + addFunc(ve, run::gen236, primGuide(), "operator cast", formal(primTensionSpecifier(), "t", false, false)); +#line 3086 "runtime.in" + addFunc(ve, run::gen237, primGuide(), "operator controls", formal(primPair(), "zout", false, false), formal(primPair(), "zin", false, false)); +#line 3091 "runtime.in" + addFunc(ve, run::gen238, primInt(), "size", formal(primGuide(), "g", false, false)); +#line 3098 "runtime.in" + addFunc(ve, run::gen239, primInt(), "length", formal(primGuide(), "g", false, false)); +#line 3105 "runtime.in" + addFunc(ve, run::gen240, primBoolean(), "cyclic", formal(primGuide(), "g", false, false)); +#line 3112 "runtime.in" + addFunc(ve, run::gen241, primPair(), "point", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); +#line 3119 "runtime.in" + addFunc(ve, run::gen242, pairArray(), "dirSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); +#line 3131 "runtime.in" + addFunc(ve, run::gen243, pairArray(), "controlSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); +#line 3148 "runtime.in" + addFunc(ve, run::gen244, primTensionSpecifier(), "tensionSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); +#line 3158 "runtime.in" + addFunc(ve, run::gen245, realArray(), "curlSpecifier", formal(primGuide(), "g", false, false), formal(primInt(), "t", false, false)); +#line 3172 "runtime.in" + addFunc(ve, run::gen246, primGuide(), "reverse", formal(primGuide(), "g", false, false)); +#line 3226 "runtime.in" + addFunc(ve, run::gen247, primVoid(), "_draw", formal(primPicture(), "f", false, false), formal(primPath3(), "g", false, false), formal(primPen(), "p", false, false)); +#line 3235 "runtime.in" + addFunc(ve, run::gen248, primVoid(), "draw", formal(primPicture(), "f", false, false), formal(tripleArray2(), "g", false, false), formal(primBoolean(), "straight", false, false), formal(penArray() , "p", false, false), formal(primReal(), "opacity", false, false), formal(primReal(), "shininess", false, false), formal(primReal(), "granularity", false, false), formal(primTriple(), "normal", false, false), formal(primBoolean(), "lighton", false, false), formal(penArray() , "colors", false, false)); +#line 3243 "runtime.in" + addFunc(ve, run::gen249, primTriple(), "min3", formal(primPicture(), "f", false, false)); +#line 3248 "runtime.in" + addFunc(ve, run::gen250, primTriple(), "max3", formal(primPicture(), "f", false, false)); #line 3253 "runtime.in" - addFunc(ve, run::gen252, primPair(), "minratio", formal(primPicture(), "f", false, false)); -#line 3258 "runtime.in" - addFunc(ve, run::gen253, primPair(), "maxratio", formal(primPicture(), "f", false, false)); -#line 3263 "runtime.in" - addFunc(ve, run::gen254, primTriple(), "minbound", formal(tripleArray2(), "p", false, false), formal(primTriple(), "b", false, false)); -#line 3273 "runtime.in" - addFunc(ve, run::gen255, primTriple(), "maxbound", formal(tripleArray2(), "p", false, false), formal(primTriple(), "b", false, false)); -#line 3283 "runtime.in" - addFunc(ve, run::gen256, primPair(), "minbound", formal(tripleArray2(), "p", false, false), formal(realArray2(), "t", false, false), formal(primPair(), "b", false, false)); -#line 3295 "runtime.in" - addFunc(ve, run::gen257, primPair(), "maxbound", formal(tripleArray2(), "p", false, false), formal(realArray2(), "t", false, false), formal(primPair(), "b", false, false)); -#line 3307 "runtime.in" - addFunc(ve, run::gen258, primPair(), "max", formal(primPath3(), "g", false, false), formal(realArray2(), "t", false, false)); -#line 3315 "runtime.in" - addFunc(ve, run::gen259, primPair(), "min", formal(primPath3(), "g", false, false), formal(realArray2(), "t", false, false)); + addFunc(ve, run::gen251, primPair(), "min", formal(primPicture(), "f", false, false), formal(realArray2(), "t", false, false)); +#line 3261 "runtime.in" + addFunc(ve, run::gen252, primPair(), "max", formal(primPicture(), "f", false, false), formal(realArray2(), "t", false, false)); +#line 3269 "runtime.in" + addFunc(ve, run::gen253, primPair(), "minratio", formal(primPicture(), "f", false, false)); +#line 3274 "runtime.in" + addFunc(ve, run::gen254, primPair(), "maxratio", formal(primPicture(), "f", false, false)); +#line 3279 "runtime.in" + addFunc(ve, run::gen255, primTriple(), "minbound", formal(tripleArray2(), "p", false, false), formal(primTriple(), "b", false, false)); +#line 3289 "runtime.in" + addFunc(ve, run::gen256, primTriple(), "maxbound", formal(tripleArray2(), "p", false, false), formal(primTriple(), "b", false, false)); +#line 3299 "runtime.in" + addFunc(ve, run::gen257, primPair(), "minbound", formal(tripleArray2(), "p", false, false), formal(realArray2(), "t", false, false), formal(primPair(), "b", false, false)); +#line 3311 "runtime.in" + addFunc(ve, run::gen258, primPair(), "maxbound", formal(tripleArray2(), "p", false, false), formal(realArray2(), "t", false, false), formal(primPair(), "b", false, false)); #line 3323 "runtime.in" - addFunc(ve, run::gen260, primReal(), "change2", formal(tripleArray2(), "a", false, false)); -#line 3345 "runtime.in" - addFunc(ve, run::gen261, primBoolean(), "is3D", formal(primPicture(), "f", false, false)); -#line 3350 "runtime.in" - addFunc(ve, run::gen262, primPair(), "bezier", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3357 "runtime.in" - addFunc(ve, run::gen263, primPair(), "bezierP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3362 "runtime.in" - addFunc(ve, run::gen264, primPair(), "bezierPP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3367 "runtime.in" - addFunc(ve, run::gen265, primPair(), "bezierPPP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false)); -#line 3372 "runtime.in" - addFunc(ve, run::gen266, primTriple(), "bezier", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3379 "runtime.in" - addFunc(ve, run::gen267, primTriple(), "bezierP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3384 "runtime.in" - addFunc(ve, run::gen268, primTriple(), "bezierPP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); -#line 3389 "runtime.in" - addFunc(ve, run::gen269, primTriple(), "bezierPPP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false)); -#line 3402 "runtime.in" - addFunc(ve, run::gen271, primInt(), "length", formal(primString(), "s", false, false)); -#line 3407 "runtime.in" - addFunc(ve, run::gen272, primInt(), "find", formal(primString(), "s", false, false), formal(primString() , "t", false, false), formal(primInt(), "pos", true, false)); -#line 3413 "runtime.in" - addFunc(ve, run::gen273, primInt(), "rfind", formal(primString(), "s", false, false), formal(primString() , "t", false, false), formal(primInt(), "pos", true, false)); -#line 3419 "runtime.in" - addFunc(ve, run::gen274, primString() , "reverse", formal(primString() , "s", false, false)); -#line 3425 "runtime.in" - addFunc(ve, run::gen275, primString() , "insert", formal(primString() , "s", false, false), formal(primInt(), "pos", false, false), formal(primString() , "t", false, false)); -#line 3432 "runtime.in" - addFunc(ve, run::gen276, primString() , "substr", formal(primString(), "s", false, false), formal(primInt(), "pos", false, false), formal(primInt(), "n", true, false)); -#line 3439 "runtime.in" - addFunc(ve, run::gen277, primString() , "erase", formal(primString() , "s", false, false), formal(primInt(), "pos", false, false), formal(primInt(), "n", false, false)); -#line 3446 "runtime.in" - addFunc(ve, run::gen278, primString() , "downcase", formal(primString() , "s", false, false)); -#line 3452 "runtime.in" - addFunc(ve, run::gen279, primString() , "upcase", formal(primString() , "s", false, false)); -#line 3458 "runtime.in" - addFunc(ve, run::gen280, primString() , "replace", formal(primString(), "s", false, false), formal(stringArray2(), "translate", false, false)); -#line 3485 "runtime.in" - addFunc(ve, run::gen281, primString() , "format", formal(primString(), "format", false, false), formal(primInt(), "x", false, false)); -#line 3500 "runtime.in" - addFunc(ve, run::gen282, primString() , "format", formal(primString(), "format", false, false), formal(primReal(), "x", false, false), formal(primString() , "locale", true, false)); -#line 3618 "runtime.in" - addFunc(ve, run::gen283, primInt(), "hex", formal(primString() , "s", false, false)); -#line 3629 "runtime.in" - addFunc(ve, run::gen284, primString() , "string", formal(primInt(), "x", false, false)); -#line 3636 "runtime.in" - addFunc(ve, run::gen285, primString() , "string", formal(primReal(), "x", false, false), formal(primInt(), "digits", true, false)); -#line 3644 "runtime.in" - addFunc(ve, run::gen286, primString() , "time", formal(primString() , "format", true, false)); -#line 3655 "runtime.in" - addFunc(ve, run::gen287, primString() , "time", formal(primInt(), "seconds", false, false), formal(primString() , "format", true, false)); -#line 3668 "runtime.in" - addFunc(ve, run::gen288, primInt(), "seconds", formal(primString() , "t", true, false), formal(primString() , "format", true, false)); -#line 3680 "runtime.in" - addFunc(ve, run::gen289, realArray(), "_cputime"); -#line 3694 "runtime.in" - addFunc(ve, run::gen290, primReal(), "^", formal(primReal(), "x", false, false), formal(primInt(), "y", false, false)); -#line 3702 "runtime.in" - addFunc(ve, run::gen291, primPair(), "^", formal(primPair(), "z", false, false), formal(primInt(), "y", false, false)); -#line 3707 "runtime.in" - addFunc(ve, run::gen292, primInt(), "quotient", formal(primInt(), "x", false, false), formal(primInt(), "y", false, false)); -#line 3715 "runtime.in" - addFunc(ve, run::gen293, primInt(), "abs", formal(primInt(), "x", false, false)); -#line 3720 "runtime.in" - addFunc(ve, run::gen294, primInt(), "sgn", formal(primReal(), "x", false, false)); -#line 3725 "runtime.in" - addFunc(ve, run::gen295, primInt(), "rand"); -#line 3730 "runtime.in" - addFunc(ve, run::gen296, primVoid(), "srand", formal(primInt(), "seed", false, false)); -#line 3735 "runtime.in" - addFunc(ve, run::gen297, primReal(), "unitrand"); + addFunc(ve, run::gen259, primPair(), "max", formal(primPath3(), "g", false, false), formal(realArray2(), "t", false, false)); +#line 3331 "runtime.in" + addFunc(ve, run::gen260, primPair(), "min", formal(primPath3(), "g", false, false), formal(realArray2(), "t", false, false)); +#line 3339 "runtime.in" + addFunc(ve, run::gen261, primReal(), "change2", formal(tripleArray2(), "a", false, false)); +#line 3361 "runtime.in" + addFunc(ve, run::gen262, primBoolean(), "is3D", formal(primPicture(), "f", false, false)); +#line 3366 "runtime.in" + addFunc(ve, run::gen263, primPair(), "bezier", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3373 "runtime.in" + addFunc(ve, run::gen264, primPair(), "bezierP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3378 "runtime.in" + addFunc(ve, run::gen265, primPair(), "bezierPP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3383 "runtime.in" + addFunc(ve, run::gen266, primPair(), "bezierPPP", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false), formal(primPair(), "c", false, false), formal(primPair(), "d", false, false)); +#line 3388 "runtime.in" + addFunc(ve, run::gen267, primTriple(), "bezier", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3395 "runtime.in" + addFunc(ve, run::gen268, primTriple(), "bezierP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3400 "runtime.in" + addFunc(ve, run::gen269, primTriple(), "bezierPP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false), formal(primReal(), "t", false, false)); +#line 3405 "runtime.in" + addFunc(ve, run::gen270, primTriple(), "bezierPPP", formal(primTriple(), "a", false, false), formal(primTriple(), "b", false, false), formal(primTriple(), "c", false, false), formal(primTriple(), "d", false, false)); +#line 3418 "runtime.in" + addFunc(ve, run::gen272, primInt(), "length", formal(primString(), "s", false, false)); +#line 3423 "runtime.in" + addFunc(ve, run::gen273, primInt(), "find", formal(primString(), "s", false, false), formal(primString() , "t", false, false), formal(primInt(), "pos", true, false)); +#line 3429 "runtime.in" + addFunc(ve, run::gen274, primInt(), "rfind", formal(primString(), "s", false, false), formal(primString() , "t", false, false), formal(primInt(), "pos", true, false)); +#line 3435 "runtime.in" + addFunc(ve, run::gen275, primString() , "reverse", formal(primString() , "s", false, false)); +#line 3441 "runtime.in" + addFunc(ve, run::gen276, primString() , "insert", formal(primString() , "s", false, false), formal(primInt(), "pos", false, false), formal(primString() , "t", false, false)); +#line 3448 "runtime.in" + addFunc(ve, run::gen277, primString() , "substr", formal(primString(), "s", false, false), formal(primInt(), "pos", false, false), formal(primInt(), "n", true, false)); +#line 3455 "runtime.in" + addFunc(ve, run::gen278, primString() , "erase", formal(primString() , "s", false, false), formal(primInt(), "pos", false, false), formal(primInt(), "n", false, false)); +#line 3462 "runtime.in" + addFunc(ve, run::gen279, primString() , "downcase", formal(primString() , "s", false, false)); +#line 3468 "runtime.in" + addFunc(ve, run::gen280, primString() , "upcase", formal(primString() , "s", false, false)); +#line 3474 "runtime.in" + addFunc(ve, run::gen281, primString() , "replace", formal(primString(), "s", false, false), formal(stringArray2(), "translate", false, false)); +#line 3501 "runtime.in" + addFunc(ve, run::gen282, primString() , "format", formal(primString(), "format", false, false), formal(primInt(), "x", false, false)); +#line 3516 "runtime.in" + addFunc(ve, run::gen283, primString() , "format", formal(primString(), "format", false, false), formal(primReal(), "x", false, false), formal(primString() , "locale", true, false)); +#line 3634 "runtime.in" + addFunc(ve, run::gen284, primInt(), "hex", formal(primString() , "s", false, false)); +#line 3645 "runtime.in" + addFunc(ve, run::gen285, primString() , "string", formal(primInt(), "x", false, false)); +#line 3652 "runtime.in" + addFunc(ve, run::gen286, primString() , "string", formal(primReal(), "x", false, false), formal(primInt(), "digits", true, false)); +#line 3660 "runtime.in" + addFunc(ve, run::gen287, primString() , "time", formal(primString() , "format", true, false)); +#line 3671 "runtime.in" + addFunc(ve, run::gen288, primString() , "time", formal(primInt(), "seconds", false, false), formal(primString() , "format", true, false)); +#line 3684 "runtime.in" + addFunc(ve, run::gen289, primInt(), "seconds", formal(primString() , "t", true, false), formal(primString() , "format", true, false)); +#line 3696 "runtime.in" + addFunc(ve, run::gen290, realArray(), "_cputime"); +#line 3710 "runtime.in" + addFunc(ve, run::gen291, primReal(), "^", formal(primReal(), "x", false, false), formal(primInt(), "y", false, false)); +#line 3718 "runtime.in" + addFunc(ve, run::gen292, primPair(), "^", formal(primPair(), "z", false, false), formal(primInt(), "y", false, false)); +#line 3723 "runtime.in" + addFunc(ve, run::gen293, primInt(), "quotient", formal(primInt(), "x", false, false), formal(primInt(), "y", false, false)); +#line 3731 "runtime.in" + addFunc(ve, run::gen294, primInt(), "abs", formal(primInt(), "x", false, false)); +#line 3736 "runtime.in" + addFunc(ve, run::gen295, primInt(), "sgn", formal(primReal(), "x", false, false)); #line 3741 "runtime.in" - addFunc(ve, run::gen298, primInt(), "ceil", formal(primReal(), "x", false, false)); + addFunc(ve, run::gen296, primInt(), "rand"); #line 3746 "runtime.in" - addFunc(ve, run::gen299, primInt(), "floor", formal(primReal(), "x", false, false)); + addFunc(ve, run::gen297, primVoid(), "srand", formal(primInt(), "seed", false, false)); #line 3751 "runtime.in" - addFunc(ve, run::gen300, primInt(), "round", formal(primReal(), "x", false, false)); + addFunc(ve, run::gen298, primReal(), "unitrand"); #line 3757 "runtime.in" - addFunc(ve, run::gen301, primInt(), "Ceil", formal(primReal(), "x", false, false)); + addFunc(ve, run::gen299, primInt(), "ceil", formal(primReal(), "x", false, false)); #line 3762 "runtime.in" - addFunc(ve, run::gen302, primInt(), "Floor", formal(primReal(), "x", false, false)); + addFunc(ve, run::gen300, primInt(), "floor", formal(primReal(), "x", false, false)); #line 3767 "runtime.in" - addFunc(ve, run::gen303, primInt(), "Round", formal(primReal(), "x", false, false)); -#line 3772 "runtime.in" - addFunc(ve, run::gen304, primReal(), "fmod", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); + addFunc(ve, run::gen301, primInt(), "round", formal(primReal(), "x", false, false)); +#line 3773 "runtime.in" + addFunc(ve, run::gen302, primInt(), "Ceil", formal(primReal(), "x", false, false)); #line 3778 "runtime.in" - addFunc(ve, run::gen305, primReal(), "atan2", formal(primReal(), "y", false, false), formal(primReal(), "x", false, false)); + addFunc(ve, run::gen303, primInt(), "Floor", formal(primReal(), "x", false, false)); #line 3783 "runtime.in" - addFunc(ve, run::gen306, primReal(), "hypot", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); + addFunc(ve, run::gen304, primInt(), "Round", formal(primReal(), "x", false, false)); #line 3788 "runtime.in" - addFunc(ve, run::gen307, primReal(), "remainder", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); -#line 3793 "runtime.in" - addFunc(ve, run::gen308, primReal(), "J", formal(primInt(), "n", false, false), formal(primReal(), "x", false, false)); -#line 3798 "runtime.in" - addFunc(ve, run::gen309, primReal(), "Y", formal(primInt(), "n", false, false), formal(primReal(), "x", false, false)); -#line 3803 "runtime.in" - addFunc(ve, run::gen310, primReal(), "erf", formal(primReal(), "x", false, false)); -#line 3808 "runtime.in" - addFunc(ve, run::gen311, primReal(), "erfc", formal(primReal(), "x", false, false)); -#line 3813 "runtime.in" - addFunc(ve, run::gen312, primInt(), "factorial", formal(primInt(), "n", false, false)); -#line 3818 "runtime.in" - addFunc(ve, run::gen313, primInt(), "choose", formal(primInt(), "n", false, false), formal(primInt(), "k", false, false)); + addFunc(ve, run::gen305, primReal(), "fmod", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); +#line 3794 "runtime.in" + addFunc(ve, run::gen306, primReal(), "atan2", formal(primReal(), "y", false, false), formal(primReal(), "x", false, false)); +#line 3799 "runtime.in" + addFunc(ve, run::gen307, primReal(), "hypot", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); +#line 3804 "runtime.in" + addFunc(ve, run::gen308, primReal(), "remainder", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); +#line 3809 "runtime.in" + addFunc(ve, run::gen309, primReal(), "J", formal(primInt(), "n", false, false), formal(primReal(), "x", false, false)); +#line 3814 "runtime.in" + addFunc(ve, run::gen310, primReal(), "Y", formal(primInt(), "n", false, false), formal(primReal(), "x", false, false)); +#line 3819 "runtime.in" + addFunc(ve, run::gen311, primReal(), "erf", formal(primReal(), "x", false, false)); +#line 3824 "runtime.in" + addFunc(ve, run::gen312, primReal(), "erfc", formal(primReal(), "x", false, false)); #line 3829 "runtime.in" - addFunc(ve, run::gen314, primReal(), "gamma", formal(primReal(), "x", false, false)); -#line 3839 "runtime.in" - addFunc(ve, run::gen315, primPair(), "gamma", formal(primPair(), "z", false, true)); + addFunc(ve, run::gen313, primInt(), "factorial", formal(primInt(), "n", false, false)); +#line 3834 "runtime.in" + addFunc(ve, run::gen314, primInt(), "choose", formal(primInt(), "n", false, false), formal(primInt(), "k", false, false)); #line 3845 "runtime.in" - addFunc(ve, run::gen316, realArray(), "quadraticroots", formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "c", false, false)); -#line 3854 "runtime.in" - addFunc(ve, run::gen317, pairArray(), "quadraticroots", formal(primPair(), "a", false, true), formal(primPair(), "b", false, true), formal(primPair(), "c", false, true)); -#line 3863 "runtime.in" - addFunc(ve, run::gen318, realArray(), "cubicroots", formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "c", false, false), formal(primReal(), "d", false, false)); -#line 3873 "runtime.in" - addFunc(ve, run::gen319, primBoolean(), "==", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); -#line 3881 "runtime.in" - addFunc(ve, run::gen320, primBoolean(), "!=", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); -#line 3886 "runtime.in" - addFunc(ve, run::gen321, primTransform(), "+", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); -#line 3891 "runtime.in" - addFunc(ve, run::gen322, primTransform(), "*", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); -#line 3896 "runtime.in" - addFunc(ve, run::gen323, primPair(), "*", formal(primTransform(), "t", false, false), formal(primPair(), "z", false, false)); -#line 3901 "runtime.in" - addFunc(ve, run::gen324, primPath(), "*", formal(primTransform(), "t", false, false), formal(primPath(), "g", false, false)); -#line 3906 "runtime.in" - addFunc(ve, run::gen325, primPen(), "*", formal(primTransform(), "t", false, false), formal(primPen(), "p", false, false)); -#line 3911 "runtime.in" - addFunc(ve, run::gen326, primPicture(), "*", formal(primTransform(), "t", false, false), formal(primPicture(), "f", false, false)); -#line 3916 "runtime.in" - addFunc(ve, run::gen327, primPicture(), "*", formal(realArray2(), "t", false, false), formal(primPicture(), "f", false, false)); -#line 3921 "runtime.in" - addFunc(ve, run::gen328, primTransform(), "^", formal(primTransform(), "t", false, false), formal(primInt(), "n", false, false)); -#line 3968 "runtime.in" - addFunc(ve, run::gen336, primTransform(), "shift", formal(primTransform(), "t", false, false)); -#line 3973 "runtime.in" - addFunc(ve, run::gen337, primTransform(), "shiftless", formal(primTransform(), "t", false, false)); -#line 3978 "runtime.in" + addFunc(ve, run::gen315, primReal(), "gamma", formal(primReal(), "x", false, false)); +#line 3855 "runtime.in" + addFunc(ve, run::gen316, primPair(), "gamma", formal(primPair(), "z", false, true)); +#line 3861 "runtime.in" + addFunc(ve, run::gen317, realArray(), "quadraticroots", formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "c", false, false)); +#line 3870 "runtime.in" + addFunc(ve, run::gen318, pairArray(), "quadraticroots", formal(primPair(), "a", false, true), formal(primPair(), "b", false, true), formal(primPair(), "c", false, true)); +#line 3879 "runtime.in" + addFunc(ve, run::gen319, realArray(), "cubicroots", formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "c", false, false), formal(primReal(), "d", false, false)); +#line 3889 "runtime.in" + addFunc(ve, run::gen320, primBoolean(), "==", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); +#line 3897 "runtime.in" + addFunc(ve, run::gen321, primBoolean(), "!=", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); +#line 3902 "runtime.in" + addFunc(ve, run::gen322, primTransform(), "+", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); +#line 3907 "runtime.in" + addFunc(ve, run::gen323, primTransform(), "*", formal(primTransform(), "a", false, false), formal(primTransform(), "b", false, false)); +#line 3912 "runtime.in" + addFunc(ve, run::gen324, primPair(), "*", formal(primTransform(), "t", false, false), formal(primPair(), "z", false, false)); +#line 3917 "runtime.in" + addFunc(ve, run::gen325, primPath(), "*", formal(primTransform(), "t", false, false), formal(primPath(), "g", false, false)); +#line 3922 "runtime.in" + addFunc(ve, run::gen326, primPen(), "*", formal(primTransform(), "t", false, false), formal(primPen(), "p", false, false)); +#line 3927 "runtime.in" + addFunc(ve, run::gen327, primPicture(), "*", formal(primTransform(), "t", false, false), formal(primPicture(), "f", false, false)); +#line 3932 "runtime.in" + addFunc(ve, run::gen328, primPicture(), "*", formal(realArray2(), "t", false, false), formal(primPicture(), "f", false, false)); +#line 3937 "runtime.in" + addFunc(ve, run::gen329, primTransform(), "^", formal(primTransform(), "t", false, false), formal(primInt(), "n", false, false)); +#line 3984 "runtime.in" + addFunc(ve, run::gen337, primTransform(), "shift", formal(primTransform(), "t", false, false)); +#line 3989 "runtime.in" + addFunc(ve, run::gen338, primTransform(), "shiftless", formal(primTransform(), "t", false, false)); +#line 3994 "runtime.in" addFunc(ve, run::transformIdentity, primTransform(), "identity"); -#line 3983 "runtime.in" - addFunc(ve, run::gen339, primTransform(), "inverse", formal(primTransform(), "t", false, false)); -#line 3988 "runtime.in" - addFunc(ve, run::gen340, primTransform(), "shift", formal(primPair(), "z", false, false)); -#line 3993 "runtime.in" - addFunc(ve, run::gen341, primTransform(), "shift", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); -#line 3998 "runtime.in" - addFunc(ve, run::gen342, primTransform(), "xscale", formal(primReal(), "x", false, false)); -#line 4003 "runtime.in" - addFunc(ve, run::gen343, primTransform(), "yscale", formal(primReal(), "y", false, false)); -#line 4008 "runtime.in" - addFunc(ve, run::gen344, primTransform(), "scale", formal(primReal(), "x", false, false)); -#line 4013 "runtime.in" - addFunc(ve, run::gen345, primTransform(), "scale", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); -#line 4018 "runtime.in" - addFunc(ve, run::gen346, primTransform(), "slant", formal(primReal(), "s", false, false)); -#line 4023 "runtime.in" - addFunc(ve, run::gen347, primTransform(), "rotate", formal(primReal(), "angle", false, false), formal(primPair(), "z", true, false)); -#line 4028 "runtime.in" - addFunc(ve, run::gen348, primTransform(), "reflect", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false)); -#line 4051 "runtime.in" +#line 3999 "runtime.in" + addFunc(ve, run::gen340, primTransform(), "inverse", formal(primTransform(), "t", false, false)); +#line 4004 "runtime.in" + addFunc(ve, run::gen341, primTransform(), "shift", formal(primPair(), "z", false, false)); +#line 4009 "runtime.in" + addFunc(ve, run::gen342, primTransform(), "shift", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); +#line 4014 "runtime.in" + addFunc(ve, run::gen343, primTransform(), "xscale", formal(primReal(), "x", false, false)); +#line 4019 "runtime.in" + addFunc(ve, run::gen344, primTransform(), "yscale", formal(primReal(), "y", false, false)); +#line 4024 "runtime.in" + addFunc(ve, run::gen345, primTransform(), "scale", formal(primReal(), "x", false, false)); +#line 4029 "runtime.in" + addFunc(ve, run::gen346, primTransform(), "scale", formal(primReal(), "x", false, false), formal(primReal(), "y", false, false)); +#line 4034 "runtime.in" + addFunc(ve, run::gen347, primTransform(), "slant", formal(primReal(), "s", false, false)); +#line 4039 "runtime.in" + addFunc(ve, run::gen348, primTransform(), "rotate", formal(primReal(), "angle", false, false), formal(primPair(), "z", true, false)); +#line 4044 "runtime.in" + addFunc(ve, run::gen349, primTransform(), "reflect", formal(primPair(), "a", false, false), formal(primPair(), "b", false, false)); +#line 4067 "runtime.in" addFunc(ve, run::pairXPart, primReal(), "xpart", formal(primPair(), "z", false, false)); -#line 4056 "runtime.in" +#line 4072 "runtime.in" addFunc(ve, run::pairYPart, primReal(), "ypart", formal(primPair(), "z", false, false)); -#line 4061 "runtime.in" - addFunc(ve, run::gen354, primReal(), "length", formal(primPair(), "z", false, false)); -#line 4066 "runtime.in" - addFunc(ve, run::gen355, primReal(), "abs", formal(primPair(), "z", false, false)); -#line 4071 "runtime.in" - addFunc(ve, run::gen356, primPair(), "sqrt", formal(primPair(), "z", false, true)); -#line 4076 "runtime.in" - addFunc(ve, run::gen357, primReal(), "angle", formal(primPair(), "z", false, false), formal(primBoolean(), "warn", true, false)); -#line 4083 "runtime.in" - addFunc(ve, run::gen358, primReal(), "degrees", formal(primPair(), "z", false, false), formal(primBoolean(), "warn", true, false)); -#line 4090 "runtime.in" - addFunc(ve, run::gen359, primReal(), "radians", formal(primReal(), "degrees", false, false)); -#line 4096 "runtime.in" - addFunc(ve, run::gen360, primReal(), "degrees", formal(primReal(), "radians", false, false)); -#line 4102 "runtime.in" - addFunc(ve, run::gen361, primReal(), "Degrees", formal(primReal(), "radians", false, false)); -#line 4108 "runtime.in" - addFunc(ve, run::gen362, primReal(), "Sin", formal(primReal(), "deg", false, false)); -#line 4113 "runtime.in" - addFunc(ve, run::gen363, primReal(), "Cos", formal(primReal(), "deg", false, false)); +#line 4077 "runtime.in" + addFunc(ve, run::gen355, primReal(), "length", formal(primPair(), "z", false, false)); +#line 4082 "runtime.in" + addFunc(ve, run::gen356, primReal(), "abs", formal(primPair(), "z", false, false)); +#line 4087 "runtime.in" + addFunc(ve, run::gen357, primPair(), "sqrt", formal(primPair(), "z", false, true)); +#line 4092 "runtime.in" + addFunc(ve, run::gen358, primReal(), "angle", formal(primPair(), "z", false, false), formal(primBoolean(), "warn", true, false)); +#line 4099 "runtime.in" + addFunc(ve, run::gen359, primReal(), "degrees", formal(primPair(), "z", false, false), formal(primBoolean(), "warn", true, false)); +#line 4106 "runtime.in" + addFunc(ve, run::gen360, primReal(), "radians", formal(primReal(), "degrees", false, false)); +#line 4112 "runtime.in" + addFunc(ve, run::gen361, primReal(), "degrees", formal(primReal(), "radians", false, false)); #line 4118 "runtime.in" - addFunc(ve, run::gen364, primReal(), "Tan", formal(primReal(), "deg", false, false)); -#line 4123 "runtime.in" - addFunc(ve, run::gen365, primReal(), "aSin", formal(primReal(), "x", false, false)); -#line 4128 "runtime.in" - addFunc(ve, run::gen366, primReal(), "aCos", formal(primReal(), "x", false, false)); -#line 4133 "runtime.in" - addFunc(ve, run::gen367, primReal(), "aTan", formal(primReal(), "x", false, false)); -#line 4138 "runtime.in" - addFunc(ve, run::gen368, primPair(), "unit", formal(primPair(), "z", false, false)); -#line 4143 "runtime.in" - addFunc(ve, run::gen369, primPair(), "dir", formal(primReal(), "degrees", false, false)); -#line 4148 "runtime.in" - addFunc(ve, run::gen370, primPair(), "dir", formal(primPair(), "z", false, true)); -#line 4153 "runtime.in" - addFunc(ve, run::gen371, primPair(), "expi", formal(primReal(), "angle", false, false)); -#line 4158 "runtime.in" - addFunc(ve, run::gen372, primPair(), "exp", formal(primPair(), "z", false, true)); -#line 4163 "runtime.in" - addFunc(ve, run::gen373, primPair(), "log", formal(primPair(), "z", false, true)); -#line 4168 "runtime.in" - addFunc(ve, run::gen374, primPair(), "sin", formal(primPair(), "z", false, true)); -#line 4173 "runtime.in" - addFunc(ve, run::gen375, primPair(), "cos", formal(primPair(), "z", false, true)); -#line 4178 "runtime.in" - addFunc(ve, run::gen376, primPair(), "conj", formal(primPair(), "z", false, false)); -#line 4183 "runtime.in" - addFunc(ve, run::gen377, primPair(), "realmult", formal(primPair(), "z", false, false), formal(primPair(), "w", false, false)); -#line 4188 "runtime.in" - addFunc(ve, run::gen378, primTriple(), "realmult", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); -#line 4193 "runtime.in" - addFunc(ve, run::gen379, primReal(), "dot", formal(primPair(), "z", false, true), formal(primPair(), "w", false, true)); -#line 4213 "runtime.in" + addFunc(ve, run::gen362, primReal(), "Degrees", formal(primReal(), "radians", false, false)); +#line 4124 "runtime.in" + addFunc(ve, run::gen363, primReal(), "Sin", formal(primReal(), "deg", false, false)); +#line 4129 "runtime.in" + addFunc(ve, run::gen364, primReal(), "Cos", formal(primReal(), "deg", false, false)); +#line 4134 "runtime.in" + addFunc(ve, run::gen365, primReal(), "Tan", formal(primReal(), "deg", false, false)); +#line 4139 "runtime.in" + addFunc(ve, run::gen366, primReal(), "aSin", formal(primReal(), "x", false, false)); +#line 4144 "runtime.in" + addFunc(ve, run::gen367, primReal(), "aCos", formal(primReal(), "x", false, false)); +#line 4149 "runtime.in" + addFunc(ve, run::gen368, primReal(), "aTan", formal(primReal(), "x", false, false)); +#line 4154 "runtime.in" + addFunc(ve, run::gen369, primPair(), "unit", formal(primPair(), "z", false, false)); +#line 4159 "runtime.in" + addFunc(ve, run::gen370, primPair(), "dir", formal(primReal(), "degrees", false, false)); +#line 4164 "runtime.in" + addFunc(ve, run::gen371, primPair(), "dir", formal(primPair(), "z", false, true)); +#line 4169 "runtime.in" + addFunc(ve, run::gen372, primPair(), "expi", formal(primReal(), "angle", false, false)); +#line 4174 "runtime.in" + addFunc(ve, run::gen373, primPair(), "exp", formal(primPair(), "z", false, true)); +#line 4179 "runtime.in" + addFunc(ve, run::gen374, primPair(), "log", formal(primPair(), "z", false, true)); +#line 4184 "runtime.in" + addFunc(ve, run::gen375, primPair(), "sin", formal(primPair(), "z", false, true)); +#line 4189 "runtime.in" + addFunc(ve, run::gen376, primPair(), "cos", formal(primPair(), "z", false, true)); +#line 4194 "runtime.in" + addFunc(ve, run::gen377, primPair(), "conj", formal(primPair(), "z", false, false)); +#line 4199 "runtime.in" + addFunc(ve, run::gen378, primPair(), "realmult", formal(primPair(), "z", false, false), formal(primPair(), "w", false, false)); +#line 4204 "runtime.in" + addFunc(ve, run::gen379, primTriple(), "realmult", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); +#line 4209 "runtime.in" + addFunc(ve, run::gen380, primReal(), "dot", formal(primPair(), "z", false, true), formal(primPair(), "w", false, true)); +#line 4229 "runtime.in" addFunc(ve, run::tripleXPart, primReal(), "xpart", formal(primTriple(), "v", false, false)); -#line 4218 "runtime.in" +#line 4234 "runtime.in" addFunc(ve, run::tripleYPart, primReal(), "ypart", formal(primTriple(), "v", false, false)); -#line 4223 "runtime.in" +#line 4239 "runtime.in" addFunc(ve, run::tripleZPart, primReal(), "zpart", formal(primTriple(), "v", false, false)); -#line 4228 "runtime.in" - addFunc(ve, run::gen385, primTriple(), "*", formal(primReal(), "x", false, false), formal(primTriple(), "v", false, false)); -#line 4233 "runtime.in" - addFunc(ve, run::gen386, primTriple(), "*", formal(primTriple(), "v", false, false), formal(primReal(), "x", false, false)); -#line 4238 "runtime.in" - addFunc(ve, run::gen387, primTriple(), "/", formal(primTriple(), "v", false, false), formal(primReal(), "x", false, false)); -#line 4243 "runtime.in" - addFunc(ve, run::gen388, primReal(), "length", formal(primTriple(), "v", false, false)); -#line 4248 "runtime.in" - addFunc(ve, run::gen389, primReal(), "abs", formal(primTriple(), "v", false, false)); -#line 4253 "runtime.in" - addFunc(ve, run::gen390, primReal(), "polar", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4244 "runtime.in" + addFunc(ve, run::gen386, primTriple(), "*", formal(primReal(), "x", false, false), formal(primTriple(), "v", false, false)); +#line 4249 "runtime.in" + addFunc(ve, run::gen387, primTriple(), "*", formal(primTriple(), "v", false, false), formal(primReal(), "x", false, false)); +#line 4254 "runtime.in" + addFunc(ve, run::gen388, primTriple(), "/", formal(primTriple(), "v", false, false), formal(primReal(), "x", false, false)); #line 4259 "runtime.in" - addFunc(ve, run::gen391, primReal(), "azimuth", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); -#line 4265 "runtime.in" - addFunc(ve, run::gen392, primReal(), "colatitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); -#line 4271 "runtime.in" - addFunc(ve, run::gen393, primReal(), "latitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); -#line 4277 "runtime.in" - addFunc(ve, run::gen394, primReal(), "longitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); -#line 4284 "runtime.in" - addFunc(ve, run::gen395, primTriple(), "unit", formal(primTriple(), "v", false, false)); -#line 4289 "runtime.in" - addFunc(ve, run::gen396, primReal(), "dot", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); -#line 4294 "runtime.in" - addFunc(ve, run::gen397, primTriple(), "cross", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); -#line 4299 "runtime.in" - addFunc(ve, run::gen398, primTriple(), "expi", formal(primReal(), "polar", false, false), formal(primReal(), "azimuth", false, false)); -#line 4304 "runtime.in" - addFunc(ve, run::gen399, primTriple(), "dir", formal(primReal(), "colatitude", false, false), formal(primReal(), "longitude", false, false)); -#line 4309 "runtime.in" - addFunc(ve, run::gen400, primVoid(), "atupdate", formal(voidFunction(), "f", false, false)); -#line 4317 "runtime.in" - addFunc(ve, run::gen401, voidFunction(), "atupdate"); -#line 4322 "runtime.in" - addFunc(ve, run::gen402, primVoid(), "atexit", formal(voidFunction(), "f", false, false)); -#line 4327 "runtime.in" - addFunc(ve, run::gen403, voidFunction(), "atexit"); -#line 4332 "runtime.in" - addFunc(ve, run::gen404, primVoid(), "atbreakpoint", formal(breakpointFunction(), "f", false, false)); -#line 4337 "runtime.in" - addFunc(ve, run::gen405, primVoid(), "breakpoint", formal(primCode(), "s", true, false)); -#line 4342 "runtime.in" - addFunc(ve, run::gen406, primString() , "locatefile", formal(primString() , "file", false, false)); -#line 4347 "runtime.in" - addFunc(ve, run::gen407, primVoid(), "stop", formal(primString() , "file", false, false), formal(primInt(), "line", false, false), formal(primCode(), "s", true, false)); -#line 4355 "runtime.in" - addFunc(ve, run::gen408, primVoid(), "breakpoints"); -#line 4361 "runtime.in" - addFunc(ve, run::gen409, primVoid(), "clear", formal(primString() , "file", false, false), formal(primInt(), "line", false, false)); -#line 4367 "runtime.in" - addFunc(ve, run::gen410, primVoid(), "clear"); -#line 4372 "runtime.in" - addFunc(ve, run::gen411, primString() , "stripdirectory", formal(primString(), "s", false, false)); -#line 4378 "runtime.in" - addFunc(ve, run::gen412, primString() , "stripfile", formal(primString(), "s", false, false)); -#line 4384 "runtime.in" - addFunc(ve, run::gen413, primString() , "stripextension", formal(primString(), "s", false, false)); -#line 4390 "runtime.in" - addFunc(ve, run::gen414, primInt(), "convert", formal(primString() , "args", true, false), formal(primString() , "file", true, false), formal(primString() , "format", true, false)); -#line 4408 "runtime.in" - addFunc(ve, run::gen415, primInt(), "animate", formal(primString() , "args", true, false), formal(primString() , "file", true, false), formal(primString() , "format", true, false)); + addFunc(ve, run::gen389, primReal(), "length", formal(primTriple(), "v", false, false)); +#line 4264 "runtime.in" + addFunc(ve, run::gen390, primReal(), "abs", formal(primTriple(), "v", false, false)); +#line 4269 "runtime.in" + addFunc(ve, run::gen391, primReal(), "polar", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4275 "runtime.in" + addFunc(ve, run::gen392, primReal(), "azimuth", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4281 "runtime.in" + addFunc(ve, run::gen393, primReal(), "colatitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4287 "runtime.in" + addFunc(ve, run::gen394, primReal(), "latitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4293 "runtime.in" + addFunc(ve, run::gen395, primReal(), "longitude", formal(primTriple(), "v", false, false), formal(primBoolean(), "warn", true, false)); +#line 4300 "runtime.in" + addFunc(ve, run::gen396, primTriple(), "unit", formal(primTriple(), "v", false, false)); +#line 4305 "runtime.in" + addFunc(ve, run::gen397, primReal(), "dot", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); +#line 4310 "runtime.in" + addFunc(ve, run::gen398, primTriple(), "cross", formal(primTriple(), "u", false, false), formal(primTriple(), "v", false, false)); +#line 4315 "runtime.in" + addFunc(ve, run::gen399, primTriple(), "expi", formal(primReal(), "polar", false, false), formal(primReal(), "azimuth", false, false)); +#line 4320 "runtime.in" + addFunc(ve, run::gen400, primTriple(), "dir", formal(primReal(), "colatitude", false, false), formal(primReal(), "longitude", false, false)); +#line 4325 "runtime.in" + addFunc(ve, run::gen401, primVoid(), "atupdate", formal(voidFunction(), "f", false, false)); +#line 4333 "runtime.in" + addFunc(ve, run::gen402, voidFunction(), "atupdate"); +#line 4338 "runtime.in" + addFunc(ve, run::gen403, primVoid(), "atexit", formal(voidFunction(), "f", false, false)); +#line 4343 "runtime.in" + addFunc(ve, run::gen404, voidFunction(), "atexit"); +#line 4348 "runtime.in" + addFunc(ve, run::gen405, primVoid(), "atbreakpoint", formal(breakpointFunction(), "f", false, false)); +#line 4353 "runtime.in" + addFunc(ve, run::gen406, primVoid(), "breakpoint", formal(primCode(), "s", true, false)); +#line 4358 "runtime.in" + addFunc(ve, run::gen407, primString() , "locatefile", formal(primString() , "file", false, false)); +#line 4363 "runtime.in" + addFunc(ve, run::gen408, primVoid(), "stop", formal(primString() , "file", false, false), formal(primInt(), "line", false, false), formal(primCode(), "s", true, false)); +#line 4371 "runtime.in" + addFunc(ve, run::gen409, primVoid(), "breakpoints"); +#line 4377 "runtime.in" + addFunc(ve, run::gen410, primVoid(), "clear", formal(primString() , "file", false, false), formal(primInt(), "line", false, false)); +#line 4383 "runtime.in" + addFunc(ve, run::gen411, primVoid(), "clear"); +#line 4388 "runtime.in" + addFunc(ve, run::gen412, primString() , "stripdirectory", formal(primString(), "s", false, false)); +#line 4394 "runtime.in" + addFunc(ve, run::gen413, primString() , "stripfile", formal(primString(), "s", false, false)); +#line 4400 "runtime.in" + addFunc(ve, run::gen414, primString() , "stripextension", formal(primString(), "s", false, false)); +#line 4406 "runtime.in" + addFunc(ve, run::gen415, primInt(), "convert", formal(primString() , "args", true, false), formal(primString() , "file", true, false), formal(primString() , "format", true, false)); #line 4424 "runtime.in" - addFunc(ve, run::gen416, primInt(), "delete", formal(primString(), "s", false, false)); -#line 4434 "runtime.in" - addFunc(ve, run::gen417, primInt(), "rename", formal(primString(), "from", false, false), formal(primString(), "to", false, false)); -#line 4733 "runtime.in" - addFunc(ve, run::gen448, IntArray(), "complement", formal(IntArray(), "a", false, false), formal(primInt(), "n", false, false)); -#line 4765 "runtime.in" - addFunc(ve, run::gen450, IntArray(), "sequence", formal(primInt(), "n", false, false)); -#line 4798 "runtime.in" - addFunc(ve, run::gen453, primBoolean(), "all", formal(boolArray(), "a", false, false)); -#line 4807 "runtime.in" - addFunc(ve, run::gen454, boolArray(), "!", formal(boolArray(), "a", false, false)); -#line 4816 "runtime.in" - addFunc(ve, run::gen455, primInt(), "sum", formal(boolArray(), "a", false, false)); -#line 4979 "runtime.in" - addFunc(ve, run::gen462, primInt(), "find", formal(boolArray(), "a", false, false), formal(primInt(), "n", true, false)); -#line 4999 "runtime.in" - addFunc(ve, run::gen463, primBoolean(), "==", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false)); -#line 5044 "runtime.in" - addFunc(ve, run::gen465, realArray2(), "identity", formal(primInt(), "n", false, false)); -#line 5067 "runtime.in" - addFunc(ve, run::gen467, realArray2(), "inverse", formal(realArray2(), "a", false, false)); -#line 5159 "runtime.in" - addFunc(ve, run::gen468, realArray(), "solve", formal(realArray2(), "a", false, false), formal(realArray(), "b", false, false), formal(primBoolean(), "warn", true, false)); -#line 5210 "runtime.in" - addFunc(ve, run::gen469, realArray2(), "solve", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false), formal(primBoolean(), "warn", true, false)); -#line 5274 "runtime.in" - addFunc(ve, run::gen470, primReal(), "determinant", formal(realArray2(), "a", false, false)); + addFunc(ve, run::gen416, primInt(), "animate", formal(primString() , "args", true, false), formal(primString() , "file", true, false), formal(primString() , "format", true, false)); +#line 4440 "runtime.in" + addFunc(ve, run::gen417, primInt(), "delete", formal(primString(), "s", false, false)); +#line 4450 "runtime.in" + addFunc(ve, run::gen418, primInt(), "rename", formal(primString(), "from", false, false), formal(primString(), "to", false, false)); +#line 4749 "runtime.in" + addFunc(ve, run::gen449, IntArray(), "complement", formal(IntArray(), "a", false, false), formal(primInt(), "n", false, false)); +#line 4781 "runtime.in" + addFunc(ve, run::gen451, IntArray(), "sequence", formal(primInt(), "n", false, false)); +#line 4814 "runtime.in" + addFunc(ve, run::gen454, primBoolean(), "all", formal(boolArray(), "a", false, false)); +#line 4823 "runtime.in" + addFunc(ve, run::gen455, boolArray(), "!", formal(boolArray(), "a", false, false)); +#line 4832 "runtime.in" + addFunc(ve, run::gen456, primInt(), "sum", formal(boolArray(), "a", false, false)); +#line 4995 "runtime.in" + addFunc(ve, run::gen463, primInt(), "find", formal(boolArray(), "a", false, false), formal(primInt(), "n", true, false)); +#line 5015 "runtime.in" + addFunc(ve, run::gen464, primBoolean(), "==", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false)); +#line 5060 "runtime.in" + addFunc(ve, run::gen466, realArray2(), "identity", formal(primInt(), "n", false, false)); +#line 5083 "runtime.in" + addFunc(ve, run::gen468, realArray2(), "inverse", formal(realArray2(), "a", false, false)); +#line 5175 "runtime.in" + addFunc(ve, run::gen469, realArray(), "solve", formal(realArray2(), "a", false, false), formal(realArray(), "b", false, false), formal(primBoolean(), "warn", true, false)); +#line 5226 "runtime.in" + addFunc(ve, run::gen470, realArray2(), "solve", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false), formal(primBoolean(), "warn", true, false)); #line 5290 "runtime.in" - addFunc(ve, run::gen471, realArray(), "*", formal(realArray2(), "a", false, false), formal(realArray(), "b", false, false)); -#line 5308 "runtime.in" - addFunc(ve, run::gen472, realArray2(), "*", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false)); -#line 5343 "runtime.in" - addFunc(ve, run::gen473, primTriple(), "*", formal(realArray2(), "t", false, false), formal(primTriple(), "v", false, false)); -#line 5348 "runtime.in" - addFunc(ve, run::gen474, primPair(), "project", formal(primTriple(), "v", false, false), formal(realArray2(), "t", false, false)); -#line 5373 "runtime.in" - addFunc(ve, run::gen475, primReal(), "dot", formal(realArray(), "a", false, false), formal(realArray(), "b", false, false)); -#line 5383 "runtime.in" - addFunc(ve, run::gen476, realArray(), "tridiagonal", formal(realArray(), "a", false, false), formal(realArray(), "b", false, false), formal(realArray(), "c", false, false), formal(realArray(), "f", false, false)); -#line 5487 "runtime.in" - addFunc(ve, run::gen477, primReal(), "newton", formal(primInt(), "iterations", true, false), formal(realRealFunction(), "f", false, false), formal(realRealFunction(), "fprime", false, false), formal(primReal(), "x", false, false), formal(primBoolean(), "verbose", true, false)); -#line 5534 "runtime.in" - addFunc(ve, run::gen478, primReal(), "newton", formal(primInt(), "iterations", true, false), formal(realRealFunction(), "f", false, false), formal(realRealFunction(), "fprime", false, false), formal(primReal(), "x1", false, false), formal(primReal(), "x2", false, false), formal(primBoolean(), "verbose", true, false)); -#line 5616 "runtime.in" - addFunc(ve, run::gen479, primReal(), "simpson", formal(realRealFunction(), "f", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "acc", true, false), formal(primReal(), "dxmax", true, false)); -#line 5658 "runtime.in" - addFunc(ve, run::gen481, IntArray2(), "triangulate", formal(pairArray(), "z", false, false)); -#line 5693 "runtime.in" - addFunc(ve, run::gen482, primBoolean(), "==", formal(primFile(), "a", false, false), formal(primFile(), "b", false, false)); -#line 5701 "runtime.in" - addFunc(ve, run::gen483, primBoolean(), "!=", formal(primFile(), "a", false, false), formal(primFile(), "b", false, false)); -#line 5711 "runtime.in" - addFunc(ve, run::gen485, primFile(), "input", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false), formal(primString() , "comment", true, false)); -#line 5719 "runtime.in" - addFunc(ve, run::gen486, primFile(), "output", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false), formal(primString() , "comment", true, false)); -#line 5731 "runtime.in" - addFunc(ve, run::gen487, primFile(), "xinput", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false)); -#line 5745 "runtime.in" - addFunc(ve, run::gen488, primFile(), "xoutput", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false)); -#line 5763 "runtime.in" - addFunc(ve, run::gen489, primFile(), "binput", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false)); -#line 5770 "runtime.in" - addFunc(ve, run::gen490, primFile(), "boutput", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false)); -#line 5780 "runtime.in" - addFunc(ve, run::gen491, primBoolean(), "eof", formal(primFile(), "file", false, false)); -#line 5785 "runtime.in" - addFunc(ve, run::gen492, primBoolean(), "eol", formal(primFile(), "file", false, false)); -#line 5790 "runtime.in" - addFunc(ve, run::gen493, primBoolean(), "error", formal(primFile(), "file", false, false)); -#line 5795 "runtime.in" - addFunc(ve, run::gen494, primVoid(), "clear", formal(primFile(), "file", false, false)); -#line 5800 "runtime.in" - addFunc(ve, run::gen495, primVoid(), "close", formal(primFile(), "file", false, false)); -#line 5805 "runtime.in" - addFunc(ve, run::gen496, primInt(), "precision", formal(primFile(), "file", true, false), formal(primInt(), "digits", true, false)); + addFunc(ve, run::gen471, primReal(), "determinant", formal(realArray2(), "a", false, false)); +#line 5306 "runtime.in" + addFunc(ve, run::gen472, realArray(), "*", formal(realArray2(), "a", false, false), formal(realArray(), "b", false, false)); +#line 5324 "runtime.in" + addFunc(ve, run::gen473, realArray2(), "*", formal(realArray2(), "a", false, false), formal(realArray2(), "b", false, false)); +#line 5359 "runtime.in" + addFunc(ve, run::gen474, primTriple(), "*", formal(realArray2(), "t", false, false), formal(primTriple(), "v", false, false)); +#line 5364 "runtime.in" + addFunc(ve, run::gen475, primPair(), "project", formal(primTriple(), "v", false, false), formal(realArray2(), "t", false, false)); +#line 5389 "runtime.in" + addFunc(ve, run::gen476, primReal(), "dot", formal(realArray(), "a", false, false), formal(realArray(), "b", false, false)); +#line 5399 "runtime.in" + addFunc(ve, run::gen477, realArray(), "tridiagonal", formal(realArray(), "a", false, false), formal(realArray(), "b", false, false), formal(realArray(), "c", false, false), formal(realArray(), "f", false, false)); +#line 5503 "runtime.in" + addFunc(ve, run::gen478, primReal(), "newton", formal(primInt(), "iterations", true, false), formal(realRealFunction(), "f", false, false), formal(realRealFunction(), "fprime", false, false), formal(primReal(), "x", false, false), formal(primBoolean(), "verbose", true, false)); +#line 5550 "runtime.in" + addFunc(ve, run::gen479, primReal(), "newton", formal(primInt(), "iterations", true, false), formal(realRealFunction(), "f", false, false), formal(realRealFunction(), "fprime", false, false), formal(primReal(), "x1", false, false), formal(primReal(), "x2", false, false), formal(primBoolean(), "verbose", true, false)); +#line 5632 "runtime.in" + addFunc(ve, run::gen480, primReal(), "simpson", formal(realRealFunction(), "f", false, false), formal(primReal(), "a", false, false), formal(primReal(), "b", false, false), formal(primReal(), "acc", true, false), formal(primReal(), "dxmax", true, false)); +#line 5674 "runtime.in" + addFunc(ve, run::gen482, IntArray2(), "triangulate", formal(pairArray(), "z", false, false)); +#line 5709 "runtime.in" + addFunc(ve, run::gen483, primBoolean(), "==", formal(primFile(), "a", false, false), formal(primFile(), "b", false, false)); +#line 5717 "runtime.in" + addFunc(ve, run::gen484, primBoolean(), "!=", formal(primFile(), "a", false, false), formal(primFile(), "b", false, false)); +#line 5727 "runtime.in" + addFunc(ve, run::gen486, primFile(), "input", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false), formal(primString() , "comment", true, false)); +#line 5735 "runtime.in" + addFunc(ve, run::gen487, primFile(), "output", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false), formal(primString() , "comment", true, false)); +#line 5747 "runtime.in" + addFunc(ve, run::gen488, primFile(), "xinput", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false)); +#line 5761 "runtime.in" + addFunc(ve, run::gen489, primFile(), "xoutput", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false)); +#line 5779 "runtime.in" + addFunc(ve, run::gen490, primFile(), "binput", formal(primString() , "name", false, false), formal(primBoolean(), "check", true, false)); +#line 5786 "runtime.in" + addFunc(ve, run::gen491, primFile(), "boutput", formal(primString() , "name", false, false), formal(primBoolean(), "update", true, false)); +#line 5796 "runtime.in" + addFunc(ve, run::gen492, primBoolean(), "eof", formal(primFile(), "file", false, false)); +#line 5801 "runtime.in" + addFunc(ve, run::gen493, primBoolean(), "eol", formal(primFile(), "file", false, false)); +#line 5806 "runtime.in" + addFunc(ve, run::gen494, primBoolean(), "error", formal(primFile(), "file", false, false)); #line 5811 "runtime.in" - addFunc(ve, run::gen497, primVoid(), "flush", formal(primFile(), "file", false, false)); + addFunc(ve, run::gen495, primVoid(), "clear", formal(primFile(), "file", false, false)); #line 5816 "runtime.in" - addFunc(ve, run::gen498, primString() , "getc", formal(primFile(), "file", false, false)); -#line 5825 "runtime.in" - addFunc(ve, run::gen499, primInt(), "tell", formal(primFile(), "file", false, false)); -#line 5830 "runtime.in" - addFunc(ve, run::gen500, primVoid(), "seek", formal(primFile(), "file", false, false), formal(primInt(), "pos", false, false)); -#line 5835 "runtime.in" - addFunc(ve, run::gen501, primVoid(), "seekeof", formal(primFile(), "file", false, false)); -#line 5840 "runtime.in" - addFunc(ve, run::gen502, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false)); -#line 5847 "runtime.in" - addFunc(ve, run::gen503, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false), formal(primInt(), "ny", false, false)); -#line 5853 "runtime.in" - addFunc(ve, run::gen504, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false), formal(primInt(), "ny", false, false), formal(primInt(), "nz", false, false)); -#line 5859 "runtime.in" - addFunc(ve, run::gen505, primFile(), "csv", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); -#line 5866 "runtime.in" - addFunc(ve, run::gen506, primFile(), "word", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); -#line 5873 "runtime.in" - addFunc(ve, run::gen507, primFile(), "line", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); -#line 5880 "runtime.in" - addFunc(ve, run::gen508, primFile(), "single", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); -#line 5888 "runtime.in" - addFunc(ve, run::gen509, primFile(), "single", formal(primFile(), "file", false, false), formal(primReal(), "x", false, false), formal(primBoolean(), "b", true, false)); + addFunc(ve, run::gen496, primVoid(), "close", formal(primFile(), "file", false, false)); +#line 5821 "runtime.in" + addFunc(ve, run::gen497, primInt(), "precision", formal(primFile(), "file", true, false), formal(primInt(), "digits", true, false)); +#line 5827 "runtime.in" + addFunc(ve, run::gen498, primVoid(), "flush", formal(primFile(), "file", false, false)); +#line 5832 "runtime.in" + addFunc(ve, run::gen499, primString() , "getc", formal(primFile(), "file", false, false)); +#line 5841 "runtime.in" + addFunc(ve, run::gen500, primInt(), "tell", formal(primFile(), "file", false, false)); +#line 5846 "runtime.in" + addFunc(ve, run::gen501, primVoid(), "seek", formal(primFile(), "file", false, false), formal(primInt(), "pos", false, false)); +#line 5851 "runtime.in" + addFunc(ve, run::gen502, primVoid(), "seekeof", formal(primFile(), "file", false, false)); +#line 5856 "runtime.in" + addFunc(ve, run::gen503, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false)); +#line 5863 "runtime.in" + addFunc(ve, run::gen504, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false), formal(primInt(), "ny", false, false)); +#line 5869 "runtime.in" + addFunc(ve, run::gen505, primFile(), "dimension", formal(primFile(), "file", false, false), formal(primInt(), "nx", false, false), formal(primInt(), "ny", false, false), formal(primInt(), "nz", false, false)); +#line 5875 "runtime.in" + addFunc(ve, run::gen506, primFile(), "csv", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); +#line 5882 "runtime.in" + addFunc(ve, run::gen507, primFile(), "word", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); +#line 5889 "runtime.in" + addFunc(ve, run::gen508, primFile(), "line", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); #line 5896 "runtime.in" - addFunc(ve, run::gen510, primFile(), "single", formal(primFile(), "file", false, false), formal(primInt(), "x", false, false), formal(primBoolean(), "b", true, false)); + addFunc(ve, run::gen509, primFile(), "single", formal(primFile(), "file", false, false), formal(primBoolean(), "b", true, false)); #line 5904 "runtime.in" - addFunc(ve, run::gen511, primFile(), "read1", formal(primFile(), "file", false, false)); -#line 5911 "runtime.in" - addFunc(ve, run::gen512, primFile(), "read2", formal(primFile(), "file", false, false)); -#line 5918 "runtime.in" - addFunc(ve, run::gen513, primFile(), "read3", formal(primFile(), "file", false, false)); -#line 5925 "runtime.in" - addFunc(ve, run::gen514, stringArray(), "history", formal(primString() , "name", false, false), formal(primInt(), "n", true, false)); -#line 5958 "runtime.in" - addFunc(ve, run::gen515, stringArray(), "history", formal(primInt(), "n", true, false)); -#line 5969 "runtime.in" - addFunc(ve, run::gen516, primString() , "readline", formal(primString() , "prompt", true, false), formal(primString() , "name", true, false), formal(primBoolean(), "tabcompletion", true, false)); -#line 6013 "runtime.in" - addFunc(ve, run::gen517, primVoid(), "saveline", formal(primString() , "name", false, false), formal(primString() , "value", false, false), formal(primBoolean(), "store", true, false)); -#line 6043 "runtime.in" - addFunc(ve, run::gen518, primVoid(), "generate_random_backtrace"); -#line 6052 "runtime.in" - addFunc(ve, run::gen519, primVoid(), "print_random_addresses", formal(primInt(), "n", true, false)); + addFunc(ve, run::gen510, primFile(), "single", formal(primFile(), "file", false, false), formal(primReal(), "x", false, false), formal(primBoolean(), "b", true, false)); +#line 5912 "runtime.in" + addFunc(ve, run::gen511, primFile(), "single", formal(primFile(), "file", false, false), formal(primInt(), "x", false, false), formal(primBoolean(), "b", true, false)); +#line 5920 "runtime.in" + addFunc(ve, run::gen512, primFile(), "read1", formal(primFile(), "file", false, false)); +#line 5927 "runtime.in" + addFunc(ve, run::gen513, primFile(), "read2", formal(primFile(), "file", false, false)); +#line 5934 "runtime.in" + addFunc(ve, run::gen514, primFile(), "read3", formal(primFile(), "file", false, false)); +#line 5941 "runtime.in" + addFunc(ve, run::gen515, stringArray(), "history", formal(primString() , "name", false, false), formal(primInt(), "n", true, false)); +#line 5974 "runtime.in" + addFunc(ve, run::gen516, stringArray(), "history", formal(primInt(), "n", true, false)); +#line 5985 "runtime.in" + addFunc(ve, run::gen517, primString() , "readline", formal(primString() , "prompt", true, false), formal(primString() , "name", true, false), formal(primBoolean(), "tabcompletion", true, false)); +#line 6029 "runtime.in" + addFunc(ve, run::gen518, primVoid(), "saveline", formal(primString() , "name", false, false), formal(primString() , "value", false, false), formal(primBoolean(), "store", true, false)); +#line 6059 "runtime.in" + addFunc(ve, run::gen519, primVoid(), "generate_random_backtrace"); +#line 6068 "runtime.in" + addFunc(ve, run::gen520, primVoid(), "print_random_addresses", formal(primInt(), "n", true, false)); } } // namespace trans |