Changeset 775 for proto/parabix2


Ignore:
Timestamp:
Dec 3, 2010, 4:53:55 PM (9 years ago)
Author:
cameron
Message:

Nested version.

Location:
proto/parabix2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2_compilable.py

    r707 r775  
    1212
    1313#import bitutil
     14
     15
    1416
    1517def main(u8data):
  • proto/parabix2/parabix2_pablo.py

    r757 r775  
    221221        u8.error = 0
    222222        FFFE_FFFF = 0
    223 
     223        u8anyscope = 0
    224224        if bit[0]:
    225225                u8.prefix = (bit[0] & bit[1]);
     
    235235                temp71 = (u8.prefix4 & temp70);
    236236                u8.badprefix = (temp68 | temp71);
    237                 xE0 = (u8.prefix3 &~ temp36);
    238                 xED = (u8.prefix3 & temp20);
    239                 xF0 = (u8.prefix4 &~ temp36);
    240                 temp72 = (temp4 &~ temp13);
    241                 xF4 = (u8.prefix4 & temp72);
    242                 u8.xA0_xBF = (u8.suffix & bit[2]);
    243                 u8.x80_x9F = (u8.suffix &~ bit[2]);
    244                 u8.x90_xBF = (u8.suffix & temp49);
    245                 u8.x80_x8F = (u8.suffix &~ temp49);
    246                 xEF = (u8.prefix3 & temp23);
    247                 temp73 = (u8.suffix & temp7);
    248                 u8.xBF = (temp73 & temp23);
    249                 u8.xBE = (temp73 & temp15);
    250                 u8.xE0_scope = bitutil.Advance(xE0);
    251                 u8.xED_scope = bitutil.Advance(xED);
    252                 u8.xF0_scope = bitutil.Advance(xF0);
    253                 u8.xF4_scope = bitutil.Advance(xF4);
    254                 u8.xEF_scope = bitutil.Advance(xEF);
     237                u8.error = u8.badprefix
    255238                u8.scope22 = bitutil.Advance(u8.prefix2)
    256                 u8.scope32 = bitutil.Advance(u8.prefix3)
    257                 u8.scope33 = bitutil.Advance(u8.scope32)
    258                 u8.scope42 = bitutil.Advance(u8.prefix4)
    259                 u8.scope43 = bitutil.Advance(u8.scope42)
    260                 u8.scope44 = bitutil.Advance(u8.scope43)
    261 
    262                 u8lastscope = u8.scope22 | u8.scope33 | u8.scope44
    263                 u8anyscope = u8lastscope | u8.scope32 | u8.scope42 | u8.scope43
     239                u8anyscope = u8.scope22
     240                if u8.prefix3 | u8.prefix4:
     241                        xE0 = (u8.prefix3 &~ temp36);
     242                        xED = (u8.prefix3 & temp20);
     243                        xF0 = (u8.prefix4 &~ temp36);
     244                        temp72 = (temp4 &~ temp13);
     245                        xF4 = (u8.prefix4 & temp72);
     246                        u8.xA0_xBF = (u8.suffix & bit[2]);
     247                        u8.x80_x9F = (u8.suffix &~ bit[2]);
     248                        u8.x90_xBF = (u8.suffix & temp49);
     249                        u8.x80_x8F = (u8.suffix &~ temp49);
     250                        xEF = (u8.prefix3 & temp23);
     251                        temp73 = (u8.suffix & temp7);
     252                        u8.xBF = (temp73 & temp23);
     253                        u8.xBE = (temp73 & temp15);
     254                        u8.xE0_scope = bitutil.Advance(xE0);
     255                        u8.xED_scope = bitutil.Advance(xED);
     256                        u8.xF0_scope = bitutil.Advance(xF0);
     257                        u8.xF4_scope = bitutil.Advance(xF4);
     258                        u8.xEF_scope = bitutil.Advance(xEF);
     259                        u8.scope32 = bitutil.Advance(u8.prefix3)
     260                        u8.scope33 = bitutil.Advance(u8.scope32)
     261                        u8.scope42 = bitutil.Advance(u8.prefix4)
     262                        u8.scope43 = bitutil.Advance(u8.scope42)
     263                        u8.scope44 = bitutil.Advance(u8.scope43)
     264
     265                        u8lastscope = u8.scope22 | u8.scope33 | u8.scope44
     266                        u8anyscope = u8lastscope | u8.scope32 | u8.scope42 | u8.scope43
    264267               
    265                 u8error1 = u8.xE0_scope & u8.x80_x9F
    266                 u8error2 = u8.xED_scope & u8.xA0_xBF
    267                 u8error3 = u8.xF0_scope & u8.x80_x8F
    268                 u8error4 = u8.xF4_scope & u8.x90_xBF
    269        
    270                 u8mismatch = u8anyscope ^ u8.suffix
    271 
    272                 u8.error = u8.badprefix | u8error1 | u8error2 | u8error3 | u8error4 | u8mismatch
    273 
    274                 EF_BF_pending = bitutil.Advance(u8.xEF_scope & u8.xBF)
    275 
    276                 FFFE_FFFF = (EF_BF_pending & (u8.xBE | u8.xBF))
     268                        u8error1 = u8.xE0_scope & u8.x80_x9F
     269                        u8error2 = u8.xED_scope & u8.xA0_xBF
     270                        u8error3 = u8.xF0_scope & u8.x80_x8F
     271                        u8error4 = u8.xF4_scope & u8.x90_xBF
     272       
     273                        u8.error |= u8error1 | u8error2 | u8error3 | u8error4
     274
     275                        EF_BF_pending = bitutil.Advance(u8.xEF_scope & u8.xBF)
     276
     277                        FFFE_FFFF = (EF_BF_pending & (u8.xBE | u8.xBF))
     278        u8mismatch = u8anyscope ^ u8.suffix
     279        u8.error |= u8mismatch
     280
    277281
    278282        xmlchar_error |= FFFE_FFFF
  • proto/parabix2/src/xmlwf.c

    r722 r775  
    55#include <sys/stat.h>
    66#include "../lib/lib_simd.h"
    7 #include "../lib/block_carry.h"
    8 
    9        
     7
    108#define BLOCK_SIZE 128
    119#define BUFFER_SIZE (BLOCK_SIZE * 26)
     
    1513typedef SIMD_type BytePack;
    1614typedef SIMD_type BitBlock;
     15
     16
     17#include "../lib/carryQ.h"
     18
     19
     20       
    1721
    1822#include "xmldecl.h"
     
    274278void do_process(FILE *infile, FILE *outfile) {
    275279
    276   BitBlock temp40;
    277 BitBlock temp41;
    278 BitBlock temp42;
    279 BitBlock temp43;
    280 BitBlock temp44;
    281 BitBlock temp45;
    282 BitBlock temp46;
    283 BitBlock temp47;
    284 BitBlock temp48;
    285 BitBlock temp49;
    286 BitBlock strct_refs__GenRefs_;
    287 BitBlock strct_u8__scope43_;
    288 BitBlock tag_marks;
    289 BitBlock PI_namestarts;
    290 BitBlock strct_u8__xBE_;
    291 BitBlock strct_lex__SQuote_;
    292 BitBlock Temp183;
    293 BitBlock Temp185;
    294 BitBlock Temp188;
    295 BitBlock strct_lex__WS_;
    296 BitBlock Temp211;
    297 BitBlock Temp214;
    298 BitBlock array_bit__2_;
    299 BitBlock Temp216;
    300 BitBlock Temp217;
    301 BitBlock strct_lex__PI_end_;
    302 BitBlock Temp126;
    303 BitBlock strct_lex__NameScan_;
    304 BitBlock CtCDPI_Cursor_1;
    305 BitBlock PI_Cursor;
    306 BitBlock EOF_mask = simd_const_1(1);
    307 BitBlock ParseError;
    308 BitBlock DQuoteAttVal;
    309 BitBlock AttNameStarts;
    310 BitBlock strct_lex__Hex_;
    311 BitBlock strct_lex__LAngle_;
    312 BitBlock strct_lex__Exclam_;
    313 BitBlock Temp135;
    314 BitBlock AttRef;
    315 BitBlock Ct_errors;
    316 BitBlock strct_lex__QMark_scope_;
    317 BitBlock strct_lex__Hyphen_scope_;
    318 BitBlock Temp138;
    319 BitBlock AttListDelim;
    320 BitBlock temp28;
    321 BitBlock temp29;
    322 BitBlock Temp249;
    323 BitBlock Temp248;
    324 BitBlock temp22;
    325 BitBlock temp23;
    326 BitBlock temp20;
    327 BitBlock temp21;
    328 BitBlock temp26;
    329 BitBlock temp27;
    330 BitBlock temp24;
    331 BitBlock temp25;
    332 BitBlock strct_lex__RBracket_;
    333 BitBlock EndTagSeconds;
    334 BitBlock strct_u8__x80_x8F_;
    335 BitBlock strct_u8__xA0_xBF_;
    336 BitBlock PI_starts;
    337 BitBlock strct_CT_callouts__PI_name_;
    338 BitBlock Temp232;
    339 BitBlock Temp230;
    340 BitBlock Temp236;
    341 BitBlock ParseError_10;
    342 BitBlock array_bit__0_;
    343 BitBlock strct_lex__RefStart_;
    344 BitBlock temp14;
    345 BitBlock temp32;
    346 BitBlock ParseError_8;
    347 BitBlock ParseError_9;
    348 BitBlock strct_u8__prefix4_;
    349 BitBlock ParseError_4;
    350 BitBlock ParseError_5;
    351 BitBlock ParseError_6;
    352 BitBlock ParseError_7;
    353 BitBlock ParseError_3;
    354 BitBlock DQuoteAttEnd;
    355 BitBlock Temp252;
    356 BitBlock STagEnds;
    357 BitBlock strct_CT_callouts__CtCDPI_mask_;
    358 BitBlock temp36;
    359 BitBlock AllZero = simd_const_1(0);
    360 BitBlock error1;
    361 BitBlock error2;
    362 BitBlock error3;
    363 BitBlock GenRef2;
    364 BitBlock array_bit__4_;
    365 BitBlock Temp382;
    366 BitBlock Temp383;
    367 BitBlock Temp380;
    368 BitBlock Temp381;
    369 BitBlock Temp386;
    370 BitBlock Temp387;
    371 BitBlock Temp384;
    372 BitBlock Temp385;
    373 BitBlock CD_ends;
    374 BitBlock Temp263;
    375 BitBlock CD_end_error;
    376 BitBlock strct_control__x00_x1F_;
    377 BitBlock AttValEnds;
    378 BitBlock GenRefEnds;
    379 BitBlock Ct_starts;
    380 BitBlock strct_callouts__AttVals_;
    381 BitBlock strct_u8__xED_scope_;
    382 BitBlock strct_lex__Hyphen_;
    383 BitBlock strct_u8__x90_xBF_;
    384 BitBlock strct_lex__LAngle_scope_;
    385 BitBlock Temp243;
    386 BitBlock strct_lex__Semicolon_;
    387 BitBlock Temp319;
    388 BitBlock Temp318;
    389 BitBlock Temp315;
    390 BitBlock xF0;
    391 BitBlock Temp317;
    392 BitBlock Temp316;
    393 BitBlock xF4;
    394 BitBlock Temp312;
    395 BitBlock qname_stream;
    396 BitBlock strct_u8__xEF_scope_;
    397 BitBlock EndTagEnds;
    398 BitBlock array_bit__7_;
    399 BitBlock Temp165;
    400 BitBlock CD_starts;
    401 BitBlock name_start_check;
    402 BitBlock strct_u8__scope33_;
    403 BitBlock strct_lex__Colon_;
    404 BitBlock strct_u8__prefix3_;
    405 BitBlock u8error1;
    406 BitBlock xmlchar_error;
    407 BitBlock u8error3;
    408 BitBlock u8error2;
    409 BitBlock u8error4;
    410 BitBlock strct_lex__Equals_;
    411 BitBlock u8mismatch;
    412 BitBlock AfterWS;
    413 BitBlock strct_lex__CD_end_;
    414 BitBlock Temp369;
    415 BitBlock CtCDPI_scan;
    416 BitBlock Temp361;
    417 BitBlock Temp363;
    418 BitBlock strct_callouts__EmptyTagMarks_;
    419 BitBlock namespace_sep;
    420 BitBlock strct_CT_callouts__error_;
    421 BitBlock strct_u8__x80_x9F_;
    422 BitBlock strct_u8__xF0_scope_;
    423 BitBlock HexRef4;
    424 BitBlock Misc_mask;
    425 BitBlock FFFE_FFFF;
    426 BitBlock HexRef3;
    427 BitBlock Temp325;
    428 BitBlock EqExpected;
    429 BitBlock temp71;
    430 BitBlock temp70;
    431 BitBlock temp73;
    432 BitBlock temp72;
    433 BitBlock Temp100;
    434 BitBlock Temp102;
    435 BitBlock Temp327;
    436 BitBlock array_bit__5_;
    437 BitBlock Temp106;
    438 BitBlock strct_u8__scope42_;
    439 BitBlock Temp328;
    440 BitBlock strct_u8__prefix_;
    441 BitBlock CD_Ct_Cursor;
    442 BitBlock Temp293;
    443 BitBlock AllOne = simd_const_1(1);
    444 BitBlock Temp296;
    445 BitBlock AttNameStart;
    446 BitBlock temp12;
    447 BitBlock Temp190;
    448 BitBlock strct_lex__x_;
    449 BitBlock Temp199;
    450 BitBlock Temp203;
    451 BitBlock strct_lex__Slash_;
    452 BitBlock xmlchar_error_2;
    453 BitBlock strct_u8__badprefix_;
    454 BitBlock Temp209;
    455 BitBlock ElemNameFollows;
    456 BitBlock Temp240;
    457 BitBlock u8lastscope;
    458 BitBlock strct_callouts__AttNames_;
    459 BitBlock Temp80;
    460 BitBlock strct_lex__PI_start_;
    461 BitBlock Temp175;
    462 BitBlock strct_lex__Hash_;
    463 BitBlock ncname_stream;
    464 BitBlock SQuoteScan;
    465 BitBlock Ct_Cursor;
    466 BitBlock temp11;
    467 BitBlock name_check;
    468 BitBlock strct_u8__error_;
    469 BitBlock strct_lex__ASCII_name_start_;
    470 BitBlock CD_end_scan;
    471 BitBlock DecRef3;
    472 BitBlock temp15;
    473 BitBlock temp59;
    474 BitBlock temp58;
    475 BitBlock temp57;
    476 BitBlock temp56;
    477 BitBlock temp55;
    478 BitBlock temp54;
    479 BitBlock temp53;
    480 BitBlock temp52;
    481 BitBlock temp51;
    482 BitBlock temp50;
    483 BitBlock SQuoteAttVal;
    484 BitBlock AttListEnd;
    485 BitBlock strct_lex__RBracket_scope_;
    486 BitBlock void_prefix_err;
    487 BitBlock strct_lex__DoubleHyphen_;
    488 BitBlock Temp345;
    489 BitBlock Temp229;
    490 BitBlock PI_ends;
    491 BitBlock array_bit__3_;
    492 BitBlock strct_u8__scope22_;
    493 BitBlock Temp222;
    494 BitBlock xED;
    495 BitBlock xEF;
    496 BitBlock Temp154;
    497 BitBlock LAngleFollow;
    498 BitBlock strct_lex__RAngle_;
    499 BitBlock namespace_error;
    500 BitBlock temp3;
    501 BitBlock temp2;
    502 BitBlock temp1;
    503 BitBlock temp7;
    504 BitBlock temp6;
    505 BitBlock temp5;
    506 BitBlock temp4;
    507 BitBlock temp9;
    508 BitBlock temp8;
    509 BitBlock EqToCheck;
    510 BitBlock Temp122;
    511 BitBlock CtCDPI_Cursor_0;
    512 BitBlock strct_u8__prefix2_;
    513 BitBlock ncname_err;
    514 BitBlock Temp125;
    515 BitBlock Temp128;
    516 BitBlock AttNameFollow;
    517 BitBlock temp39;
    518 BitBlock temp38;
    519 BitBlock strct_lex__QMark_;
    520 BitBlock EF_BF_pending;
    521 BitBlock temp31;
    522 BitBlock temp30;
    523 BitBlock temp33;
    524 BitBlock Temp257;
    525 BitBlock temp35;
    526 BitBlock strct_callouts__Tags_;
    527 BitBlock temp37;
    528 BitBlock name_stream;
    529 BitBlock NumRef2;
    530 BitBlock NumRef3;
    531 BitBlock strct_u8__xBF_;
    532 BitBlock SQuoteAttEnd;
    533 BitBlock Temp251;
    534 BitBlock Temp226;
    535 BitBlock Temp320;
    536 BitBlock Temp321;
    537 BitBlock Temp322;
    538 BitBlock Temp323;
    539 BitBlock Temp324;
    540 BitBlock HexRefEnds;
    541 BitBlock Temp326;
    542 BitBlock CD_Cursor;
    543 BitBlock array_bit__1_;
    544 BitBlock Temp349;
    545 BitBlock strct_u8__scope32_;
    546 BitBlock temp34;
    547 BitBlock Temp172;
    548 BitBlock PI_name_end;
    549 BitBlock strct_lex__Digit_;
    550 BitBlock Temp179;
    551 BitBlock array_bit__6_;
    552 BitBlock NameFollows;
    553 BitBlock ElemNamePositions;
    554 BitBlock Temp292;
    555 BitBlock u8anyscope;
    556 BitBlock Temp247;
    557 BitBlock local_part_err;
    558 BitBlock Temp246;
    559 BitBlock Temp245;
    560 BitBlock strct_callouts__ElemNames_;
    561 BitBlock AttValPos;
    562 BitBlock Temp244;
    563 BitBlock Temp379;
    564 BitBlock Temp378;
    565 BitBlock Temp377;
    566 BitBlock Temp376;
    567 BitBlock Temp86;
    568 BitBlock Temp374;
    569 BitBlock Temp373;
    570 BitBlock Temp372;
    571 BitBlock Temp371;
    572 BitBlock Temp242;
    573 BitBlock strct_lex__CtCDPI_start_;
    574 BitBlock Temp241;
    575 BitBlock strct_u8__xE0_scope_;
    576 BitBlock error_mask;
    577 BitBlock PI_end_scan;
    578 BitBlock AttValFollows;
    579 BitBlock AttNameFollows;
    580 BitBlock AttValEnd;
    581 BitBlock PI_name_ends;
    582 BitBlock strct_control__SP_;
    583 BitBlock Temp104;
    584 BitBlock Temp307;
    585 BitBlock strct_lex__LBracket_;
    586 BitBlock temp66;
    587 BitBlock temp67;
    588 BitBlock temp64;
    589 BitBlock temp65;
    590 BitBlock temp62;
    591 BitBlock temp63;
    592 BitBlock temp60;
    593 BitBlock temp61;
    594 BitBlock Temp113;
    595 BitBlock Temp110;
    596 BitBlock Temp117;
    597 BitBlock temp68;
    598 BitBlock temp69;
    599 BitBlock strct_refs__error_;
    600 BitBlock Temp288;
    601 BitBlock Ct_ends;
    602 BitBlock colon2_err;
    603 BitBlock strct_lex__ASCII_name_char_;
    604 BitBlock Temp285;
    605 BitBlock Temp284;
    606 BitBlock DecRefEnds;
    607 BitBlock Temp2;
    608 BitBlock Ref1;
    609 BitBlock Ref2;
    610 BitBlock local_part_start;
    611 BitBlock temp13;
    612 BitBlock Temp84;
    613 BitBlock Temp274;
    614 BitBlock temp10;
    615 BitBlock temp17;
    616 BitBlock temp16;
    617 BitBlock Temp270;
    618 BitBlock Temp271;
    619 BitBlock temp19;
    620 BitBlock temp18;
    621 BitBlock Temp375;
    622 BitBlock strct_lex__CtCD_start_;
    623 BitBlock strct_u8__xF4_scope_;
    624 BitBlock strct_lex__DQuote_;
    625 BitBlock Temp353;
    626 BitBlock name_start;
    627 BitBlock xE0;
    628 BitBlock strct_u8__suffix_;
    629 BitBlock CtCDPI_Cursor;
    630 BitBlock strct_u8__scope44_;
    631 BitBlock CtCDPI_starts;
    632 BitBlock Ct_end_scan;
    633 BitBlock Temp250;
    634 BitBlock Temp3;
    635 BitBlock DQuoteScan;
    636 BitBlock Temp1;
    637 BitBlock Temp5;
    638 BitBlock Temp4;
    639 BitBlock AttValFollow;
    640 BitBlock AttValStarts;
    641 CarryType carry42 = Carry0;
    642 CarryType CarryTemp196 = Carry0;
    643 CarryType carry24_i = Carry0;
    644 CarryType carry28 = Carry0;
    645 CarryType carry29 = Carry0;
    646 CarryType carry32 = Carry0;
    647 CarryType carry20 = Carry0;
    648 CarryType carry21 = Carry0;
    649 CarryType carry19_i = Carry0;
    650 CarryType carry23 = Carry0;
    651 CarryType carry24 = Carry0;
    652 CarryType carry25 = Carry0;
    653 CarryType carry26 = Carry0;
    654 CarryType carry27 = Carry0;
    655 CarryType carry_brw1_i = Carry0;
    656 CarryType carry18_i = Carry0;
    657 CarryType carry34_i = Carry0;
    658 CarryType carry20_i = Carry0;
    659 CarryType carry37 = Carry0;
    660 CarryType carry22_i = Carry0;
    661 CarryType carry15 = Carry0;
    662 CarryType carry14 = Carry0;
    663 CarryType carry17 = Carry0;
    664 CarryType carry16 = Carry0;
    665 CarryType carry11 = Carry0;
    666 CarryType carry10 = Carry0;
    667 CarryType carry13 = Carry0;
    668 CarryType carry12 = Carry0;
    669 CarryType carry38_i = Carry0;
    670 CarryType carry19 = Carry0;
    671 CarryType carry18 = Carry0;
    672 CarryType carry51 = Carry0;
    673 CarryType carry50 = Carry0;
    674 CarryType carry53 = Carry0;
    675 CarryType carry36_i = Carry0;
    676 CarryType CarryTemp104 = Carry0;
    677 CarryType carry27_i = Carry0;
    678 CarryType carry29_i = Carry0;
    679 CarryType CarryTemp128 = Carry0;
    680 CarryType carry23_i = Carry0;
    681 CarryType carry38 = Carry0;
    682 CarryType carry30_i = Carry0;
    683 CarryType carry25_i = Carry0;
    684 CarryType carry48 = Carry0;
    685 CarryType carry49 = Carry0;
    686 CarryType carry46 = Carry0;
    687 CarryType carry47 = Carry0;
    688 CarryType carry44 = Carry0;
    689 CarryType carry45 = Carry0;
    690 CarryType carry40_i = Carry0;
    691 CarryType carry22 = Carry0;
    692 CarryType carry40 = Carry0;
    693 CarryType carry41 = Carry0;
    694 CarryType carry1 = Carry0;
    695 CarryType carry0 = Carry0;
    696 CarryType carry3 = Carry0;
    697 CarryType carry2 = Carry0;
    698 CarryType carry5 = Carry0;
    699 CarryType carry4 = Carry0;
    700 CarryType carry7 = Carry0;
    701 CarryType carry6 = Carry0;
    702 CarryType carry9 = Carry0;
    703 CarryType carry26_i = Carry0;
    704 CarryType carry43 = Carry0;
    705 CarryType carry39_i = Carry0;
    706 CarryType carry37_i = Carry0;
    707 CarryType carry21_i = Carry0;
    708 CarryType CarryTemp161 = Carry0;
    709 CarryType carry_brw3 = Carry0;
    710 CarryType carry_brw2 = Carry0;
    711 CarryType carry_brw1 = Carry0;
    712 CarryType carry_brw0 = Carry0;
    713 CarryType carry_brw7 = Carry0;
    714 CarryType carry_brw6 = Carry0;
    715 CarryType carry_brw5 = Carry0;
    716 CarryType carry_brw4 = Carry0;
    717 CarryType carry33 = Carry0;
    718 CarryType carry_brw0_i = Carry0;
    719 CarryType carry31 = Carry0;
    720 CarryType carry30 = Carry0;
    721 CarryType carry35_i = Carry0;
    722 CarryType carry36 = Carry0;
    723 CarryType carry35 = Carry0;
    724 CarryType carry34 = Carry0;
    725 CarryType carry39 = Carry0;
    726 CarryType carry28_i = Carry0;
    727 CarryType CarryTemp98 = Carry0;
    728 CarryType carry52 = Carry0;
    729 CarryType carry8 = Carry0;
     280  struct {
     281  BitBlock unibyte;
     282  BitBlock prefix;
     283  BitBlock prefix2;
     284  BitBlock prefix3;
     285  BitBlock prefix4;
     286  BitBlock suffix;
     287  BitBlock badprefix;
     288  BitBlock xE0;
     289  BitBlock xED;
     290  BitBlock xF0;
     291  BitBlock xF4;
     292  BitBlock xA0_xBF;
     293  BitBlock x80_x9F;
     294  BitBlock x90_xBF;
     295  BitBlock x80_x8F;
     296  BitBlock xEF;
     297  BitBlock xBF;
     298  BitBlock xBE;
     299  BitBlock scope22;
     300  BitBlock scope32;
     301  BitBlock scope33;
     302  BitBlock scope42;
     303  BitBlock scope43;
     304  BitBlock scope44;
     305  BitBlock xE0_scope;
     306  BitBlock xED_scope;
     307  BitBlock xF0_scope;
     308  BitBlock xF4_scope;
     309  BitBlock xEF_scope;
     310  BitBlock error;
     311} u8;
     312
     313struct {
     314  BitBlock x00_x1F;
     315  BitBlock CR;
     316  BitBlock LF;
     317  BitBlock HT;
     318  BitBlock SP;
     319  BitBlock CRLF;
     320} control;
     321
     322struct {
     323  BitBlock RefStart;
     324  BitBlock Semicolon;
     325  BitBlock Colon;
     326  BitBlock LAngle;
     327  BitBlock RAngle;
     328  BitBlock LBracket;
     329  BitBlock RBracket;
     330  BitBlock Exclam;
     331  BitBlock QMark;
     332  BitBlock Hyphen;
     333  BitBlock Equals;
     334  BitBlock SQuote;
     335  BitBlock DQuote;
     336  BitBlock Slash;
     337  BitBlock Hash;
     338  BitBlock x;
     339  BitBlock ASCII_name_start;
     340  BitBlock ASCII_name_char;
     341  BitBlock NameScan;
     342  BitBlock Digit;
     343  BitBlock Hex;
     344  BitBlock WS;
     345  BitBlock PI_start;
     346  BitBlock CtCD_start;
     347  BitBlock EndTag_start;
     348  BitBlock CD_end;
     349  BitBlock DoubleHyphen;
     350  BitBlock PI_end;
     351  BitBlock LAngle_scope;
     352  BitBlock Hyphen_scope;
     353  BitBlock QMark_scope;
     354  BitBlock RBracket_scope;
     355  BitBlock CtCDPI_start;
     356} lex;
     357
     358struct {
     359  BitBlock CD_span;
     360  BitBlock Ct_span;
     361  BitBlock PI_mask;
     362  BitBlock PI_name;
     363  BitBlock CtCDPI_mask;
     364  BitBlock error;
     365} cT_callouts;
     366
     367struct {
     368  BitBlock GenRefs;
     369  BitBlock DecRefs;
     370  BitBlock HexRefs;
     371  BitBlock delmask;
     372  BitBlock error;
     373} refs;
     374
     375struct {
     376  BitBlock ElemNames;
     377  BitBlock AttNames;
     378  BitBlock AttVals;
     379  BitBlock Tags;
     380  BitBlock EmptyTagMarks;
     381  BitBlock EmptyTagEnds;
     382  BitBlock EndTags;
     383  BitBlock error;
     384} callouts;
     385
     386  BitBlock temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10;
     387  BitBlock temp11, temp12, temp13, temp14, temp15, temp16, temp17, temp18;
     388  BitBlock temp19, temp20, temp21, temp22, temp23, temp24, temp25, temp26;
     389  BitBlock temp27, temp28, temp29, temp30, temp31, temp32, temp33, temp34;
     390  BitBlock temp35, temp36, temp37, temp38, temp39, temp40, temp41, temp42;
     391  BitBlock temp43, temp44, temp45, temp46, temp47, temp48, temp49, temp50;
     392  BitBlock temp51, temp52, temp53, temp54, temp55, temp56, temp57, temp58;
     393  BitBlock temp59, temp60, temp61, temp62, temp63, temp64, temp65, xmlchar_error;
     394  BitBlock FFFE_FFFF, u8anyscope, temp66, temp67, temp68, temp69, temp70, temp71;
     395  BitBlock xE0, xED, xF0, temp72, xF4, xEF, temp73, u8lastscope, u8error1;
     396  BitBlock u8error2, u8error3, u8error4, EF_BF_pending, u8mismatch, PI_starts;
     397  BitBlock PI_ends, Ct_starts, Ct_ends, CD_starts, CD_ends, CtCDPI_starts;
     398  BitBlock PI_namestarts, PI_name_ends, CtCDPI_scan, Ct_end_scan, CD_end_scan;
     399  BitBlock PI_end_scan, CtCDPI_Cursor, PI_Cursor, CD_Ct_Cursor, CD_Cursor;
     400  BitBlock Ct_Cursor, Ct_errors, PI_name_end, Misc_mask, DQuoteScan, SQuoteScan;
     401  BitBlock AttListDelim, LAngleFollow, ElemNamePositions, EndTagSeconds;
     402  BitBlock ElemNameFollows, ParseError, AttNameStarts, AttNameFollows, EqToCheck;
     403  BitBlock AttValStarts, AttValEnds, AttValFollows, AfterWS, AttListEnd;
     404  BitBlock AttNameStart, AttNameFollow, EqExpected, AttValPos, DQuoteAttVal;
     405  BitBlock SQuoteAttVal, DQuoteAttEnd, SQuoteAttEnd, AttValEnd, AttValFollow;
     406  BitBlock STagEnds, EndTagEnds, Ref2, GenRef2, DecRef3, HexRef4, Ref1, NumRef2;
     407  BitBlock NumRef3, HexRef3, GenRefEnds, DecRefEnds, HexRefEnds, error1, error2;
     408  BitBlock error3, CD_end_error, qname_stream, ncname_stream, name_stream;
     409  BitBlock name_start, name_start_check, name_check, name_cursor;
     410  BitBlock void_prefix_err, namespace_sep, local_part_start, local_part_err;
     411  BitBlock colon2_err, ncname_err, namespace_error, error_mask, tag_marks;
     412  BitBlock NameFollows, AttRef;
     413  CarryDeclare(carryQ, 62);
    730414
    731415
    732416  BytePack U8[8];
     417  BitBlock bit[8];
     418  BitBlock EOF_mask = simd_const_1(1);
    733419  int buf_pos = 0;
    734420  int block_pos = 0;
     
    743429  source = srcbuf;
    744430 
    745   EOF_mask = simd_const_1(1);
    746431  chars_read = fread((void *)srcbuf, 1, BUFFER_SIZE + OVERLAP_BUFSIZE, infile);
    747432  chars_avail = min(chars_read,BUFFER_SIZE);
     
    787472  }
    788473 
    789   CtCDPI_Cursor_0 = sisd_from_int(1);
    790 
     474 
     475  CtCDPI_Cursor = sisd_from_int(1);
    791476
    792477  while(1){
     
    809494       
    810495        s2p(U8[0], U8[1], U8[2], U8[3], U8[4], U8[5], U8[6], U8[7],
    811         array_bit__0_,array_bit__1_,array_bit__2_,array_bit__3_,array_bit__4_,array_bit__5_,array_bit__6_,array_bit__7_);
    812 
    813         array_bit__0_ = simd_and(array_bit__0_, EOF_mask);
    814         array_bit__1_ = simd_and(array_bit__1_, EOF_mask);
    815         array_bit__2_ = simd_and(array_bit__2_, EOF_mask);
    816         array_bit__3_ = simd_and(array_bit__3_, EOF_mask);
    817         array_bit__4_ = simd_and(array_bit__4_, EOF_mask);
    818         array_bit__5_ = simd_and(array_bit__5_, EOF_mask);
    819         array_bit__6_ = simd_and(array_bit__6_, EOF_mask);
    820         array_bit__7_ = simd_and(array_bit__7_, EOF_mask);
    821 
    822         temp1 = simd_or(array_bit__0_,array_bit__1_);
    823 temp2 = simd_andc(array_bit__2_,array_bit__3_);
    824 temp3 = simd_andc(temp2,temp1);
    825 temp4 = simd_andc(array_bit__5_,array_bit__4_);
    826 temp5 = simd_andc(array_bit__6_,array_bit__7_);
    827 temp6 = simd_and(temp4,temp5);
    828 strct_lex__RefStart_ = simd_and(temp3,temp6);
    829 temp7 = simd_and(array_bit__2_,array_bit__3_);
    830 temp8 = simd_andc(temp7,temp1);
    831 temp9 = simd_andc(array_bit__4_,array_bit__5_);
    832 temp10 = simd_and(array_bit__6_,array_bit__7_);
    833 temp11 = simd_and(temp9,temp10);
    834 strct_lex__Semicolon_ = simd_and(temp8,temp11);
    835 temp12 = simd_and(array_bit__4_,array_bit__5_);
    836 temp13 = simd_or(array_bit__6_,array_bit__7_);
    837 temp14 = simd_andc(temp12,temp13);
    838 strct_lex__LAngle_ = simd_and(temp8,temp14);
    839 temp15 = simd_and(temp12,temp5);
    840 strct_lex__RAngle_ = simd_and(temp8,temp15);
    841 temp16 = simd_andc(array_bit__1_,array_bit__0_);
    842 temp17 = simd_andc(array_bit__3_,array_bit__2_);
    843 temp18 = simd_and(temp16,temp17);
    844 strct_lex__LBracket_ = simd_and(temp18,temp11);
    845 temp19 = simd_andc(array_bit__7_,array_bit__6_);
    846 temp20 = simd_and(temp12,temp19);
    847 strct_lex__RBracket_ = simd_and(temp18,temp20);
    848 temp21 = simd_or(array_bit__4_,array_bit__5_);
    849 temp22 = simd_andc(temp19,temp21);
    850 strct_lex__Exclam_ = simd_and(temp3,temp22);
    851 temp23 = simd_and(temp12,temp10);
    852 strct_lex__QMark_ = simd_and(temp8,temp23);
    853 strct_lex__Hyphen_ = simd_and(temp3,temp20);
    854 strct_lex__Equals_ = simd_and(temp8,temp20);
    855 temp24 = simd_and(temp4,temp10);
    856 strct_lex__SQuote_ = simd_and(temp3,temp24);
    857 temp25 = simd_andc(temp5,temp21);
    858 strct_lex__DQuote_ = simd_and(temp3,temp25);
    859 strct_lex__Slash_ = simd_and(temp3,temp23);
    860 temp26 = simd_andc(temp10,temp21);
    861 strct_lex__Hash_ = simd_and(temp3,temp26);
    862 temp27 = simd_and(temp16,temp7);
    863 temp28 = simd_andc(temp9,temp13);
    864 strct_lex__x_ = simd_and(temp27,temp28);
    865 temp29 = simd_and(temp9,temp5);
    866 strct_lex__Colon_ = simd_and(temp8,temp29);
    867 temp30 = simd_and(temp18,temp23);
    868 temp31 = simd_or(temp30,strct_lex__Colon_);
    869 temp32 = simd_andc(temp16,array_bit__2_);
    870 temp33 = simd_or(array_bit__5_,temp10);
    871 temp34 = simd_and(array_bit__4_,temp33);
    872 temp35 = simd_andc(AllOne,temp34);
    873 temp36 = simd_or(temp21,temp13);
    874 Temp1 = simd_and(array_bit__3_,temp35);
    875 Temp2 = simd_andc(temp36,array_bit__3_);
    876 temp37 = simd_or(Temp1,Temp2);
    877 temp38 = simd_and(temp32,temp37);
    878 temp39 = simd_or(temp31,temp38);
    879 temp40 = simd_and(temp16,array_bit__2_);
    880 temp41 = simd_and(temp40,temp37);
    881 strct_lex__ASCII_name_start_ = simd_or(temp39,temp41);
    882 temp42 = simd_or(temp30,strct_lex__Hyphen_);
    883 temp43 = simd_and(temp3,temp15);
    884 temp44 = simd_or(temp42,temp43);
    885 temp45 = simd_andc(temp8,temp34);
    886 temp46 = simd_or(temp44,temp45);
    887 temp47 = simd_or(temp46,temp38);
    888 strct_lex__ASCII_name_char_ = simd_or(temp47,temp41);
    889 strct_lex__NameScan_ = simd_or(strct_lex__ASCII_name_char_,array_bit__0_);
    890 temp48 = simd_or(temp1,array_bit__2_);
    891 strct_control__x00_x1F_ = simd_andc(AllOne,temp48);
    892 temp49 = simd_or(array_bit__2_,array_bit__3_);
    893 temp50 = simd_or(temp1,temp49);
    894 temp51 = simd_and(temp9,temp19);
    895 strct_control__SP_ = simd_andc(temp3,temp36);
    896 temp52 = simd_or(temp20,temp29);
    897 temp53 = simd_or(temp52,temp51);
    898 temp54 = simd_andc(temp53,temp50);
    899 strct_lex__WS_ = simd_or(temp54,strct_control__SP_);
    900 temp55 = simd_or(array_bit__5_,array_bit__6_);
    901 temp56 = simd_and(array_bit__4_,temp55);
    902 strct_lex__Digit_ = simd_andc(temp8,temp56);
    903 temp57 = simd_andc(temp16,temp49);
    904 temp58 = simd_andc(temp57,array_bit__4_);
    905 temp59 = simd_andc(AllOne,temp10);
    906 Temp3 = simd_and(array_bit__5_,temp59);
    907 Temp4 = simd_andc(temp13,array_bit__5_);
    908 temp60 = simd_or(Temp3,Temp4);
    909 temp61 = simd_and(temp58,temp60);
    910 temp62 = simd_or(strct_lex__Digit_,temp61);
    911 temp63 = simd_and(temp16,temp2);
    912 temp64 = simd_andc(temp63,array_bit__4_);
    913 temp65 = simd_and(temp64,temp60);
    914 strct_lex__Hex_ = simd_or(temp62,temp65);
    915 Temp5 = simd_andc(strct_control__x00_x1F_,strct_lex__WS_);
    916 xmlchar_error_2 = simd_and(Temp5,EOF_mask);
    917 strct_u8__suffix_ = AllZero;
    918 strct_u8__error_ = AllZero;
    919 FFFE_FFFF = AllZero;
    920 
    921 if ((bitblock_has_bit(array_bit__0_))||(test_carry(CarryTemp98))) {
    922     CarryTemp98 = Carry0;
    923     strct_u8__prefix_ = simd_and(array_bit__0_,array_bit__1_);
    924     strct_u8__prefix2_ = simd_andc(strct_u8__prefix_,array_bit__2_);
    925     strct_u8__prefix3_ = simd_and(strct_u8__prefix_,temp2);
    926     strct_u8__prefix4_ = simd_and(strct_u8__prefix_,temp7);
    927     strct_u8__suffix_ = simd_andc(array_bit__0_,array_bit__1_);
    928     temp66 = simd_andc(strct_u8__prefix_,temp49);
    929     temp67 = simd_or(temp21,array_bit__6_);
    930     temp68 = simd_andc(temp66,temp67);
    931     temp69 = simd_and(array_bit__5_,temp13);
    932     temp70 = simd_or(array_bit__4_,temp69);
    933     temp71 = simd_and(strct_u8__prefix4_,temp70);
    934     strct_u8__badprefix_ = simd_or(temp68,temp71);
    935     xE0 = simd_andc(strct_u8__prefix3_,temp36);
    936     xED = simd_and(strct_u8__prefix3_,temp20);
    937     xF0 = simd_andc(strct_u8__prefix4_,temp36);
    938     temp72 = simd_andc(temp4,temp13);
    939     xF4 = simd_and(strct_u8__prefix4_,temp72);
    940     strct_u8__xA0_xBF_ = simd_and(strct_u8__suffix_,array_bit__2_);
    941     strct_u8__x80_x9F_ = simd_andc(strct_u8__suffix_,array_bit__2_);
    942     strct_u8__x90_xBF_ = simd_and(strct_u8__suffix_,temp49);
    943     strct_u8__x80_x8F_ = simd_andc(strct_u8__suffix_,temp49);
    944     xEF = simd_and(strct_u8__prefix3_,temp23);
    945     temp73 = simd_and(strct_u8__suffix_,temp7);
    946     strct_u8__xBF_ = simd_and(temp73,temp23);
    947     strct_u8__xBE_ = simd_and(temp73,temp15);
    948     advance_with_carry(xE0, carry0, strct_u8__xE0_scope_);
    949     advance_with_carry(xED, carry1, strct_u8__xED_scope_);
    950     advance_with_carry(xF0, carry2, strct_u8__xF0_scope_);
    951     advance_with_carry(xF4, carry3, strct_u8__xF4_scope_);
    952     advance_with_carry(xEF, carry4, strct_u8__xEF_scope_);
    953     advance_with_carry(strct_u8__prefix2_, carry5, strct_u8__scope22_);
    954     advance_with_carry(strct_u8__prefix3_, carry6, strct_u8__scope32_);
    955     advance_with_carry(strct_u8__scope32_, carry7, strct_u8__scope33_);
    956     advance_with_carry(strct_u8__prefix4_, carry8, strct_u8__scope42_);
    957     advance_with_carry(strct_u8__scope42_, carry9, strct_u8__scope43_);
    958     advance_with_carry(strct_u8__scope43_, carry10, strct_u8__scope44_);
    959     Temp80 = simd_or(strct_u8__scope22_,strct_u8__scope33_);
    960     u8lastscope = simd_or(Temp80,strct_u8__scope44_);
    961     Temp84 = simd_or(u8lastscope,strct_u8__scope32_);
    962     Temp86 = simd_or(Temp84,strct_u8__scope42_);
    963     u8anyscope = simd_or(Temp86,strct_u8__scope43_);
    964     u8error1 = simd_and(strct_u8__xE0_scope_,strct_u8__x80_x9F_);
    965     u8error2 = simd_and(strct_u8__xED_scope_,strct_u8__xA0_xBF_);
    966     u8error3 = simd_and(strct_u8__xF0_scope_,strct_u8__x80_x8F_);
    967     u8error4 = simd_and(strct_u8__xF4_scope_,strct_u8__x90_xBF_);
    968     u8mismatch = simd_xor(u8anyscope,strct_u8__suffix_);
    969     Temp100 = simd_or(strct_u8__badprefix_,u8error1);
    970     Temp102 = simd_or(Temp100,u8error2);
    971     Temp104 = simd_or(Temp102,u8error3);
    972     Temp106 = simd_or(Temp104,u8error4);
    973     strct_u8__error_ = simd_or(Temp106,u8mismatch);
    974     Temp110 = simd_and(strct_u8__xEF_scope_,strct_u8__xBF_);
    975     Temp113 = simd_and(strct_u8__xEF_scope_,strct_u8__xBF_);
    976     adc128(Temp110, Temp113, carry11, EF_BF_pending);
    977     Temp117 = simd_or(strct_u8__xBE_,strct_u8__xBF_);
    978     FFFE_FFFF = simd_and(EF_BF_pending,Temp117);
    979 }
    980 CarryTemp98 = carry_or(carry0, carry1);
    981 CarryTemp98 = carry_or(CarryTemp98, carry11);
    982 CarryTemp98 = carry_or(CarryTemp98, carry10);
    983 CarryTemp98 = carry_or(CarryTemp98, carry9);
    984 CarryTemp98 = carry_or(CarryTemp98, carry8);
    985 CarryTemp98 = carry_or(CarryTemp98, carry7);
    986 CarryTemp98 = carry_or(CarryTemp98, carry6);
    987 CarryTemp98 = carry_or(CarryTemp98, carry5);
    988 CarryTemp98 = carry_or(CarryTemp98, carry4);
    989 CarryTemp98 = carry_or(CarryTemp98, carry3);
    990 CarryTemp98 = carry_or(CarryTemp98, carry2);
    991 xmlchar_error = simd_or(xmlchar_error_2,FFFE_FFFF);
    992 advance_with_carry(strct_lex__LAngle_, carry12, strct_lex__LAngle_scope_);
    993 advance_with_carry(strct_lex__Hyphen_, carry13, strct_lex__Hyphen_scope_);
    994 advance_with_carry(strct_lex__QMark_, carry14, strct_lex__QMark_scope_);
    995 strct_lex__CD_end_ = AllZero;
    996 
    997 if ((bitblock_has_bit(strct_lex__RBracket_))||(test_carry(CarryTemp104))) {
    998     CarryTemp104 = Carry0;
    999     advance_with_carry(strct_lex__RBracket_, carry15, strct_lex__RBracket_scope_);
    1000     Temp122 = simd_and(strct_lex__RBracket_scope_,strct_lex__RBracket_);
    1001     Temp125 = simd_and(strct_lex__RBracket_scope_,strct_lex__RBracket_);
    1002     adc128(Temp122, Temp125, carry16, Temp126);
    1003     strct_lex__CD_end_ = simd_and(Temp126,strct_lex__RAngle_);
    1004 }
    1005 CarryTemp104 = carry_or(carry15, carry16);
    1006 strct_lex__PI_start_ = simd_and(strct_lex__LAngle_scope_,strct_lex__QMark_);
    1007 strct_lex__CtCD_start_ = simd_and(strct_lex__LAngle_scope_,strct_lex__Exclam_);
    1008 strct_lex__CtCDPI_start_ = simd_or(strct_lex__PI_start_,strct_lex__CtCD_start_);
    1009 strct_lex__DoubleHyphen_ = simd_and(strct_lex__Hyphen_scope_,strct_lex__Hyphen_);
    1010 strct_lex__PI_end_ = simd_and(strct_lex__QMark_scope_,strct_lex__RAngle_);
    1011 strct_CT_callouts__PI_name_ = AllZero;
    1012 PI_starts = AllZero;
    1013 PI_ends = AllZero;
    1014 Ct_starts = AllZero;
    1015 Ct_ends = AllZero;
    1016 CD_starts = AllZero;
    1017 CD_ends = AllZero;
    1018 CtCDPI_starts = AllZero;
    1019 PI_namestarts = AllZero;
    1020 PI_name_ends = AllZero;
    1021 CtCDPI_scan = simd_andc(EOF_mask,strct_lex__CtCDPI_start_);
    1022 Ct_end_scan = simd_andc(EOF_mask,strct_lex__DoubleHyphen_);
    1023 CD_end_scan = simd_andc(EOF_mask,strct_lex__CD_end_);
    1024 PI_end_scan = simd_andc(EOF_mask,strct_lex__PI_end_);
    1025 adc128(CtCDPI_Cursor_0, CtCDPI_scan, carry17, Temp128);
    1026 CtCDPI_Cursor_1 = simd_andc(Temp128,CtCDPI_scan);
    1027 CtCDPI_Cursor = simd_and(CtCDPI_Cursor_1,EOF_mask);
    1028 
    1029 while ((bitblock_has_bit(CtCDPI_Cursor))||(test_carry(CarryTemp128))) {
    1030     CarryTemp128 = Carry0;
    1031     CtCDPI_starts = simd_or(CtCDPI_starts,CtCDPI_Cursor);
    1032     PI_Cursor = simd_and(CtCDPI_Cursor,strct_lex__PI_start_);
    1033     Temp135 = simd_andc(CtCDPI_Cursor,PI_Cursor);
    1034     Temp138 = simd_andc(CtCDPI_Cursor,PI_Cursor);
    1035     adc128(Temp135, Temp138, carry18, CD_Ct_Cursor);
    1036     CD_Cursor = simd_and(CD_Ct_Cursor,strct_lex__LBracket_);
    1037     Ct_Cursor = simd_and(CD_Ct_Cursor,strct_lex__Hyphen_);
    1038     PI_starts = simd_or(PI_starts,PI_Cursor);
    1039     CD_starts = simd_or(CD_starts,CD_Cursor);
    1040     Ct_starts = simd_or(Ct_starts,Ct_Cursor);
    1041     advance_with_carry(Ct_Cursor, carry19, Ct_Cursor);
    1042     Temp154 = simd_andc(Ct_Cursor,strct_lex__Hyphen_);
    1043     Ct_errors = simd_or(Ct_errors,Temp154);
    1044     advance_with_carry(Ct_Cursor, carry20, Ct_Cursor);
    1045     Ct_end_scan = simd_or(Ct_end_scan,Ct_Cursor);
    1046     advance_with_carry(PI_Cursor, carry21, PI_Cursor);
    1047     PI_namestarts = simd_or(PI_namestarts,PI_Cursor);
    1048     adc128(PI_Cursor, strct_lex__NameScan_, carry22, Temp165);
    1049     PI_name_end = simd_andc(Temp165,strct_lex__NameScan_);
    1050     PI_name_ends = simd_or(PI_name_ends,PI_name_end);
    1051     sbb128(PI_name_end, PI_Cursor, carry_brw0, Temp172);
    1052     strct_CT_callouts__PI_name_ = simd_or(strct_CT_callouts__PI_name_,Temp172);
    1053     adc128(PI_name_end, PI_end_scan, carry23, Temp175);
    1054     PI_Cursor = simd_andc(Temp175,PI_end_scan);
    1055     adc128(CD_Cursor, CD_end_scan, carry24, Temp179);
    1056     CD_Cursor = simd_andc(Temp179,CD_end_scan);
    1057     adc128(Ct_Cursor, Ct_end_scan, carry25, Temp183);
    1058     Temp185 = simd_andc(Temp183,Ct_end_scan);
    1059     adc128(Ct_Cursor, Ct_end_scan, carry26, Temp188);
    1060     Temp190 = simd_andc(Temp188,Ct_end_scan);
    1061     adc128(Temp185, Temp190, carry27, Ct_Cursor);
    1062     PI_ends = simd_or(PI_ends,PI_Cursor);
    1063     CD_ends = simd_or(CD_ends,CD_Cursor);
    1064     Ct_ends = simd_or(Ct_ends,Ct_Cursor);
    1065     Temp199 = simd_or(PI_Cursor,CD_Cursor);
    1066     CtCDPI_Cursor = simd_or(Temp199,Ct_Cursor);
    1067     adc128(CtCDPI_Cursor, CtCDPI_scan, carry28, Temp203);
    1068     CtCDPI_Cursor = simd_andc(Temp203,CtCDPI_scan);
    1069     CtCDPI_Cursor = simd_and(CtCDPI_Cursor,EOF_mask);
    1070     Temp209 = simd_or(CD_ends,Ct_ends);
    1071     Temp211 = simd_or(Temp209,PI_ends);
    1072     Temp214 = simd_or(CD_ends,Ct_ends);
    1073     Temp216 = simd_or(Temp214,PI_ends);
    1074     adc128(Temp211, Temp216, carry29, Temp217);
    1075     sbb128(Temp217, CtCDPI_starts, carry_brw1, strct_CT_callouts__CtCDPI_mask_);
    1076     Temp222 = simd_andc(Ct_ends,strct_lex__RAngle_);
    1077     strct_CT_callouts__error_ = simd_or(Ct_errors,Temp222);
    1078     Temp226 = simd_andc(PI_name_ends,strct_lex__WS_);
    1079     Temp229 = simd_andc(PI_name_ends,strct_lex__WS_);
    1080     adc128(Temp226, Temp229, carry30, Temp230);
    1081     Temp232 = simd_andc(Temp230,strct_lex__PI_end_);
    1082     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp232);
    1083     Temp236 = simd_and(PI_namestarts,PI_name_ends);
    1084     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp236);
    1085     Temp240 = simd_andc(strct_CT_callouts__CtCDPI_mask_,EOF_mask);
    1086     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp240);
    1087     carry18_i = carry_or(carry18_i, carry18);
    1088     carry19_i = carry_or(carry19_i, carry19);
    1089     carry20_i = carry_or(carry20_i, carry20);
    1090     carry21_i = carry_or(carry21_i, carry21);
    1091     carry22_i = carry_or(carry22_i, carry22);
    1092     carry_brw0_i = carry_or(carry_brw0_i, carry_brw0);
    1093     carry23_i = carry_or(carry23_i, carry23);
    1094     carry24_i = carry_or(carry24_i, carry24);
    1095     carry25_i = carry_or(carry25_i, carry25);
    1096     carry26_i = carry_or(carry26_i, carry26);
    1097     carry27_i = carry_or(carry27_i, carry27);
    1098     carry28_i = carry_or(carry28_i, carry28);
    1099     carry29_i = carry_or(carry29_i, carry29);
    1100     carry_brw1_i = carry_or(carry_brw1_i, carry_brw1);
    1101     carry30_i = carry_or(carry30_i, carry30);
    1102     carry18 = Carry0;
    1103     carry19 = Carry0;
    1104     carry20 = Carry0;
    1105     carry21 = Carry0;
    1106     carry22 = Carry0;
    1107     carry_brw0 = Carry0;
    1108     carry23 = Carry0;
    1109     carry24 = Carry0;
    1110     carry25 = Carry0;
    1111     carry26 = Carry0;
    1112     carry27 = Carry0;
    1113     carry28 = Carry0;
    1114     carry29 = Carry0;
    1115     carry_brw1 = Carry0;
    1116     carry30 = Carry0;
    1117 }
    1118 carry30 = carry30_i;
    1119 carry_brw1 = carry_brw1_i;
    1120 carry29 = carry29_i;
    1121 carry28 = carry28_i;
    1122 carry27 = carry27_i;
    1123 carry26 = carry26_i;
    1124 carry25 = carry25_i;
    1125 carry24 = carry24_i;
    1126 carry23 = carry23_i;
    1127 carry_brw0 = carry_brw0_i;
    1128 carry22 = carry22_i;
    1129 carry21 = carry21_i;
    1130 carry20 = carry20_i;
    1131 carry19 = carry19_i;
    1132 carry18 = carry18_i;
    1133 carry30_i = Carry0;
    1134 carry_brw1_i = Carry0;
    1135 carry29_i = Carry0;
    1136 carry28_i = Carry0;
    1137 carry27_i = Carry0;
    1138 carry26_i = Carry0;
    1139 carry25_i = Carry0;
    1140 carry24_i = Carry0;
    1141 carry23_i = Carry0;
    1142 carry_brw0_i = Carry0;
    1143 carry22_i = Carry0;
    1144 carry21_i = Carry0;
    1145 carry20_i = Carry0;
    1146 carry19_i = Carry0;
    1147 carry18_i = Carry0;
    1148 CarryTemp128 = carry_or(carry18, carry19);
    1149 CarryTemp128 = carry_or(CarryTemp128, carry30);
    1150 CarryTemp128 = carry_or(CarryTemp128, carry_brw1);
    1151 CarryTemp128 = carry_or(CarryTemp128, carry29);
    1152 CarryTemp128 = carry_or(CarryTemp128, carry28);
    1153 CarryTemp128 = carry_or(CarryTemp128, carry27);
    1154 CarryTemp128 = carry_or(CarryTemp128, carry26);
    1155 CarryTemp128 = carry_or(CarryTemp128, carry25);
    1156 CarryTemp128 = carry_or(CarryTemp128, carry24);
    1157 CarryTemp128 = carry_or(CarryTemp128, carry23);
    1158 CarryTemp128 = carry_or(CarryTemp128, carry_brw0);
    1159 CarryTemp128 = carry_or(CarryTemp128, carry22);
    1160 CarryTemp128 = carry_or(CarryTemp128, carry21);
    1161 CarryTemp128 = carry_or(CarryTemp128, carry20);
    1162 Temp241 = simd_or(strct_lex__WS_,strct_lex__LAngle_);
    1163 Temp242 = simd_or(Ct_ends,PI_ends);
    1164 advance_with_carry(Temp242, carry31, Temp243);
    1165 Temp244 = simd_or(Ct_starts,PI_starts);
    1166 sbb128(Temp243, Temp244, carry_brw2, Temp245);
    1167 Temp246 = simd_or(Temp241,Temp245);
    1168 Temp247 = simd_or(Temp246,CtCDPI_starts);
    1169 Misc_mask = simd_and(Temp247,EOF_mask);
    1170 Temp248 = simd_or(strct_lex__DQuote_,strct_lex__LAngle_);
    1171 DQuoteScan = simd_andc(EOF_mask,Temp248);
    1172 Temp249 = simd_or(strct_lex__SQuote_,strct_lex__LAngle_);
    1173 SQuoteScan = simd_andc(EOF_mask,Temp249);
    1174 AttListDelim = simd_or(strct_lex__Slash_,strct_lex__RAngle_);
    1175 LAngleFollow = simd_andc(strct_lex__LAngle_scope_,strct_CT_callouts__CtCDPI_mask_);
    1176 ElemNamePositions = simd_andc(LAngleFollow,strct_lex__Slash_);
    1177 EndTagSeconds = simd_and(LAngleFollow,strct_lex__Slash_);
    1178 adc128(ElemNamePositions, strct_lex__NameScan_, carry32, Temp250);
    1179 ElemNameFollows = simd_andc(Temp250,strct_lex__NameScan_);
    1180 ParseError_3 = simd_and(ElemNamePositions,ElemNameFollows);
    1181 sbb128(ElemNameFollows, ElemNamePositions, carry_brw3, strct_callouts__ElemNames_);
    1182 AttNameStarts = AllZero;
    1183 AttNameFollows = AllZero;
    1184 EqToCheck = AllZero;
    1185 AttValStarts = AllZero;
    1186 AttValEnds = AllZero;
    1187 AttValFollows = AllZero;
    1188 adc128(ElemNameFollows, strct_lex__WS_, carry33, Temp251);
    1189 AfterWS = simd_andc(Temp251,strct_lex__WS_);
    1190 AttListEnd = simd_and(AfterWS,AttListDelim);
    1191 AttNameStart = simd_andc(AfterWS,AttListDelim);
    1192 Temp252 = simd_and(ElemNameFollows,AttNameStart);
    1193 ParseError_4 = simd_or(ParseError_3,Temp252);
    1194 
    1195 while ((bitblock_has_bit(AttNameStart))||(test_carry(CarryTemp161))) {
    1196     CarryTemp161 = Carry0;
    1197     AttNameStarts = simd_or(AttNameStarts,AttNameStart);
    1198     adc128(AttNameStart, strct_lex__NameScan_, carry34, Temp257);
    1199     AttNameFollow = simd_andc(Temp257,strct_lex__NameScan_);
    1200     AttNameFollows = simd_or(AttNameFollows,AttNameFollow);
    1201     adc128(AttNameFollow, strct_lex__WS_, carry35, Temp263);
    1202     EqExpected = simd_andc(Temp263,strct_lex__WS_);
    1203     EqToCheck = simd_or(EqToCheck,EqExpected);
    1204     Temp270 = simd_or(EqExpected,strct_lex__WS_);
    1205     adc128(EqExpected, Temp270, carry36, Temp271);
    1206     Temp274 = simd_or(EqExpected,strct_lex__WS_);
    1207     AttValPos = simd_andc(Temp271,Temp274);
    1208     AttValStarts = simd_or(AttValStarts,AttValPos);
    1209     DQuoteAttVal = simd_and(AttValPos,strct_lex__DQuote_);
    1210     SQuoteAttVal = simd_and(AttValPos,strct_lex__SQuote_);
    1211     Temp284 = simd_or(DQuoteAttVal,DQuoteScan);
    1212     adc128(DQuoteAttVal, Temp284, carry37, Temp285);
    1213     Temp288 = simd_or(DQuoteAttVal,DQuoteScan);
    1214     DQuoteAttEnd = simd_andc(Temp285,Temp288);
    1215     Temp292 = simd_or(SQuoteAttVal,SQuoteScan);
    1216     adc128(SQuoteAttVal, Temp292, carry38, Temp293);
    1217     Temp296 = simd_or(SQuoteAttVal,SQuoteScan);
    1218     SQuoteAttEnd = simd_andc(Temp293,Temp296);
    1219     AttValEnd = simd_or(DQuoteAttEnd,SQuoteAttEnd);
    1220     AttValEnds = simd_or(AttValEnds,AttValEnd);
    1221     advance_with_carry(AttValEnd, carry39, AttValFollow);
    1222     AttValFollows = simd_or(AttValFollows,AttValFollow);
    1223     adc128(AttValFollow, strct_lex__WS_, carry40, Temp307);
    1224     AfterWS = simd_andc(Temp307,strct_lex__WS_);
    1225     Temp312 = simd_and(AfterWS,AttListDelim);
    1226     AttListEnd = simd_or(AttListEnd,Temp312);
    1227     AttNameStart = simd_andc(AfterWS,AttListDelim);
    1228     carry34_i = carry_or(carry34_i, carry34);
    1229     carry35_i = carry_or(carry35_i, carry35);
    1230     carry36_i = carry_or(carry36_i, carry36);
    1231     carry37_i = carry_or(carry37_i, carry37);
    1232     carry38_i = carry_or(carry38_i, carry38);
    1233     carry39_i = carry_or(carry39_i, carry39);
    1234     carry40_i = carry_or(carry40_i, carry40);
    1235     carry34 = Carry0;
    1236     carry35 = Carry0;
    1237     carry36 = Carry0;
    1238     carry37 = Carry0;
    1239     carry38 = Carry0;
    1240     carry39 = Carry0;
    1241     carry40 = Carry0;
    1242 }
    1243 carry40 = carry40_i;
    1244 carry39 = carry39_i;
    1245 carry38 = carry38_i;
    1246 carry37 = carry37_i;
    1247 carry36 = carry36_i;
    1248 carry35 = carry35_i;
    1249 carry34 = carry34_i;
    1250 carry40_i = Carry0;
    1251 carry39_i = Carry0;
    1252 carry38_i = Carry0;
    1253 carry37_i = Carry0;
    1254 carry36_i = Carry0;
    1255 carry35_i = Carry0;
    1256 carry34_i = Carry0;
    1257 CarryTemp161 = carry_or(carry34, carry35);
    1258 CarryTemp161 = carry_or(CarryTemp161, carry40);
    1259 CarryTemp161 = carry_or(CarryTemp161, carry39);
    1260 CarryTemp161 = carry_or(CarryTemp161, carry38);
    1261 CarryTemp161 = carry_or(CarryTemp161, carry37);
    1262 CarryTemp161 = carry_or(CarryTemp161, carry36);
    1263 sbb128(AttNameFollows, AttNameStarts, carry_brw4, strct_callouts__AttNames_);
    1264 sbb128(AttValFollows, AttValStarts, carry_brw5, strct_callouts__AttVals_);
    1265 STagEnds = simd_and(AttListEnd,strct_lex__RAngle_);
    1266 Temp315 = simd_and(AttListEnd,strct_lex__Slash_);
    1267 advance_with_carry(Temp315, carry41, strct_callouts__EmptyTagMarks_);
    1268 Temp316 = simd_or(STagEnds,strct_callouts__EmptyTagMarks_);
    1269 sbb128(Temp316, ElemNamePositions, carry_brw6, strct_callouts__Tags_);
    1270 Temp317 = simd_and(AttValFollows,AttNameStarts);
    1271 ParseError_5 = simd_or(ParseError_4,Temp317);
    1272 Temp318 = simd_and(AttNameStarts,AttNameFollows);
    1273 ParseError_6 = simd_or(ParseError_5,Temp318);
    1274 Temp319 = simd_andc(EqToCheck,strct_lex__Equals_);
    1275 ParseError_7 = simd_or(ParseError_6,Temp319);
    1276 Temp320 = simd_or(strct_lex__DQuote_,strct_lex__SQuote_);
    1277 Temp321 = simd_andc(AttValStarts,Temp320);
    1278 ParseError_8 = simd_or(ParseError_7,Temp321);
    1279 Temp322 = simd_andc(AttValEnds,Temp320);
    1280 ParseError_9 = simd_or(ParseError_8,Temp322);
    1281 Temp323 = simd_andc(strct_callouts__EmptyTagMarks_,strct_lex__RAngle_);
    1282 ParseError_10 = simd_or(ParseError_9,Temp323);
    1283 Temp324 = simd_or(EndTagSeconds,strct_lex__NameScan_);
    1284 adc128(EndTagSeconds, Temp324, carry42, Temp325);
    1285 Temp326 = simd_andc(Temp325,Temp324);
    1286 adc128(Temp326, strct_lex__WS_, carry43, Temp327);
    1287 EndTagEnds = simd_andc(Temp327,strct_lex__WS_);
    1288 Temp328 = simd_andc(EndTagEnds,strct_lex__RAngle_);
    1289 ParseError = simd_or(ParseError_10,Temp328);
    1290 strct_refs__GenRefs_ = AllZero;
    1291 strct_refs__error_ = AllZero;
    1292 Ref2 = AllZero;
    1293 GenRef2 = AllZero;
    1294 DecRef3 = AllZero;
    1295 HexRef4 = AllZero;
    1296 Ref1 = simd_andc(strct_lex__RefStart_,strct_CT_callouts__CtCDPI_mask_);
    1297 
    1298 if ((bitblock_has_bit(Ref1))||(test_carry(CarryTemp196))) {
    1299     CarryTemp196 = Carry0;
    1300     advance_with_carry(Ref1, carry44, Ref2);
    1301     NumRef2 = simd_and(Ref2,strct_lex__Hash_);
    1302     GenRef2 = simd_andc(Ref2,strct_lex__Hash_);
    1303     advance_with_carry(NumRef2, carry45, NumRef3);
    1304     HexRef3 = simd_and(NumRef3,strct_lex__x_);
    1305     DecRef3 = simd_andc(NumRef3,strct_lex__x_);
    1306     advance_with_carry(HexRef3, carry46, HexRef4);
    1307     adc128(GenRef2, strct_lex__NameScan_, carry47, Temp345);
    1308     GenRefEnds = simd_andc(Temp345,strct_lex__NameScan_);
    1309     adc128(DecRef3, strct_lex__Digit_, carry48, Temp349);
    1310     DecRefEnds = simd_andc(Temp349,strct_lex__Digit_);
    1311     adc128(HexRef4, strct_lex__Hex_, carry49, Temp353);
    1312     HexRefEnds = simd_andc(Temp353,strct_lex__Hex_);
    1313     error1 = simd_andc(DecRef3,strct_lex__Digit_);
    1314     error2 = simd_andc(HexRef4,strct_lex__Hex_);
    1315     Temp361 = simd_or(GenRefEnds,DecRefEnds);
    1316     Temp363 = simd_or(Temp361,HexRefEnds);
    1317     error3 = simd_andc(Temp363,strct_lex__Semicolon_);
    1318     sbb128(GenRefEnds, GenRef2, carry_brw7, strct_refs__GenRefs_);
    1319     Temp369 = simd_or(error1,error2);
    1320     strct_refs__error_ = simd_or(Temp369,error3);
    1321 }
    1322 CarryTemp196 = carry_or(carry44, carry45);
    1323 CarryTemp196 = carry_or(CarryTemp196, carry_brw7);
    1324 CarryTemp196 = carry_or(CarryTemp196, carry49);
    1325 CarryTemp196 = carry_or(CarryTemp196, carry48);
    1326 CarryTemp196 = carry_or(CarryTemp196, carry47);
    1327 CarryTemp196 = carry_or(CarryTemp196, carry46);
    1328 Temp371 = simd_or(strct_CT_callouts__CtCDPI_mask_,strct_callouts__Tags_);
    1329 CD_end_error = simd_andc(strct_lex__CD_end_,Temp371);
    1330 qname_stream = simd_or(strct_callouts__ElemNames_,strct_callouts__AttNames_);
    1331 ncname_stream = simd_or(strct_CT_callouts__PI_name_,strct_refs__GenRefs_);
    1332 name_stream = simd_or(qname_stream,ncname_stream);
    1333 advance_with_carry(name_stream, carry50, Temp372);
    1334 name_start = simd_andc(name_stream,Temp372);
    1335 name_start_check = simd_andc(name_start,strct_lex__ASCII_name_start_);
    1336 Temp373 = simd_andc(name_stream,name_start);
    1337 Temp374 = simd_andc(Temp373,strct_lex__ASCII_name_char_);
    1338 name_check = simd_andc(Temp374,strct_u8__suffix_);
    1339 void_prefix_err = simd_and(name_start,strct_lex__Colon_);
    1340 Temp375 = simd_andc(strct_lex__NameScan_,strct_lex__Colon_);
    1341 adc128(name_start, Temp375, carry51, Temp376);
    1342 Temp377 = simd_andc(Temp376,Temp375);
    1343 namespace_sep = simd_and(Temp377,strct_lex__Colon_);
    1344 advance_with_carry(namespace_sep, carry52, local_part_start);
    1345 local_part_err = simd_andc(local_part_start,strct_lex__NameScan_);
    1346 adc128(local_part_start, Temp375, carry53, Temp378);
    1347 Temp379 = simd_andc(Temp378,Temp375);
    1348 colon2_err = simd_and(Temp379,strct_lex__Colon_);
    1349 ncname_err = simd_and(ncname_stream,strct_lex__Colon_);
    1350 Temp380 = simd_or(void_prefix_err,local_part_err);
    1351 Temp381 = simd_or(Temp380,colon2_err);
    1352 namespace_error = simd_or(Temp381,ncname_err);
    1353 Temp382 = simd_or(strct_u8__error_,xmlchar_error);
    1354 Temp383 = simd_or(Temp382,strct_CT_callouts__error_);
    1355 Temp384 = simd_or(Temp383,ParseError);
    1356 Temp385 = simd_or(Temp384,CD_end_error);
    1357 Temp386 = simd_or(Temp385,strct_refs__error_);
    1358 error_mask = simd_or(Temp386,namespace_error);
    1359 Temp387 = simd_or(strct_callouts__EmptyTagMarks_,LAngleFollow);
    1360 tag_marks = simd_or(Temp387,AttNameStarts);
    1361 NameFollows = simd_or(ElemNameFollows,AttNameFollows);
    1362 AttRef = simd_and(strct_callouts__AttVals_,Ref2);
    1363 
     496        bit[0], bit[1], bit[2], bit[3], bit[4], bit[5], bit[6], bit[7]);
     497
     498        bit[0] = simd_and(bit[0], EOF_mask);
     499        bit[1] = simd_and(bit[1], EOF_mask);
     500        bit[2] = simd_and(bit[2], EOF_mask);
     501        bit[3] = simd_and(bit[3], EOF_mask);
     502        bit[4] = simd_and(bit[4], EOF_mask);
     503        bit[5] = simd_and(bit[5], EOF_mask);
     504        bit[6] = simd_and(bit[6], EOF_mask);
     505        bit[7] = simd_and(bit[7], EOF_mask);
     506
     507       
     508  temp1 = simd_or(bit[0], bit[1]);
     509  temp2 = simd_andc(bit[2], bit[3]);
     510  temp3 = simd_andc(temp2, temp1);
     511  temp4 = simd_andc(bit[5], bit[4]);
     512  temp5 = simd_andc(bit[6], bit[7]);
     513  temp6 = simd_and(temp4, temp5);
     514  lex.RefStart = simd_and(temp3, temp6);
     515  temp7 = simd_and(bit[2], bit[3]);
     516  temp8 = simd_andc(temp7, temp1);
     517  temp9 = simd_andc(bit[4], bit[5]);
     518  temp10 = simd_and(bit[6], bit[7]);
     519  temp11 = simd_and(temp9, temp10);
     520  lex.Semicolon = simd_and(temp8, temp11);
     521  temp12 = simd_and(bit[4], bit[5]);
     522  temp13 = simd_or(bit[6], bit[7]);
     523  temp14 = simd_andc(temp12, temp13);
     524  lex.LAngle = simd_and(temp8, temp14);
     525  temp15 = simd_and(temp12, temp5);
     526  lex.RAngle = simd_and(temp8, temp15);
     527  temp16 = simd_andc(bit[1], bit[0]);
     528  temp17 = simd_andc(bit[3], bit[2]);
     529  temp18 = simd_and(temp16, temp17);
     530  lex.LBracket = simd_and(temp18, temp11);
     531  temp19 = simd_andc(bit[7], bit[6]);
     532  temp20 = simd_and(temp12, temp19);
     533  lex.RBracket = simd_and(temp18, temp20);
     534  temp21 = simd_or(bit[4], bit[5]);
     535  temp22 = simd_andc(temp19, temp21);
     536  lex.Exclam = simd_and(temp3, temp22);
     537  temp23 = simd_and(temp12, temp10);
     538  lex.QMark = simd_and(temp8, temp23);
     539  lex.Hyphen = simd_and(temp3, temp20);
     540  lex.Equals = simd_and(temp8, temp20);
     541  temp24 = simd_and(temp4, temp10);
     542  lex.SQuote = simd_and(temp3, temp24);
     543  temp25 = simd_andc(temp5, temp21);
     544  lex.DQuote = simd_and(temp3, temp25);
     545  lex.Slash = simd_and(temp3, temp23);
     546  temp26 = simd_andc(temp10, temp21);
     547  lex.Hash = simd_and(temp3, temp26);
     548  temp27 = simd_and(temp16, temp7);
     549  temp28 = simd_andc(temp9, temp13);
     550  lex.x = simd_and(temp27, temp28);
     551  temp29 = simd_and(temp9, temp5);
     552  lex.Colon = simd_and(temp8, temp29);
     553  temp30 = simd_and(temp18, temp23);
     554  temp31 = simd_or(temp30, lex.Colon);
     555  temp32 = simd_andc(temp16, bit[2]);
     556  temp33 = simd_or(bit[5], temp10);
     557  temp34 = simd_and(bit[4], temp33);
     558  temp35 = simd_not(temp34);
     559  temp36 = simd_or(temp21, temp13);
     560  temp37 = simd_or(simd_and(bit[3], temp35), simd_andc(temp36, bit[3]));
     561  temp38 = simd_and(temp32, temp37);
     562  temp39 = simd_or(temp31, temp38);
     563  temp40 = simd_and(temp16, bit[2]);
     564  temp41 = simd_and(temp40, temp37);
     565  lex.ASCII_name_start = simd_or(temp39, temp41);
     566  temp42 = simd_or(temp30, lex.Hyphen);
     567  temp43 = simd_and(temp3, temp15);
     568  temp44 = simd_or(temp42, temp43);
     569  temp45 = simd_andc(temp8, temp34);
     570  temp46 = simd_or(temp44, temp45);
     571  temp47 = simd_or(temp46, temp38);
     572  lex.ASCII_name_char = simd_or(temp47, temp41);
     573  lex.NameScan = simd_or(lex.ASCII_name_char, bit[0]);
     574  temp48 = simd_or(temp1, bit[2]);
     575  control.x00_x1F = simd_not(temp48);
     576  temp49 = simd_or(bit[2], bit[3]);
     577  temp50 = simd_or(temp1, temp49);
     578  control.CR = simd_andc(temp20, temp50);
     579  control.LF = simd_andc(temp29, temp50);
     580  temp51 = simd_and(temp9, temp19);
     581  control.HT = simd_andc(temp51, temp50);
     582  control.SP = simd_andc(temp3, temp36);
     583  temp52 = simd_or(temp20, temp29);
     584  temp53 = simd_or(temp52, temp51);
     585  temp54 = simd_andc(temp53, temp50);
     586  lex.WS = simd_or(temp54, control.SP);
     587  temp55 = simd_or(bit[5], bit[6]);
     588  temp56 = simd_and(bit[4], temp55);
     589  lex.Digit = simd_andc(temp8, temp56);
     590  temp57 = simd_andc(temp16, temp49);
     591  temp58 = simd_andc(temp57, bit[4]);
     592  temp59 = simd_not(temp10);
     593  temp60 = simd_or(simd_and(bit[5], temp59), simd_andc(temp13, bit[5]));
     594  temp61 = simd_and(temp58, temp60);
     595  temp62 = simd_or(lex.Digit, temp61);
     596  temp63 = simd_and(temp16, temp2);
     597  temp64 = simd_andc(temp63, bit[4]);
     598  temp65 = simd_and(temp64, temp60);
     599  lex.Hex = simd_or(temp62, temp65);
     600  xmlchar_error = simd_and(simd_andc(control.x00_x1F, lex.WS), EOF_mask);
     601  u8.unibyte = simd_not(bit[0]);
     602  u8.suffix = simd_const_1(0);
     603  u8.error = simd_const_1(0);
     604  FFFE_FFFF = simd_const_1(0);
     605  u8anyscope = simd_const_1(0);
     606  if ((bitblock_has_bit(bit[0]) || CarryTest(carryQ, 0, 12))) {
     607    u8.prefix = simd_and(bit[0], bit[1]);
     608    u8.prefix2 = simd_andc(u8.prefix, bit[2]);
     609    u8.prefix3 = simd_and(u8.prefix, temp2);
     610    u8.prefix4 = simd_and(u8.prefix, temp7);
     611    u8.suffix = simd_andc(bit[0], bit[1]);
     612    temp66 = simd_andc(u8.prefix, temp49);
     613    temp67 = simd_or(temp21, bit[6]);
     614    temp68 = simd_andc(temp66, temp67);
     615    temp69 = simd_and(bit[5], temp13);
     616    temp70 = simd_or(bit[4], temp69);
     617    temp71 = simd_and(u8.prefix4, temp70);
     618    u8.badprefix = simd_or(temp68, temp71);
     619    u8.error = u8.badprefix;
     620    u8.scope22 = BitBlock_advance_ci_co(u8.prefix2, carryQ, 0);
     621    u8anyscope = u8.scope22;
     622    if ((bitblock_has_bit(simd_or(u8.prefix3, u8.prefix4)) || CarryTest(carryQ, 1, 11))) {
     623      xE0 = simd_andc(u8.prefix3, temp36);
     624      xED = simd_and(u8.prefix3, temp20);
     625      xF0 = simd_andc(u8.prefix4, temp36);
     626      temp72 = simd_andc(temp4, temp13);
     627      xF4 = simd_and(u8.prefix4, temp72);
     628      u8.xA0_xBF = simd_and(u8.suffix, bit[2]);
     629      u8.x80_x9F = simd_andc(u8.suffix, bit[2]);
     630      u8.x90_xBF = simd_and(u8.suffix, temp49);
     631      u8.x80_x8F = simd_andc(u8.suffix, temp49);
     632      xEF = simd_and(u8.prefix3, temp23);
     633      temp73 = simd_and(u8.suffix, temp7);
     634      u8.xBF = simd_and(temp73, temp23);
     635      u8.xBE = simd_and(temp73, temp15);
     636      u8.xE0_scope = BitBlock_advance_ci_co(xE0, carryQ, 1);
     637      u8.xED_scope = BitBlock_advance_ci_co(xED, carryQ, 2);
     638      u8.xF0_scope = BitBlock_advance_ci_co(xF0, carryQ, 3);
     639      u8.xF4_scope = BitBlock_advance_ci_co(xF4, carryQ, 4);
     640      u8.xEF_scope = BitBlock_advance_ci_co(xEF, carryQ, 5);
     641      u8.scope32 = BitBlock_advance_ci_co(u8.prefix3, carryQ, 6);
     642      u8.scope33 = BitBlock_advance_ci_co(u8.scope32, carryQ, 7);
     643      u8.scope42 = BitBlock_advance_ci_co(u8.prefix4, carryQ, 8);
     644      u8.scope43 = BitBlock_advance_ci_co(u8.scope42, carryQ, 9);
     645      u8.scope44 = BitBlock_advance_ci_co(u8.scope43, carryQ, 10);
     646      u8lastscope = simd_or(simd_or(u8.scope22, u8.scope33), u8.scope44);
     647      u8anyscope = simd_or(simd_or(simd_or(u8lastscope, u8.scope32), u8.scope42), u8.scope43);
     648      u8error1 = simd_and(u8.xE0_scope, u8.x80_x9F);
     649      u8error2 = simd_and(u8.xED_scope, u8.xA0_xBF);
     650      u8error3 = simd_and(u8.xF0_scope, u8.x80_x8F);
     651      u8error4 = simd_and(u8.xF4_scope, u8.x90_xBF);
     652      u8.error = simd_or(u8.error, simd_or(simd_or(simd_or(u8error1, u8error2), u8error3), u8error4));
     653      EF_BF_pending = BitBlock_advance_ci_co(simd_and(u8.xEF_scope, u8.xBF), carryQ, 11);
     654      FFFE_FFFF = simd_and(EF_BF_pending, simd_or(u8.xBE, u8.xBF));
     655    }
     656    else {
     657      CarryDequeueEnqueue(carryQ, 1, 11);
     658    }
     659  }
     660  else {
     661    CarryDequeueEnqueue(carryQ, 0, 12);
     662  }
     663  u8mismatch = simd_xor(u8anyscope, u8.suffix);
     664  u8.error = simd_or(u8.error, u8mismatch);
     665  xmlchar_error = simd_or(xmlchar_error, FFFE_FFFF);
     666  lex.LAngle_scope = BitBlock_advance_ci_co(lex.LAngle, carryQ, 12);
     667  lex.Hyphen_scope = BitBlock_advance_ci_co(lex.Hyphen, carryQ, 13);
     668  lex.QMark_scope = BitBlock_advance_ci_co(lex.QMark, carryQ, 14);
     669  lex.CD_end = simd_const_1(0);
     670  if ((bitblock_has_bit(lex.RBracket) || CarryTest(carryQ, 15, 2))) {
     671    lex.RBracket_scope = BitBlock_advance_ci_co(lex.RBracket, carryQ, 15);
     672    lex.CD_end = simd_and(BitBlock_advance_ci_co(simd_and(lex.RBracket_scope, lex.RBracket), carryQ, 16), lex.RAngle);
     673  }
     674  else {
     675    CarryDequeueEnqueue(carryQ, 15, 2);
     676  }
     677  lex.PI_start = simd_and(lex.LAngle_scope, lex.QMark);
     678  lex.CtCD_start = simd_and(lex.LAngle_scope, lex.Exclam);
     679  lex.CtCDPI_start = simd_or(lex.PI_start, lex.CtCD_start);
     680  lex.EndTag_start = simd_and(lex.LAngle_scope, lex.Slash);
     681  lex.DoubleHyphen = simd_and(lex.Hyphen_scope, lex.Hyphen);
     682  lex.PI_end = simd_and(lex.QMark_scope, lex.RAngle);
     683  cT_callouts.PI_name = simd_const_1(0);
     684  PI_starts = simd_const_1(0);
     685  PI_ends = simd_const_1(0);
     686  Ct_starts = simd_const_1(0);
     687  Ct_ends = simd_const_1(0);
     688  CD_starts = simd_const_1(0);
     689  CD_ends = simd_const_1(0);
     690  CtCDPI_starts = simd_const_1(0);
     691  PI_namestarts = simd_const_1(0);
     692  PI_name_ends = simd_const_1(0);
     693  CtCDPI_scan = simd_andc(EOF_mask, lex.CtCDPI_start);
     694  Ct_end_scan = simd_andc(EOF_mask, lex.DoubleHyphen);
     695  CD_end_scan = simd_andc(EOF_mask, lex.CD_end);
     696  PI_end_scan = simd_andc(EOF_mask, lex.PI_end);
     697  CtCDPI_Cursor = BitBlock_scanthru_ci_co(CtCDPI_Cursor, CtCDPI_scan, carryQ, 17);
     698  CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     699  if ((bitblock_has_bit(CtCDPI_Cursor) || CarryTest(carryQ, 18, 14))) {
     700    CtCDPI_starts = simd_or(CtCDPI_starts, CtCDPI_Cursor);
     701    PI_Cursor = simd_and(CtCDPI_Cursor, lex.PI_start);
     702    CD_Ct_Cursor = BitBlock_advance_ci_co(simd_andc(CtCDPI_Cursor, PI_Cursor), carryQ, 18);
     703    CD_Cursor = simd_and(CD_Ct_Cursor, lex.LBracket);
     704    Ct_Cursor = simd_and(CD_Ct_Cursor, lex.Hyphen);
     705    PI_starts = simd_or(PI_starts, PI_Cursor);
     706    CD_starts = simd_or(CD_starts, CD_Cursor);
     707    Ct_starts = simd_or(Ct_starts, Ct_Cursor);
     708    Ct_Cursor = BitBlock_advance_ci_co(Ct_Cursor, carryQ, 19);
     709    Ct_errors = simd_or(Ct_errors, simd_andc(Ct_Cursor, lex.Hyphen));
     710    Ct_Cursor = BitBlock_advance_ci_co(Ct_Cursor, carryQ, 20);
     711    Ct_end_scan = simd_or(Ct_end_scan, Ct_Cursor);
     712    PI_Cursor = BitBlock_advance_ci_co(PI_Cursor, carryQ, 21);
     713    PI_namestarts = simd_or(PI_namestarts, PI_Cursor);
     714    PI_name_end = BitBlock_scanthru_ci_co(PI_Cursor, lex.NameScan, carryQ, 22);
     715    PI_name_ends = simd_or(PI_name_ends, PI_name_end);
     716    cT_callouts.PI_name = simd_or(cT_callouts.PI_name, BitBlock_sub_ci_co(PI_name_end, PI_Cursor, carryQ, 23));
     717    PI_Cursor = BitBlock_scanthru_ci_co(PI_name_end, PI_end_scan, carryQ, 24);
     718    CD_Cursor = BitBlock_scanthru_ci_co(CD_Cursor, CD_end_scan, carryQ, 25);
     719    Ct_Cursor = BitBlock_advance_ci_co(BitBlock_scanthru_ci_co(Ct_Cursor, Ct_end_scan, carryQ, 26), carryQ, 27);
     720    PI_ends = simd_or(PI_ends, PI_Cursor);
     721    CD_ends = simd_or(CD_ends, CD_Cursor);
     722    Ct_ends = simd_or(Ct_ends, Ct_Cursor);
     723    CtCDPI_Cursor = simd_or(simd_or(PI_Cursor, CD_Cursor), Ct_Cursor);
     724    CtCDPI_Cursor = BitBlock_scanthru_ci_co(CtCDPI_Cursor, CtCDPI_scan, carryQ, 28);
     725    CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     726    cT_callouts.CtCDPI_mask = BitBlock_sub_ci_co(BitBlock_advance_ci_co(simd_or(simd_or(CD_ends, Ct_ends), PI_ends), carryQ, 29), CtCDPI_starts, carryQ, 30);
     727    cT_callouts.error = simd_or(Ct_errors, simd_andc(Ct_ends, lex.RAngle));
     728    cT_callouts.error = simd_or(cT_callouts.error, simd_andc(BitBlock_advance_ci_co(simd_andc(PI_name_ends, lex.WS), carryQ, 31), lex.PI_end));
     729    cT_callouts.error = simd_or(cT_callouts.error, simd_and(PI_namestarts, PI_name_ends));
     730    cT_callouts.error = simd_or(cT_callouts.error, simd_andc(cT_callouts.CtCDPI_mask, EOF_mask));
     731    while (bitblock_has_bit(CtCDPI_Cursor)) {
     732      CarryDeclare(subcarryQ, 14);
     733      CtCDPI_starts = simd_or(CtCDPI_starts, CtCDPI_Cursor);
     734      PI_Cursor = simd_and(CtCDPI_Cursor, lex.PI_start);
     735      CD_Ct_Cursor = BitBlock_advance_co(simd_andc(CtCDPI_Cursor, PI_Cursor), subcarryQ, 0);
     736      CD_Cursor = simd_and(CD_Ct_Cursor, lex.LBracket);
     737      Ct_Cursor = simd_and(CD_Ct_Cursor, lex.Hyphen);
     738      PI_starts = simd_or(PI_starts, PI_Cursor);
     739      CD_starts = simd_or(CD_starts, CD_Cursor);
     740      Ct_starts = simd_or(Ct_starts, Ct_Cursor);
     741      Ct_Cursor = BitBlock_advance_co(Ct_Cursor, subcarryQ, 1);
     742      Ct_errors = simd_or(Ct_errors, simd_andc(Ct_Cursor, lex.Hyphen));
     743      Ct_Cursor = BitBlock_advance_co(Ct_Cursor, subcarryQ, 2);
     744      Ct_end_scan = simd_or(Ct_end_scan, Ct_Cursor);
     745      PI_Cursor = BitBlock_advance_co(PI_Cursor, subcarryQ, 3);
     746      PI_namestarts = simd_or(PI_namestarts, PI_Cursor);
     747      PI_name_end = BitBlock_scanthru_co(PI_Cursor, lex.NameScan, subcarryQ, 4);
     748      PI_name_ends = simd_or(PI_name_ends, PI_name_end);
     749      cT_callouts.PI_name = simd_or(cT_callouts.PI_name, BitBlock_sub_co(PI_name_end, PI_Cursor, subcarryQ, 5));
     750      PI_Cursor = BitBlock_scanthru_co(PI_name_end, PI_end_scan, subcarryQ, 6);
     751      CD_Cursor = BitBlock_scanthru_co(CD_Cursor, CD_end_scan, subcarryQ, 7);
     752      Ct_Cursor = BitBlock_advance_co(BitBlock_scanthru_co(Ct_Cursor, Ct_end_scan, subcarryQ, 8), subcarryQ, 9);
     753      PI_ends = simd_or(PI_ends, PI_Cursor);
     754      CD_ends = simd_or(CD_ends, CD_Cursor);
     755      Ct_ends = simd_or(Ct_ends, Ct_Cursor);
     756      CtCDPI_Cursor = simd_or(simd_or(PI_Cursor, CD_Cursor), Ct_Cursor);
     757      CtCDPI_Cursor = BitBlock_scanthru_co(CtCDPI_Cursor, CtCDPI_scan, subcarryQ, 10);
     758      CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     759      cT_callouts.CtCDPI_mask = BitBlock_sub_co(BitBlock_advance_co(simd_or(simd_or(CD_ends, Ct_ends), PI_ends), subcarryQ, 11), CtCDPI_starts, subcarryQ, 12);
     760      cT_callouts.error = simd_or(Ct_errors, simd_andc(Ct_ends, lex.RAngle));
     761      cT_callouts.error = simd_or(cT_callouts.error, simd_andc(BitBlock_advance_co(simd_andc(PI_name_ends, lex.WS), subcarryQ, 13), lex.PI_end));
     762      cT_callouts.error = simd_or(cT_callouts.error, simd_and(PI_namestarts, PI_name_ends));
     763      cT_callouts.error = simd_or(cT_callouts.error, simd_andc(cT_callouts.CtCDPI_mask, EOF_mask));
     764      CarryCombine(carryQ, subcarryQ, 18, 14);
     765    }
     766  }
     767  else {
     768    CarryDequeueEnqueue(carryQ, 18, 14);
     769  }
     770  Misc_mask = simd_and(simd_or(simd_or(simd_or(lex.WS, lex.LAngle), BitBlock_sub_ci_co(BitBlock_advance_ci_co(simd_or(Ct_ends, PI_ends), carryQ, 32), simd_or(Ct_starts, PI_starts), carryQ, 33)), CtCDPI_starts), EOF_mask);
     771  DQuoteScan = simd_andc(EOF_mask, simd_or(lex.DQuote, lex.LAngle));
     772  SQuoteScan = simd_andc(EOF_mask, simd_or(lex.SQuote, lex.LAngle));
     773  AttListDelim = simd_or(lex.Slash, lex.RAngle);
     774  LAngleFollow = simd_andc(lex.LAngle_scope, cT_callouts.CtCDPI_mask);
     775  ElemNamePositions = simd_andc(LAngleFollow, lex.Slash);
     776  EndTagSeconds = simd_and(LAngleFollow, lex.Slash);
     777  ElemNameFollows = BitBlock_scanthru_ci_co(ElemNamePositions, lex.NameScan, carryQ, 34);
     778  ParseError = simd_and(ElemNamePositions, ElemNameFollows);
     779  callouts.ElemNames = BitBlock_sub_ci_co(ElemNameFollows, ElemNamePositions, carryQ, 35);
     780  AttNameStarts = simd_const_1(0);
     781  AttNameFollows = simd_const_1(0);
     782  EqToCheck = simd_const_1(0);
     783  AttValStarts = simd_const_1(0);
     784  AttValEnds = simd_const_1(0);
     785  AttValFollows = simd_const_1(0);
     786  AfterWS = BitBlock_scanthru_ci_co(ElemNameFollows, lex.WS, carryQ, 36);
     787  AttListEnd = simd_and(AfterWS, AttListDelim);
     788  AttNameStart = simd_andc(AfterWS, AttListDelim);
     789  ParseError = simd_or(ParseError, simd_and(ElemNameFollows, AttNameStart));
     790  if ((bitblock_has_bit(AttNameStart) || CarryTest(carryQ, 37, 7))) {
     791    AttNameStarts = simd_or(AttNameStarts, AttNameStart);
     792    AttNameFollow = BitBlock_scanthru_ci_co(AttNameStart, lex.NameScan, carryQ, 37);
     793    AttNameFollows = simd_or(AttNameFollows, AttNameFollow);
     794    EqExpected = BitBlock_scanthru_ci_co(AttNameFollow, lex.WS, carryQ, 38);
     795    EqToCheck = simd_or(EqToCheck, EqExpected);
     796    AttValPos = BitBlock_scanthru_ci_co(EqExpected, simd_or(EqExpected, lex.WS), carryQ, 39);
     797    AttValStarts = simd_or(AttValStarts, AttValPos);
     798    DQuoteAttVal = simd_and(AttValPos, lex.DQuote);
     799    SQuoteAttVal = simd_and(AttValPos, lex.SQuote);
     800    DQuoteAttEnd = BitBlock_scanthru_ci_co(DQuoteAttVal, simd_or(DQuoteAttVal, DQuoteScan), carryQ, 40);
     801    SQuoteAttEnd = BitBlock_scanthru_ci_co(SQuoteAttVal, simd_or(SQuoteAttVal, SQuoteScan), carryQ, 41);
     802    AttValEnd = simd_or(DQuoteAttEnd, SQuoteAttEnd);
     803    AttValEnds = simd_or(AttValEnds, AttValEnd);
     804    AttValFollow = BitBlock_advance_ci_co(AttValEnd, carryQ, 42);
     805    AttValFollows = simd_or(AttValFollows, AttValFollow);
     806    AfterWS = BitBlock_scanthru_ci_co(AttValFollow, lex.WS, carryQ, 43);
     807    AttListEnd = simd_or(AttListEnd, simd_and(AfterWS, AttListDelim));
     808    AttNameStart = simd_andc(AfterWS, AttListDelim);
     809    while (bitblock_has_bit(AttNameStart)) {
     810      CarryDeclare(subcarryQ, 7);
     811      AttNameStarts = simd_or(AttNameStarts, AttNameStart);
     812      AttNameFollow = BitBlock_scanthru_co(AttNameStart, lex.NameScan, subcarryQ, 0);
     813      AttNameFollows = simd_or(AttNameFollows, AttNameFollow);
     814      EqExpected = BitBlock_scanthru_co(AttNameFollow, lex.WS, subcarryQ, 1);
     815      EqToCheck = simd_or(EqToCheck, EqExpected);
     816      AttValPos = BitBlock_scanthru_co(EqExpected, simd_or(EqExpected, lex.WS), subcarryQ, 2);
     817      AttValStarts = simd_or(AttValStarts, AttValPos);
     818      DQuoteAttVal = simd_and(AttValPos, lex.DQuote);
     819      SQuoteAttVal = simd_and(AttValPos, lex.SQuote);
     820      DQuoteAttEnd = BitBlock_scanthru_co(DQuoteAttVal, simd_or(DQuoteAttVal, DQuoteScan), subcarryQ, 3);
     821      SQuoteAttEnd = BitBlock_scanthru_co(SQuoteAttVal, simd_or(SQuoteAttVal, SQuoteScan), subcarryQ, 4);
     822      AttValEnd = simd_or(DQuoteAttEnd, SQuoteAttEnd);
     823      AttValEnds = simd_or(AttValEnds, AttValEnd);
     824      AttValFollow = BitBlock_advance_co(AttValEnd, subcarryQ, 5);
     825      AttValFollows = simd_or(AttValFollows, AttValFollow);
     826      AfterWS = BitBlock_scanthru_co(AttValFollow, lex.WS, subcarryQ, 6);
     827      AttListEnd = simd_or(AttListEnd, simd_and(AfterWS, AttListDelim));
     828      AttNameStart = simd_andc(AfterWS, AttListDelim);
     829      CarryCombine(carryQ, subcarryQ, 37, 7);
     830    }
     831  }
     832  else {
     833    CarryDequeueEnqueue(carryQ, 37, 7);
     834  }
     835  callouts.AttNames = BitBlock_sub_ci_co(AttNameFollows, AttNameStarts, carryQ, 44);
     836  callouts.AttVals = BitBlock_sub_ci_co(AttValFollows, AttValStarts, carryQ, 45);
     837  STagEnds = simd_and(AttListEnd, lex.RAngle);
     838  callouts.EmptyTagMarks = BitBlock_advance_ci_co(simd_and(AttListEnd, lex.Slash), carryQ, 46);
     839  callouts.Tags = BitBlock_sub_ci_co(simd_or(STagEnds, callouts.EmptyTagMarks), ElemNamePositions, carryQ, 47);
     840  ParseError = simd_or(ParseError, simd_and(AttValFollows, AttNameStarts));
     841  ParseError = simd_or(ParseError, simd_and(AttNameStarts, AttNameFollows));
     842  ParseError = simd_or(ParseError, simd_andc(EqToCheck, lex.Equals));
     843  ParseError = simd_or(ParseError, simd_andc(AttValStarts, simd_or(lex.DQuote, lex.SQuote)));
     844  ParseError = simd_or(ParseError, simd_andc(AttValEnds, simd_or(lex.DQuote, lex.SQuote)));
     845  ParseError = simd_or(ParseError, simd_andc(callouts.EmptyTagMarks, lex.RAngle));
     846  EndTagEnds = BitBlock_scanthru_ci_co(BitBlock_scanthru_ci_co(EndTagSeconds, simd_or(EndTagSeconds, lex.NameScan), carryQ, 48), lex.WS, carryQ, 49);
     847  ParseError = simd_or(ParseError, simd_andc(EndTagEnds, lex.RAngle));
     848  callouts.error = ParseError;
     849  refs.GenRefs = simd_const_1(0);
     850  refs.error = simd_const_1(0);
     851  Ref2 = simd_const_1(0);
     852  GenRef2 = simd_const_1(0);
     853  DecRef3 = simd_const_1(0);
     854  HexRef4 = simd_const_1(0);
     855  Ref1 = simd_andc(lex.RefStart, cT_callouts.CtCDPI_mask);
     856  if ((bitblock_has_bit(Ref1) || CarryTest(carryQ, 50, 7))) {
     857    Ref2 = BitBlock_advance_ci_co(Ref1, carryQ, 50);
     858    NumRef2 = simd_and(Ref2, lex.Hash);
     859    GenRef2 = simd_andc(Ref2, lex.Hash);
     860    NumRef3 = BitBlock_advance_ci_co(NumRef2, carryQ, 51);
     861    HexRef3 = simd_and(NumRef3, lex.x);
     862    DecRef3 = simd_andc(NumRef3, lex.x);
     863    HexRef4 = BitBlock_advance_ci_co(HexRef3, carryQ, 52);
     864    GenRefEnds = BitBlock_scanthru_ci_co(GenRef2, lex.NameScan, carryQ, 53);
     865    DecRefEnds = BitBlock_scanthru_ci_co(DecRef3, lex.Digit, carryQ, 54);
     866    HexRefEnds = BitBlock_scanthru_ci_co(HexRef4, lex.Hex, carryQ, 55);
     867    error1 = simd_andc(DecRef3, lex.Digit);
     868    error2 = simd_andc(HexRef4, lex.Hex);
     869    error3 = simd_andc(simd_or(simd_or(GenRefEnds, DecRefEnds), HexRefEnds), lex.Semicolon);
     870    refs.GenRefs = BitBlock_sub_ci_co(GenRefEnds, GenRef2, carryQ, 56);
     871    refs.error = simd_or(simd_or(error1, error2), error3);
     872  }
     873  else {
     874    CarryDequeueEnqueue(carryQ, 50, 7);
     875  }
     876  CD_end_error = simd_andc(lex.CD_end, simd_or(cT_callouts.CtCDPI_mask, callouts.Tags));
     877  qname_stream = simd_or(callouts.ElemNames, callouts.AttNames);
     878  ncname_stream = simd_or(cT_callouts.PI_name, refs.GenRefs);
     879  name_stream = simd_or(qname_stream, ncname_stream);
     880  name_start = simd_andc(name_stream, BitBlock_advance_ci_co(name_stream, carryQ, 57));
     881  name_start_check = simd_andc(name_start, lex.ASCII_name_start);
     882  name_check = simd_andc(simd_andc(simd_andc(name_stream, name_start), lex.ASCII_name_char), u8.suffix);
     883  name_cursor = simd_andc(name_stream, BitBlock_advance_ci_co(name_stream, carryQ, 58));
     884  void_prefix_err = simd_and(name_cursor, lex.Colon);
     885  namespace_sep = simd_and(BitBlock_scanthru_ci_co(name_cursor, simd_andc(lex.NameScan, lex.Colon), carryQ, 59), lex.Colon);
     886  local_part_start = BitBlock_advance_ci_co(namespace_sep, carryQ, 60);
     887  local_part_err = simd_andc(local_part_start, lex.NameScan);
     888  colon2_err = simd_and(BitBlock_scanthru_ci_co(local_part_start, simd_andc(lex.NameScan, lex.Colon), carryQ, 61), lex.Colon);
     889  ncname_err = simd_and(ncname_stream, lex.Colon);
     890  namespace_error = simd_or(simd_or(simd_or(void_prefix_err, local_part_err), colon2_err), ncname_err);
     891  error_mask = simd_or(simd_or(simd_or(simd_or(simd_or(simd_or(u8.error, xmlchar_error), cT_callouts.error), callouts.error), CD_end_error), refs.error), namespace_error);
     892  tag_marks = simd_or(simd_or(callouts.EmptyTagMarks, LAngleFollow), AttNameStarts);
     893  NameFollows = simd_or(ElemNameFollows, AttNameFollows);
     894  AttRef = simd_and(callouts.AttVals, Ref2);
     895  CtCDPI_Cursor = simd_const_1(0);
    1364896
    1365897
     
    1412944       
    1413945        s2p(U8[0], U8[1], U8[2], U8[3], U8[4], U8[5], U8[6], U8[7],
    1414         array_bit__0_,array_bit__1_,array_bit__2_,array_bit__3_,array_bit__4_,array_bit__5_,array_bit__6_,array_bit__7_);
    1415 
    1416         temp1 = simd_or(array_bit__0_,array_bit__1_);
    1417 temp2 = simd_andc(array_bit__2_,array_bit__3_);
    1418 temp3 = simd_andc(temp2,temp1);
    1419 temp4 = simd_andc(array_bit__5_,array_bit__4_);
    1420 temp5 = simd_andc(array_bit__6_,array_bit__7_);
    1421 temp6 = simd_and(temp4,temp5);
    1422 strct_lex__RefStart_ = simd_and(temp3,temp6);
    1423 temp7 = simd_and(array_bit__2_,array_bit__3_);
    1424 temp8 = simd_andc(temp7,temp1);
    1425 temp9 = simd_andc(array_bit__4_,array_bit__5_);
    1426 temp10 = simd_and(array_bit__6_,array_bit__7_);
    1427 temp11 = simd_and(temp9,temp10);
    1428 strct_lex__Semicolon_ = simd_and(temp8,temp11);
    1429 temp12 = simd_and(array_bit__4_,array_bit__5_);
    1430 temp13 = simd_or(array_bit__6_,array_bit__7_);
    1431 temp14 = simd_andc(temp12,temp13);
    1432 strct_lex__LAngle_ = simd_and(temp8,temp14);
    1433 temp15 = simd_and(temp12,temp5);
    1434 strct_lex__RAngle_ = simd_and(temp8,temp15);
    1435 temp16 = simd_andc(array_bit__1_,array_bit__0_);
    1436 temp17 = simd_andc(array_bit__3_,array_bit__2_);
    1437 temp18 = simd_and(temp16,temp17);
    1438 strct_lex__LBracket_ = simd_and(temp18,temp11);
    1439 temp19 = simd_andc(array_bit__7_,array_bit__6_);
    1440 temp20 = simd_and(temp12,temp19);
    1441 strct_lex__RBracket_ = simd_and(temp18,temp20);
    1442 temp21 = simd_or(array_bit__4_,array_bit__5_);
    1443 temp22 = simd_andc(temp19,temp21);
    1444 strct_lex__Exclam_ = simd_and(temp3,temp22);
    1445 temp23 = simd_and(temp12,temp10);
    1446 strct_lex__QMark_ = simd_and(temp8,temp23);
    1447 strct_lex__Hyphen_ = simd_and(temp3,temp20);
    1448 strct_lex__Equals_ = simd_and(temp8,temp20);
    1449 temp24 = simd_and(temp4,temp10);
    1450 strct_lex__SQuote_ = simd_and(temp3,temp24);
    1451 temp25 = simd_andc(temp5,temp21);
    1452 strct_lex__DQuote_ = simd_and(temp3,temp25);
    1453 strct_lex__Slash_ = simd_and(temp3,temp23);
    1454 temp26 = simd_andc(temp10,temp21);
    1455 strct_lex__Hash_ = simd_and(temp3,temp26);
    1456 temp27 = simd_and(temp16,temp7);
    1457 temp28 = simd_andc(temp9,temp13);
    1458 strct_lex__x_ = simd_and(temp27,temp28);
    1459 temp29 = simd_and(temp9,temp5);
    1460 strct_lex__Colon_ = simd_and(temp8,temp29);
    1461 temp30 = simd_and(temp18,temp23);
    1462 temp31 = simd_or(temp30,strct_lex__Colon_);
    1463 temp32 = simd_andc(temp16,array_bit__2_);
    1464 temp33 = simd_or(array_bit__5_,temp10);
    1465 temp34 = simd_and(array_bit__4_,temp33);
    1466 temp35 = simd_andc(AllOne,temp34);
    1467 temp36 = simd_or(temp21,temp13);
    1468 Temp1 = simd_and(array_bit__3_,temp35);
    1469 Temp2 = simd_andc(temp36,array_bit__3_);
    1470 temp37 = simd_or(Temp1,Temp2);
    1471 temp38 = simd_and(temp32,temp37);
    1472 temp39 = simd_or(temp31,temp38);
    1473 temp40 = simd_and(temp16,array_bit__2_);
    1474 temp41 = simd_and(temp40,temp37);
    1475 strct_lex__ASCII_name_start_ = simd_or(temp39,temp41);
    1476 temp42 = simd_or(temp30,strct_lex__Hyphen_);
    1477 temp43 = simd_and(temp3,temp15);
    1478 temp44 = simd_or(temp42,temp43);
    1479 temp45 = simd_andc(temp8,temp34);
    1480 temp46 = simd_or(temp44,temp45);
    1481 temp47 = simd_or(temp46,temp38);
    1482 strct_lex__ASCII_name_char_ = simd_or(temp47,temp41);
    1483 strct_lex__NameScan_ = simd_or(strct_lex__ASCII_name_char_,array_bit__0_);
    1484 temp48 = simd_or(temp1,array_bit__2_);
    1485 strct_control__x00_x1F_ = simd_andc(AllOne,temp48);
    1486 temp49 = simd_or(array_bit__2_,array_bit__3_);
    1487 temp50 = simd_or(temp1,temp49);
    1488 temp51 = simd_and(temp9,temp19);
    1489 strct_control__SP_ = simd_andc(temp3,temp36);
    1490 temp52 = simd_or(temp20,temp29);
    1491 temp53 = simd_or(temp52,temp51);
    1492 temp54 = simd_andc(temp53,temp50);
    1493 strct_lex__WS_ = simd_or(temp54,strct_control__SP_);
    1494 temp55 = simd_or(array_bit__5_,array_bit__6_);
    1495 temp56 = simd_and(array_bit__4_,temp55);
    1496 strct_lex__Digit_ = simd_andc(temp8,temp56);
    1497 temp57 = simd_andc(temp16,temp49);
    1498 temp58 = simd_andc(temp57,array_bit__4_);
    1499 temp59 = simd_andc(AllOne,temp10);
    1500 Temp3 = simd_and(array_bit__5_,temp59);
    1501 Temp4 = simd_andc(temp13,array_bit__5_);
    1502 temp60 = simd_or(Temp3,Temp4);
    1503 temp61 = simd_and(temp58,temp60);
    1504 temp62 = simd_or(strct_lex__Digit_,temp61);
    1505 temp63 = simd_and(temp16,temp2);
    1506 temp64 = simd_andc(temp63,array_bit__4_);
    1507 temp65 = simd_and(temp64,temp60);
    1508 strct_lex__Hex_ = simd_or(temp62,temp65);
    1509 Temp5 = simd_andc(strct_control__x00_x1F_,strct_lex__WS_);
    1510 xmlchar_error_2 = simd_and(Temp5,EOF_mask);
    1511 strct_u8__suffix_ = AllZero;
    1512 strct_u8__error_ = AllZero;
    1513 FFFE_FFFF = AllZero;
    1514 
    1515 if ((bitblock_has_bit(array_bit__0_))||(test_carry(CarryTemp98))) {
    1516     CarryTemp98 = Carry0;
    1517     strct_u8__prefix_ = simd_and(array_bit__0_,array_bit__1_);
    1518     strct_u8__prefix2_ = simd_andc(strct_u8__prefix_,array_bit__2_);
    1519     strct_u8__prefix3_ = simd_and(strct_u8__prefix_,temp2);
    1520     strct_u8__prefix4_ = simd_and(strct_u8__prefix_,temp7);
    1521     strct_u8__suffix_ = simd_andc(array_bit__0_,array_bit__1_);
    1522     temp66 = simd_andc(strct_u8__prefix_,temp49);
    1523     temp67 = simd_or(temp21,array_bit__6_);
    1524     temp68 = simd_andc(temp66,temp67);
    1525     temp69 = simd_and(array_bit__5_,temp13);
    1526     temp70 = simd_or(array_bit__4_,temp69);
    1527     temp71 = simd_and(strct_u8__prefix4_,temp70);
    1528     strct_u8__badprefix_ = simd_or(temp68,temp71);
    1529     xE0 = simd_andc(strct_u8__prefix3_,temp36);
    1530     xED = simd_and(strct_u8__prefix3_,temp20);
    1531     xF0 = simd_andc(strct_u8__prefix4_,temp36);
    1532     temp72 = simd_andc(temp4,temp13);
    1533     xF4 = simd_and(strct_u8__prefix4_,temp72);
    1534     strct_u8__xA0_xBF_ = simd_and(strct_u8__suffix_,array_bit__2_);
    1535     strct_u8__x80_x9F_ = simd_andc(strct_u8__suffix_,array_bit__2_);
    1536     strct_u8__x90_xBF_ = simd_and(strct_u8__suffix_,temp49);
    1537     strct_u8__x80_x8F_ = simd_andc(strct_u8__suffix_,temp49);
    1538     xEF = simd_and(strct_u8__prefix3_,temp23);
    1539     temp73 = simd_and(strct_u8__suffix_,temp7);
    1540     strct_u8__xBF_ = simd_and(temp73,temp23);
    1541     strct_u8__xBE_ = simd_and(temp73,temp15);
    1542     advance_with_carry(xE0, carry0, strct_u8__xE0_scope_);
    1543     advance_with_carry(xED, carry1, strct_u8__xED_scope_);
    1544     advance_with_carry(xF0, carry2, strct_u8__xF0_scope_);
    1545     advance_with_carry(xF4, carry3, strct_u8__xF4_scope_);
    1546     advance_with_carry(xEF, carry4, strct_u8__xEF_scope_);
    1547     advance_with_carry(strct_u8__prefix2_, carry5, strct_u8__scope22_);
    1548     advance_with_carry(strct_u8__prefix3_, carry6, strct_u8__scope32_);
    1549     advance_with_carry(strct_u8__scope32_, carry7, strct_u8__scope33_);
    1550     advance_with_carry(strct_u8__prefix4_, carry8, strct_u8__scope42_);
    1551     advance_with_carry(strct_u8__scope42_, carry9, strct_u8__scope43_);
    1552     advance_with_carry(strct_u8__scope43_, carry10, strct_u8__scope44_);
    1553     Temp80 = simd_or(strct_u8__scope22_,strct_u8__scope33_);
    1554     u8lastscope = simd_or(Temp80,strct_u8__scope44_);
    1555     Temp84 = simd_or(u8lastscope,strct_u8__scope32_);
    1556     Temp86 = simd_or(Temp84,strct_u8__scope42_);
    1557     u8anyscope = simd_or(Temp86,strct_u8__scope43_);
    1558     u8error1 = simd_and(strct_u8__xE0_scope_,strct_u8__x80_x9F_);
    1559     u8error2 = simd_and(strct_u8__xED_scope_,strct_u8__xA0_xBF_);
    1560     u8error3 = simd_and(strct_u8__xF0_scope_,strct_u8__x80_x8F_);
    1561     u8error4 = simd_and(strct_u8__xF4_scope_,strct_u8__x90_xBF_);
    1562     u8mismatch = simd_xor(u8anyscope,strct_u8__suffix_);
    1563     Temp100 = simd_or(strct_u8__badprefix_,u8error1);
    1564     Temp102 = simd_or(Temp100,u8error2);
    1565     Temp104 = simd_or(Temp102,u8error3);
    1566     Temp106 = simd_or(Temp104,u8error4);
    1567     strct_u8__error_ = simd_or(Temp106,u8mismatch);
    1568     Temp110 = simd_and(strct_u8__xEF_scope_,strct_u8__xBF_);
    1569     Temp113 = simd_and(strct_u8__xEF_scope_,strct_u8__xBF_);
    1570     adc128(Temp110, Temp113, carry11, EF_BF_pending);
    1571     Temp117 = simd_or(strct_u8__xBE_,strct_u8__xBF_);
    1572     FFFE_FFFF = simd_and(EF_BF_pending,Temp117);
    1573 }
    1574 CarryTemp98 = carry_or(carry0, carry1);
    1575 CarryTemp98 = carry_or(CarryTemp98, carry11);
    1576 CarryTemp98 = carry_or(CarryTemp98, carry10);
    1577 CarryTemp98 = carry_or(CarryTemp98, carry9);
    1578 CarryTemp98 = carry_or(CarryTemp98, carry8);
    1579 CarryTemp98 = carry_or(CarryTemp98, carry7);
    1580 CarryTemp98 = carry_or(CarryTemp98, carry6);
    1581 CarryTemp98 = carry_or(CarryTemp98, carry5);
    1582 CarryTemp98 = carry_or(CarryTemp98, carry4);
    1583 CarryTemp98 = carry_or(CarryTemp98, carry3);
    1584 CarryTemp98 = carry_or(CarryTemp98, carry2);
    1585 xmlchar_error = simd_or(xmlchar_error_2,FFFE_FFFF);
    1586 advance_with_carry(strct_lex__LAngle_, carry12, strct_lex__LAngle_scope_);
    1587 advance_with_carry(strct_lex__Hyphen_, carry13, strct_lex__Hyphen_scope_);
    1588 advance_with_carry(strct_lex__QMark_, carry14, strct_lex__QMark_scope_);
    1589 strct_lex__CD_end_ = AllZero;
    1590 
    1591 if ((bitblock_has_bit(strct_lex__RBracket_))||(test_carry(CarryTemp104))) {
    1592     CarryTemp104 = Carry0;
    1593     advance_with_carry(strct_lex__RBracket_, carry15, strct_lex__RBracket_scope_);
    1594     Temp122 = simd_and(strct_lex__RBracket_scope_,strct_lex__RBracket_);
    1595     Temp125 = simd_and(strct_lex__RBracket_scope_,strct_lex__RBracket_);
    1596     adc128(Temp122, Temp125, carry16, Temp126);
    1597     strct_lex__CD_end_ = simd_and(Temp126,strct_lex__RAngle_);
    1598 }
    1599 CarryTemp104 = carry_or(carry15, carry16);
    1600 strct_lex__PI_start_ = simd_and(strct_lex__LAngle_scope_,strct_lex__QMark_);
    1601 strct_lex__CtCD_start_ = simd_and(strct_lex__LAngle_scope_,strct_lex__Exclam_);
    1602 strct_lex__CtCDPI_start_ = simd_or(strct_lex__PI_start_,strct_lex__CtCD_start_);
    1603 strct_lex__DoubleHyphen_ = simd_and(strct_lex__Hyphen_scope_,strct_lex__Hyphen_);
    1604 strct_lex__PI_end_ = simd_and(strct_lex__QMark_scope_,strct_lex__RAngle_);
    1605 strct_CT_callouts__PI_name_ = AllZero;
    1606 PI_starts = AllZero;
    1607 PI_ends = AllZero;
    1608 Ct_starts = AllZero;
    1609 Ct_ends = AllZero;
    1610 CD_starts = AllZero;
    1611 CD_ends = AllZero;
    1612 CtCDPI_starts = AllZero;
    1613 PI_namestarts = AllZero;
    1614 PI_name_ends = AllZero;
    1615 CtCDPI_scan = simd_andc(EOF_mask,strct_lex__CtCDPI_start_);
    1616 Ct_end_scan = simd_andc(EOF_mask,strct_lex__DoubleHyphen_);
    1617 CD_end_scan = simd_andc(EOF_mask,strct_lex__CD_end_);
    1618 PI_end_scan = simd_andc(EOF_mask,strct_lex__PI_end_);
    1619 adc128(CtCDPI_Cursor_0, CtCDPI_scan, carry17, Temp128);
    1620 CtCDPI_Cursor_1 = simd_andc(Temp128,CtCDPI_scan);
    1621 CtCDPI_Cursor = simd_and(CtCDPI_Cursor_1,EOF_mask);
    1622 
    1623 while ((bitblock_has_bit(CtCDPI_Cursor))||(test_carry(CarryTemp128))) {
    1624     CarryTemp128 = Carry0;
    1625     CtCDPI_starts = simd_or(CtCDPI_starts,CtCDPI_Cursor);
    1626     PI_Cursor = simd_and(CtCDPI_Cursor,strct_lex__PI_start_);
    1627     Temp135 = simd_andc(CtCDPI_Cursor,PI_Cursor);
    1628     Temp138 = simd_andc(CtCDPI_Cursor,PI_Cursor);
    1629     adc128(Temp135, Temp138, carry18, CD_Ct_Cursor);
    1630     CD_Cursor = simd_and(CD_Ct_Cursor,strct_lex__LBracket_);
    1631     Ct_Cursor = simd_and(CD_Ct_Cursor,strct_lex__Hyphen_);
    1632     PI_starts = simd_or(PI_starts,PI_Cursor);
    1633     CD_starts = simd_or(CD_starts,CD_Cursor);
    1634     Ct_starts = simd_or(Ct_starts,Ct_Cursor);
    1635     advance_with_carry(Ct_Cursor, carry19, Ct_Cursor);
    1636     Temp154 = simd_andc(Ct_Cursor,strct_lex__Hyphen_);
    1637     Ct_errors = simd_or(Ct_errors,Temp154);
    1638     advance_with_carry(Ct_Cursor, carry20, Ct_Cursor);
    1639     Ct_end_scan = simd_or(Ct_end_scan,Ct_Cursor);
    1640     advance_with_carry(PI_Cursor, carry21, PI_Cursor);
    1641     PI_namestarts = simd_or(PI_namestarts,PI_Cursor);
    1642     adc128(PI_Cursor, strct_lex__NameScan_, carry22, Temp165);
    1643     PI_name_end = simd_andc(Temp165,strct_lex__NameScan_);
    1644     PI_name_ends = simd_or(PI_name_ends,PI_name_end);
    1645     sbb128(PI_name_end, PI_Cursor, carry_brw0, Temp172);
    1646     strct_CT_callouts__PI_name_ = simd_or(strct_CT_callouts__PI_name_,Temp172);
    1647     adc128(PI_name_end, PI_end_scan, carry23, Temp175);
    1648     PI_Cursor = simd_andc(Temp175,PI_end_scan);
    1649     adc128(CD_Cursor, CD_end_scan, carry24, Temp179);
    1650     CD_Cursor = simd_andc(Temp179,CD_end_scan);
    1651     adc128(Ct_Cursor, Ct_end_scan, carry25, Temp183);
    1652     Temp185 = simd_andc(Temp183,Ct_end_scan);
    1653     adc128(Ct_Cursor, Ct_end_scan, carry26, Temp188);
    1654     Temp190 = simd_andc(Temp188,Ct_end_scan);
    1655     adc128(Temp185, Temp190, carry27, Ct_Cursor);
    1656     PI_ends = simd_or(PI_ends,PI_Cursor);
    1657     CD_ends = simd_or(CD_ends,CD_Cursor);
    1658     Ct_ends = simd_or(Ct_ends,Ct_Cursor);
    1659     Temp199 = simd_or(PI_Cursor,CD_Cursor);
    1660     CtCDPI_Cursor = simd_or(Temp199,Ct_Cursor);
    1661     adc128(CtCDPI_Cursor, CtCDPI_scan, carry28, Temp203);
    1662     CtCDPI_Cursor = simd_andc(Temp203,CtCDPI_scan);
    1663     CtCDPI_Cursor = simd_and(CtCDPI_Cursor,EOF_mask);
    1664     Temp209 = simd_or(CD_ends,Ct_ends);
    1665     Temp211 = simd_or(Temp209,PI_ends);
    1666     Temp214 = simd_or(CD_ends,Ct_ends);
    1667     Temp216 = simd_or(Temp214,PI_ends);
    1668     adc128(Temp211, Temp216, carry29, Temp217);
    1669     sbb128(Temp217, CtCDPI_starts, carry_brw1, strct_CT_callouts__CtCDPI_mask_);
    1670     Temp222 = simd_andc(Ct_ends,strct_lex__RAngle_);
    1671     strct_CT_callouts__error_ = simd_or(Ct_errors,Temp222);
    1672     Temp226 = simd_andc(PI_name_ends,strct_lex__WS_);
    1673     Temp229 = simd_andc(PI_name_ends,strct_lex__WS_);
    1674     adc128(Temp226, Temp229, carry30, Temp230);
    1675     Temp232 = simd_andc(Temp230,strct_lex__PI_end_);
    1676     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp232);
    1677     Temp236 = simd_and(PI_namestarts,PI_name_ends);
    1678     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp236);
    1679     Temp240 = simd_andc(strct_CT_callouts__CtCDPI_mask_,EOF_mask);
    1680     strct_CT_callouts__error_ = simd_or(strct_CT_callouts__error_,Temp240);
    1681     carry18_i = carry_or(carry18_i, carry18);
    1682     carry19_i = carry_or(carry19_i, carry19);
    1683     carry20_i = carry_or(carry20_i, carry20);
    1684     carry21_i = carry_or(carry21_i, carry21);
    1685     carry22_i = carry_or(carry22_i, carry22);
    1686     carry_brw0_i = carry_or(carry_brw0_i, carry_brw0);
    1687     carry23_i = carry_or(carry23_i, carry23);
    1688     carry24_i = carry_or(carry24_i, carry24);
    1689     carry25_i = carry_or(carry25_i, carry25);
    1690     carry26_i = carry_or(carry26_i, carry26);
    1691     carry27_i = carry_or(carry27_i, carry27);
    1692     carry28_i = carry_or(carry28_i, carry28);
    1693     carry29_i = carry_or(carry29_i, carry29);
    1694     carry_brw1_i = carry_or(carry_brw1_i, carry_brw1);
    1695     carry30_i = carry_or(carry30_i, carry30);
    1696     carry18 = Carry0;
    1697     carry19 = Carry0;
    1698     carry20 = Carry0;
    1699     carry21 = Carry0;
    1700     carry22 = Carry0;
    1701     carry_brw0 = Carry0;
    1702     carry23 = Carry0;
    1703     carry24 = Carry0;
    1704     carry25 = Carry0;
    1705     carry26 = Carry0;
    1706     carry27 = Carry0;
    1707     carry28 = Carry0;
    1708     carry29 = Carry0;
    1709     carry_brw1 = Carry0;
    1710     carry30 = Carry0;
    1711 }
    1712 carry30 = carry30_i;
    1713 carry_brw1 = carry_brw1_i;
    1714 carry29 = carry29_i;
    1715 carry28 = carry28_i;
    1716 carry27 = carry27_i;
    1717 carry26 = carry26_i;
    1718 carry25 = carry25_i;
    1719 carry24 = carry24_i;
    1720 carry23 = carry23_i;
    1721 carry_brw0 = carry_brw0_i;
    1722 carry22 = carry22_i;
    1723 carry21 = carry21_i;
    1724 carry20 = carry20_i;
    1725 carry19 = carry19_i;
    1726 carry18 = carry18_i;
    1727 carry30_i = Carry0;
    1728 carry_brw1_i = Carry0;
    1729 carry29_i = Carry0;
    1730 carry28_i = Carry0;
    1731 carry27_i = Carry0;
    1732 carry26_i = Carry0;
    1733 carry25_i = Carry0;
    1734 carry24_i = Carry0;
    1735 carry23_i = Carry0;
    1736 carry_brw0_i = Carry0;
    1737 carry22_i = Carry0;
    1738 carry21_i = Carry0;
    1739 carry20_i = Carry0;
    1740 carry19_i = Carry0;
    1741 carry18_i = Carry0;
    1742 CarryTemp128 = carry_or(carry18, carry19);
    1743 CarryTemp128 = carry_or(CarryTemp128, carry30);
    1744 CarryTemp128 = carry_or(CarryTemp128, carry_brw1);
    1745 CarryTemp128 = carry_or(CarryTemp128, carry29);
    1746 CarryTemp128 = carry_or(CarryTemp128, carry28);
    1747 CarryTemp128 = carry_or(CarryTemp128, carry27);
    1748 CarryTemp128 = carry_or(CarryTemp128, carry26);
    1749 CarryTemp128 = carry_or(CarryTemp128, carry25);
    1750 CarryTemp128 = carry_or(CarryTemp128, carry24);
    1751 CarryTemp128 = carry_or(CarryTemp128, carry23);
    1752 CarryTemp128 = carry_or(CarryTemp128, carry_brw0);
    1753 CarryTemp128 = carry_or(CarryTemp128, carry22);
    1754 CarryTemp128 = carry_or(CarryTemp128, carry21);
    1755 CarryTemp128 = carry_or(CarryTemp128, carry20);
    1756 Temp241 = simd_or(strct_lex__WS_,strct_lex__LAngle_);
    1757 Temp242 = simd_or(Ct_ends,PI_ends);
    1758 advance_with_carry(Temp242, carry31, Temp243);
    1759 Temp244 = simd_or(Ct_starts,PI_starts);
    1760 sbb128(Temp243, Temp244, carry_brw2, Temp245);
    1761 Temp246 = simd_or(Temp241,Temp245);
    1762 Temp247 = simd_or(Temp246,CtCDPI_starts);
    1763 Misc_mask = simd_and(Temp247,EOF_mask);
    1764 Temp248 = simd_or(strct_lex__DQuote_,strct_lex__LAngle_);
    1765 DQuoteScan = simd_andc(EOF_mask,Temp248);
    1766 Temp249 = simd_or(strct_lex__SQuote_,strct_lex__LAngle_);
    1767 SQuoteScan = simd_andc(EOF_mask,Temp249);
    1768 AttListDelim = simd_or(strct_lex__Slash_,strct_lex__RAngle_);
    1769 LAngleFollow = simd_andc(strct_lex__LAngle_scope_,strct_CT_callouts__CtCDPI_mask_);
    1770 ElemNamePositions = simd_andc(LAngleFollow,strct_lex__Slash_);
    1771 EndTagSeconds = simd_and(LAngleFollow,strct_lex__Slash_);
    1772 adc128(ElemNamePositions, strct_lex__NameScan_, carry32, Temp250);
    1773 ElemNameFollows = simd_andc(Temp250,strct_lex__NameScan_);
    1774 ParseError_3 = simd_and(ElemNamePositions,ElemNameFollows);
    1775 sbb128(ElemNameFollows, ElemNamePositions, carry_brw3, strct_callouts__ElemNames_);
    1776 AttNameStarts = AllZero;
    1777 AttNameFollows = AllZero;
    1778 EqToCheck = AllZero;
    1779 AttValStarts = AllZero;
    1780 AttValEnds = AllZero;
    1781 AttValFollows = AllZero;
    1782 adc128(ElemNameFollows, strct_lex__WS_, carry33, Temp251);
    1783 AfterWS = simd_andc(Temp251,strct_lex__WS_);
    1784 AttListEnd = simd_and(AfterWS,AttListDelim);
    1785 AttNameStart = simd_andc(AfterWS,AttListDelim);
    1786 Temp252 = simd_and(ElemNameFollows,AttNameStart);
    1787 ParseError_4 = simd_or(ParseError_3,Temp252);
    1788 
    1789 while ((bitblock_has_bit(AttNameStart))||(test_carry(CarryTemp161))) {
    1790     CarryTemp161 = Carry0;
    1791     AttNameStarts = simd_or(AttNameStarts,AttNameStart);
    1792     adc128(AttNameStart, strct_lex__NameScan_, carry34, Temp257);
    1793     AttNameFollow = simd_andc(Temp257,strct_lex__NameScan_);
    1794     AttNameFollows = simd_or(AttNameFollows,AttNameFollow);
    1795     adc128(AttNameFollow, strct_lex__WS_, carry35, Temp263);
    1796     EqExpected = simd_andc(Temp263,strct_lex__WS_);
    1797     EqToCheck = simd_or(EqToCheck,EqExpected);
    1798     Temp270 = simd_or(EqExpected,strct_lex__WS_);
    1799     adc128(EqExpected, Temp270, carry36, Temp271);
    1800     Temp274 = simd_or(EqExpected,strct_lex__WS_);
    1801     AttValPos = simd_andc(Temp271,Temp274);
    1802     AttValStarts = simd_or(AttValStarts,AttValPos);
    1803     DQuoteAttVal = simd_and(AttValPos,strct_lex__DQuote_);
    1804     SQuoteAttVal = simd_and(AttValPos,strct_lex__SQuote_);
    1805     Temp284 = simd_or(DQuoteAttVal,DQuoteScan);
    1806     adc128(DQuoteAttVal, Temp284, carry37, Temp285);
    1807     Temp288 = simd_or(DQuoteAttVal,DQuoteScan);
    1808     DQuoteAttEnd = simd_andc(Temp285,Temp288);
    1809     Temp292 = simd_or(SQuoteAttVal,SQuoteScan);
    1810     adc128(SQuoteAttVal, Temp292, carry38, Temp293);
    1811     Temp296 = simd_or(SQuoteAttVal,SQuoteScan);
    1812     SQuoteAttEnd = simd_andc(Temp293,Temp296);
    1813     AttValEnd = simd_or(DQuoteAttEnd,SQuoteAttEnd);
    1814     AttValEnds = simd_or(AttValEnds,AttValEnd);
    1815     advance_with_carry(AttValEnd, carry39, AttValFollow);
    1816     AttValFollows = simd_or(AttValFollows,AttValFollow);
    1817     adc128(AttValFollow, strct_lex__WS_, carry40, Temp307);
    1818     AfterWS = simd_andc(Temp307,strct_lex__WS_);
    1819     Temp312 = simd_and(AfterWS,AttListDelim);
    1820     AttListEnd = simd_or(AttListEnd,Temp312);
    1821     AttNameStart = simd_andc(AfterWS,AttListDelim);
    1822     carry34_i = carry_or(carry34_i, carry34);
    1823     carry35_i = carry_or(carry35_i, carry35);
    1824     carry36_i = carry_or(carry36_i, carry36);
    1825     carry37_i = carry_or(carry37_i, carry37);
    1826     carry38_i = carry_or(carry38_i, carry38);
    1827     carry39_i = carry_or(carry39_i, carry39);
    1828     carry40_i = carry_or(carry40_i, carry40);
    1829     carry34 = Carry0;
    1830     carry35 = Carry0;
    1831     carry36 = Carry0;
    1832     carry37 = Carry0;
    1833     carry38 = Carry0;
    1834     carry39 = Carry0;
    1835     carry40 = Carry0;
    1836 }
    1837 carry40 = carry40_i;
    1838 carry39 = carry39_i;
    1839 carry38 = carry38_i;
    1840 carry37 = carry37_i;
    1841 carry36 = carry36_i;
    1842 carry35 = carry35_i;
    1843 carry34 = carry34_i;
    1844 carry40_i = Carry0;
    1845 carry39_i = Carry0;
    1846 carry38_i = Carry0;
    1847 carry37_i = Carry0;
    1848 carry36_i = Carry0;
    1849 carry35_i = Carry0;
    1850 carry34_i = Carry0;
    1851 CarryTemp161 = carry_or(carry34, carry35);
    1852 CarryTemp161 = carry_or(CarryTemp161, carry40);
    1853 CarryTemp161 = carry_or(CarryTemp161, carry39);
    1854 CarryTemp161 = carry_or(CarryTemp161, carry38);
    1855 CarryTemp161 = carry_or(CarryTemp161, carry37);
    1856 CarryTemp161 = carry_or(CarryTemp161, carry36);
    1857 sbb128(AttNameFollows, AttNameStarts, carry_brw4, strct_callouts__AttNames_);
    1858 sbb128(AttValFollows, AttValStarts, carry_brw5, strct_callouts__AttVals_);
    1859 STagEnds = simd_and(AttListEnd,strct_lex__RAngle_);
    1860 Temp315 = simd_and(AttListEnd,strct_lex__Slash_);
    1861 advance_with_carry(Temp315, carry41, strct_callouts__EmptyTagMarks_);
    1862 Temp316 = simd_or(STagEnds,strct_callouts__EmptyTagMarks_);
    1863 sbb128(Temp316, ElemNamePositions, carry_brw6, strct_callouts__Tags_);
    1864 Temp317 = simd_and(AttValFollows,AttNameStarts);
    1865 ParseError_5 = simd_or(ParseError_4,Temp317);
    1866 Temp318 = simd_and(AttNameStarts,AttNameFollows);
    1867 ParseError_6 = simd_or(ParseError_5,Temp318);
    1868 Temp319 = simd_andc(EqToCheck,strct_lex__Equals_);
    1869 ParseError_7 = simd_or(ParseError_6,Temp319);
    1870 Temp320 = simd_or(strct_lex__DQuote_,strct_lex__SQuote_);
    1871 Temp321 = simd_andc(AttValStarts,Temp320);
    1872 ParseError_8 = simd_or(ParseError_7,Temp321);
    1873 Temp322 = simd_andc(AttValEnds,Temp320);
    1874 ParseError_9 = simd_or(ParseError_8,Temp322);
    1875 Temp323 = simd_andc(strct_callouts__EmptyTagMarks_,strct_lex__RAngle_);
    1876 ParseError_10 = simd_or(ParseError_9,Temp323);
    1877 Temp324 = simd_or(EndTagSeconds,strct_lex__NameScan_);
    1878 adc128(EndTagSeconds, Temp324, carry42, Temp325);
    1879 Temp326 = simd_andc(Temp325,Temp324);
    1880 adc128(Temp326, strct_lex__WS_, carry43, Temp327);
    1881 EndTagEnds = simd_andc(Temp327,strct_lex__WS_);
    1882 Temp328 = simd_andc(EndTagEnds,strct_lex__RAngle_);
    1883 ParseError = simd_or(ParseError_10,Temp328);
    1884 strct_refs__GenRefs_ = AllZero;
    1885 strct_refs__error_ = AllZero;
    1886 Ref2 = AllZero;
    1887 GenRef2 = AllZero;
    1888 DecRef3 = AllZero;
    1889 HexRef4 = AllZero;
    1890 Ref1 = simd_andc(strct_lex__RefStart_,strct_CT_callouts__CtCDPI_mask_);
    1891 
    1892 if ((bitblock_has_bit(Ref1))||(test_carry(CarryTemp196))) {
    1893     CarryTemp196 = Carry0;
    1894     advance_with_carry(Ref1, carry44, Ref2);
    1895     NumRef2 = simd_and(Ref2,strct_lex__Hash_);
    1896     GenRef2 = simd_andc(Ref2,strct_lex__Hash_);
    1897     advance_with_carry(NumRef2, carry45, NumRef3);
    1898     HexRef3 = simd_and(NumRef3,strct_lex__x_);
    1899     DecRef3 = simd_andc(NumRef3,strct_lex__x_);
    1900     advance_with_carry(HexRef3, carry46, HexRef4);
    1901     adc128(GenRef2, strct_lex__NameScan_, carry47, Temp345);
    1902     GenRefEnds = simd_andc(Temp345,strct_lex__NameScan_);
    1903     adc128(DecRef3, strct_lex__Digit_, carry48, Temp349);
    1904     DecRefEnds = simd_andc(Temp349,strct_lex__Digit_);
    1905     adc128(HexRef4, strct_lex__Hex_, carry49, Temp353);
    1906     HexRefEnds = simd_andc(Temp353,strct_lex__Hex_);
    1907     error1 = simd_andc(DecRef3,strct_lex__Digit_);
    1908     error2 = simd_andc(HexRef4,strct_lex__Hex_);
    1909     Temp361 = simd_or(GenRefEnds,DecRefEnds);
    1910     Temp363 = simd_or(Temp361,HexRefEnds);
    1911     error3 = simd_andc(Temp363,strct_lex__Semicolon_);
    1912     sbb128(GenRefEnds, GenRef2, carry_brw7, strct_refs__GenRefs_);
    1913     Temp369 = simd_or(error1,error2);
    1914     strct_refs__error_ = simd_or(Temp369,error3);
    1915 }
    1916 CarryTemp196 = carry_or(carry44, carry45);
    1917 CarryTemp196 = carry_or(CarryTemp196, carry_brw7);
    1918 CarryTemp196 = carry_or(CarryTemp196, carry49);
    1919 CarryTemp196 = carry_or(CarryTemp196, carry48);
    1920 CarryTemp196 = carry_or(CarryTemp196, carry47);
    1921 CarryTemp196 = carry_or(CarryTemp196, carry46);
    1922 Temp371 = simd_or(strct_CT_callouts__CtCDPI_mask_,strct_callouts__Tags_);
    1923 CD_end_error = simd_andc(strct_lex__CD_end_,Temp371);
    1924 qname_stream = simd_or(strct_callouts__ElemNames_,strct_callouts__AttNames_);
    1925 ncname_stream = simd_or(strct_CT_callouts__PI_name_,strct_refs__GenRefs_);
    1926 name_stream = simd_or(qname_stream,ncname_stream);
    1927 advance_with_carry(name_stream, carry50, Temp372);
    1928 name_start = simd_andc(name_stream,Temp372);
    1929 name_start_check = simd_andc(name_start,strct_lex__ASCII_name_start_);
    1930 Temp373 = simd_andc(name_stream,name_start);
    1931 Temp374 = simd_andc(Temp373,strct_lex__ASCII_name_char_);
    1932 name_check = simd_andc(Temp374,strct_u8__suffix_);
    1933 void_prefix_err = simd_and(name_start,strct_lex__Colon_);
    1934 Temp375 = simd_andc(strct_lex__NameScan_,strct_lex__Colon_);
    1935 adc128(name_start, Temp375, carry51, Temp376);
    1936 Temp377 = simd_andc(Temp376,Temp375);
    1937 namespace_sep = simd_and(Temp377,strct_lex__Colon_);
    1938 advance_with_carry(namespace_sep, carry52, local_part_start);
    1939 local_part_err = simd_andc(local_part_start,strct_lex__NameScan_);
    1940 adc128(local_part_start, Temp375, carry53, Temp378);
    1941 Temp379 = simd_andc(Temp378,Temp375);
    1942 colon2_err = simd_and(Temp379,strct_lex__Colon_);
    1943 ncname_err = simd_and(ncname_stream,strct_lex__Colon_);
    1944 Temp380 = simd_or(void_prefix_err,local_part_err);
    1945 Temp381 = simd_or(Temp380,colon2_err);
    1946 namespace_error = simd_or(Temp381,ncname_err);
    1947 Temp382 = simd_or(strct_u8__error_,xmlchar_error);
    1948 Temp383 = simd_or(Temp382,strct_CT_callouts__error_);
    1949 Temp384 = simd_or(Temp383,ParseError);
    1950 Temp385 = simd_or(Temp384,CD_end_error);
    1951 Temp386 = simd_or(Temp385,strct_refs__error_);
    1952 error_mask = simd_or(Temp386,namespace_error);
    1953 Temp387 = simd_or(strct_callouts__EmptyTagMarks_,LAngleFollow);
    1954 tag_marks = simd_or(Temp387,AttNameStarts);
    1955 NameFollows = simd_or(ElemNameFollows,AttNameFollows);
    1956 AttRef = simd_and(strct_callouts__AttVals_,Ref2);
    1957 
     946        bit[0], bit[1], bit[2], bit[3], bit[4], bit[5], bit[6], bit[7]);
     947
     948       
     949  temp1 = simd_or(bit[0], bit[1]);
     950  temp2 = simd_andc(bit[2], bit[3]);
     951  temp3 = simd_andc(temp2, temp1);
     952  temp4 = simd_andc(bit[5], bit[4]);
     953  temp5 = simd_andc(bit[6], bit[7]);
     954  temp6 = simd_and(temp4, temp5);
     955  lex.RefStart = simd_and(temp3, temp6);
     956  temp7 = simd_and(bit[2], bit[3]);
     957  temp8 = simd_andc(temp7, temp1);
     958  temp9 = simd_andc(bit[4], bit[5]);
     959  temp10 = simd_and(bit[6], bit[7]);
     960  temp11 = simd_and(temp9, temp10);
     961  lex.Semicolon = simd_and(temp8, temp11);
     962  temp12 = simd_and(bit[4], bit[5]);
     963  temp13 = simd_or(bit[6], bit[7]);
     964  temp14 = simd_andc(temp12, temp13);
     965  lex.LAngle = simd_and(temp8, temp14);
     966  temp15 = simd_and(temp12, temp5);
     967  lex.RAngle = simd_and(temp8, temp15);
     968  temp16 = simd_andc(bit[1], bit[0]);
     969  temp17 = simd_andc(bit[3], bit[2]);
     970  temp18 = simd_and(temp16, temp17);
     971  lex.LBracket = simd_and(temp18, temp11);
     972  temp19 = simd_andc(bit[7], bit[6]);
     973  temp20 = simd_and(temp12, temp19);
     974  lex.RBracket = simd_and(temp18, temp20);
     975  temp21 = simd_or(bit[4], bit[5]);
     976  temp22 = simd_andc(temp19, temp21);
     977  lex.Exclam = simd_and(temp3, temp22);
     978  temp23 = simd_and(temp12, temp10);
     979  lex.QMark = simd_and(temp8, temp23);
     980  lex.Hyphen = simd_and(temp3, temp20);
     981  lex.Equals = simd_and(temp8, temp20);
     982  temp24 = simd_and(temp4, temp10);
     983  lex.SQuote = simd_and(temp3, temp24);
     984  temp25 = simd_andc(temp5, temp21);
     985  lex.DQuote = simd_and(temp3, temp25);
     986  lex.Slash = simd_and(temp3, temp23);
     987  temp26 = simd_andc(temp10, temp21);
     988  lex.Hash = simd_and(temp3, temp26);
     989  temp27 = simd_and(temp16, temp7);
     990  temp28 = simd_andc(temp9, temp13);
     991  lex.x = simd_and(temp27, temp28);
     992  temp29 = simd_and(temp9, temp5);
     993  lex.Colon = simd_and(temp8, temp29);
     994  temp30 = simd_and(temp18, temp23);
     995  temp31 = simd_or(temp30, lex.Colon);
     996  temp32 = simd_andc(temp16, bit[2]);
     997  temp33 = simd_or(bit[5], temp10);
     998  temp34 = simd_and(bit[4], temp33);
     999  temp35 = simd_not(temp34);
     1000  temp36 = simd_or(temp21, temp13);
     1001  temp37 = simd_or(simd_and(bit[3], temp35), simd_andc(temp36, bit[3]));
     1002  temp38 = simd_and(temp32, temp37);
     1003  temp39 = simd_or(temp31, temp38);
     1004  temp40 = simd_and(temp16, bit[2]);
     1005  temp41 = simd_and(temp40, temp37);
     1006  lex.ASCII_name_start = simd_or(temp39, temp41);
     1007  temp42 = simd_or(temp30, lex.Hyphen);
     1008  temp43 = simd_and(temp3, temp15);
     1009  temp44 = simd_or(temp42, temp43);
     1010  temp45 = simd_andc(temp8, temp34);
     1011  temp46 = simd_or(temp44, temp45);
     1012  temp47 = simd_or(temp46, temp38);
     1013  lex.ASCII_name_char = simd_or(temp47, temp41);
     1014  lex.NameScan = simd_or(lex.ASCII_name_char, bit[0]);
     1015  temp48 = simd_or(temp1, bit[2]);
     1016  control.x00_x1F = simd_not(temp48);
     1017  temp49 = simd_or(bit[2], bit[3]);
     1018  temp50 = simd_or(temp1, temp49);
     1019  control.CR = simd_andc(temp20, temp50);
     1020  control.LF = simd_andc(temp29, temp50);
     1021  temp51 = simd_and(temp9, temp19);
     1022  control.HT = simd_andc(temp51, temp50);
     1023  control.SP = simd_andc(temp3, temp36);
     1024  temp52 = simd_or(temp20, temp29);
     1025  temp53 = simd_or(temp52, temp51);
     1026  temp54 = simd_andc(temp53, temp50);
     1027  lex.WS = simd_or(temp54, control.SP);
     1028  temp55 = simd_or(bit[5], bit[6]);
     1029  temp56 = simd_and(bit[4], temp55);
     1030  lex.Digit = simd_andc(temp8, temp56);
     1031  temp57 = simd_andc(temp16, temp49);
     1032  temp58 = simd_andc(temp57, bit[4]);
     1033  temp59 = simd_not(temp10);
     1034  temp60 = simd_or(simd_and(bit[5], temp59), simd_andc(temp13, bit[5]));
     1035  temp61 = simd_and(temp58, temp60);
     1036  temp62 = simd_or(lex.Digit, temp61);
     1037  temp63 = simd_and(temp16, temp2);
     1038  temp64 = simd_andc(temp63, bit[4]);
     1039  temp65 = simd_and(temp64, temp60);
     1040  lex.Hex = simd_or(temp62, temp65);
     1041  xmlchar_error = simd_and(simd_andc(control.x00_x1F, lex.WS), EOF_mask);
     1042  u8.unibyte = simd_not(bit[0]);
     1043  u8.suffix = simd_const_1(0);
     1044  u8.error = simd_const_1(0);
     1045  FFFE_FFFF = simd_const_1(0);
     1046  u8anyscope = simd_const_1(0);
     1047  if ((bitblock_has_bit(bit[0]) || CarryTest(carryQ, 0, 12))) {
     1048    u8.prefix = simd_and(bit[0], bit[1]);
     1049    u8.prefix2 = simd_andc(u8.prefix, bit[2]);
     1050    u8.prefix3 = simd_and(u8.prefix, temp2);
     1051    u8.prefix4 = simd_and(u8.prefix, temp7);
     1052    u8.suffix = simd_andc(bit[0], bit[1]);
     1053    temp66 = simd_andc(u8.prefix, temp49);
     1054    temp67 = simd_or(temp21, bit[6]);
     1055    temp68 = simd_andc(temp66, temp67);
     1056    temp69 = simd_and(bit[5], temp13);
     1057    temp70 = simd_or(bit[4], temp69);
     1058    temp71 = simd_and(u8.prefix4, temp70);
     1059    u8.badprefix = simd_or(temp68, temp71);
     1060    u8.error = u8.badprefix;
     1061    u8.scope22 = BitBlock_advance_ci_co(u8.prefix2, carryQ, 0);
     1062    u8anyscope = u8.scope22;
     1063    if ((bitblock_has_bit(simd_or(u8.prefix3, u8.prefix4)) || CarryTest(carryQ, 1, 11))) {
     1064      xE0 = simd_andc(u8.prefix3, temp36);
     1065      xED = simd_and(u8.prefix3, temp20);
     1066      xF0 = simd_andc(u8.prefix4, temp36);
     1067      temp72 = simd_andc(temp4, temp13);
     1068      xF4 = simd_and(u8.prefix4, temp72);
     1069      u8.xA0_xBF = simd_and(u8.suffix, bit[2]);
     1070      u8.x80_x9F = simd_andc(u8.suffix, bit[2]);
     1071      u8.x90_xBF = simd_and(u8.suffix, temp49);
     1072      u8.x80_x8F = simd_andc(u8.suffix, temp49);
     1073      xEF = simd_and(u8.prefix3, temp23);
     1074      temp73 = simd_and(u8.suffix, temp7);
     1075      u8.xBF = simd_and(temp73, temp23);
     1076      u8.xBE = simd_and(temp73, temp15);
     1077      u8.xE0_scope = BitBlock_advance_ci_co(xE0, carryQ, 1);
     1078      u8.xED_scope = BitBlock_advance_ci_co(xED, carryQ, 2);
     1079      u8.xF0_scope = BitBlock_advance_ci_co(xF0, carryQ, 3);
     1080      u8.xF4_scope = BitBlock_advance_ci_co(xF4, carryQ, 4);
     1081      u8.xEF_scope = BitBlock_advance_ci_co(xEF, carryQ, 5);
     1082      u8.scope32 = BitBlock_advance_ci_co(u8.prefix3, carryQ, 6);
     1083      u8.scope33 = BitBlock_advance_ci_co(u8.scope32, carryQ, 7);
     1084      u8.scope42 = BitBlock_advance_ci_co(u8.prefix4, carryQ, 8);
     1085      u8.scope43 = BitBlock_advance_ci_co(u8.scope42, carryQ, 9);
     1086      u8.scope44 = BitBlock_advance_ci_co(u8.scope43, carryQ, 10);
     1087      u8lastscope = simd_or(simd_or(u8.scope22, u8.scope33), u8.scope44);
     1088      u8anyscope = simd_or(simd_or(simd_or(u8lastscope, u8.scope32), u8.scope42), u8.scope43);
     1089      u8error1 = simd_and(u8.xE0_scope, u8.x80_x9F);
     1090      u8error2 = simd_and(u8.xED_scope, u8.xA0_xBF);
     1091      u8error3 = simd_and(u8.xF0_scope, u8.x80_x8F);
     1092      u8error4 = simd_and(u8.xF4_scope, u8.x90_xBF);
     1093      u8.error = simd_or(u8.error, simd_or(simd_or(simd_or(u8error1, u8error2), u8error3), u8error4));
     1094      EF_BF_pending = BitBlock_advance_ci_co(simd_and(u8.xEF_scope, u8.xBF), carryQ, 11);
     1095      FFFE_FFFF = simd_and(EF_BF_pending, simd_or(u8.xBE, u8.xBF));
     1096    }
     1097    else {
     1098      CarryDequeueEnqueue(carryQ, 1, 11);
     1099    }
     1100  }
     1101  else {
     1102    CarryDequeueEnqueue(carryQ, 0, 12);
     1103  }
     1104  u8mismatch = simd_xor(u8anyscope, u8.suffix);
     1105  u8.error = simd_or(u8.error, u8mismatch);
     1106  xmlchar_error = simd_or(xmlchar_error, FFFE_FFFF);
     1107  lex.LAngle_scope = BitBlock_advance_ci_co(lex.LAngle, carryQ, 12);
     1108  lex.Hyphen_scope = BitBlock_advance_ci_co(lex.Hyphen, carryQ, 13);
     1109  lex.QMark_scope = BitBlock_advance_ci_co(lex.QMark, carryQ, 14);
     1110  lex.CD_end = simd_const_1(0);
     1111  if ((bitblock_has_bit(lex.RBracket) || CarryTest(carryQ, 15, 2))) {
     1112    lex.RBracket_scope = BitBlock_advance_ci_co(lex.RBracket, carryQ, 15);
     1113    lex.CD_end = simd_and(BitBlock_advance_ci_co(simd_and(lex.RBracket_scope, lex.RBracket), carryQ, 16), lex.RAngle);
     1114  }
     1115  else {
     1116    CarryDequeueEnqueue(carryQ, 15, 2);
     1117  }
     1118  lex.PI_start = simd_and(lex.LAngle_scope, lex.QMark);
     1119  lex.CtCD_start = simd_and(lex.LAngle_scope, lex.Exclam);
     1120  lex.CtCDPI_start = simd_or(lex.PI_start, lex.CtCD_start);
     1121  lex.EndTag_start = simd_and(lex.LAngle_scope, lex.Slash);
     1122  lex.DoubleHyphen = simd_and(lex.Hyphen_scope, lex.Hyphen);
     1123  lex.PI_end = simd_and(lex.QMark_scope, lex.RAngle);
     1124  cT_callouts.PI_name = simd_const_1(0);
     1125  PI_starts = simd_const_1(0);
     1126  PI_ends = simd_const_1(0);
     1127  Ct_starts = simd_const_1(0);
     1128  Ct_ends = simd_const_1(0);
     1129  CD_starts = simd_const_1(0);
     1130  CD_ends = simd_const_1(0);
     1131  CtCDPI_starts = simd_const_1(0);
     1132  PI_namestarts = simd_const_1(0);
     1133  PI_name_ends = simd_const_1(0);
     1134  CtCDPI_scan = simd_andc(EOF_mask, lex.CtCDPI_start);
     1135  Ct_end_scan = simd_andc(EOF_mask, lex.DoubleHyphen);
     1136  CD_end_scan = simd_andc(EOF_mask, lex.CD_end);
     1137  PI_end_scan = simd_andc(EOF_mask, lex.PI_end);
     1138  CtCDPI_Cursor = BitBlock_scanthru_ci_co(CtCDPI_Cursor, CtCDPI_scan, carryQ, 17);
     1139  CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     1140  if ((bitblock_has_bit(CtCDPI_Cursor) || CarryTest(carryQ, 18, 14))) {
     1141    CtCDPI_starts = simd_or(CtCDPI_starts, CtCDPI_Cursor);
     1142    PI_Cursor = simd_and(CtCDPI_Cursor, lex.PI_start);
     1143    CD_Ct_Cursor = BitBlock_advance_ci_co(simd_andc(CtCDPI_Cursor, PI_Cursor), carryQ, 18);
     1144    CD_Cursor = simd_and(CD_Ct_Cursor, lex.LBracket);
     1145    Ct_Cursor = simd_and(CD_Ct_Cursor, lex.Hyphen);
     1146    PI_starts = simd_or(PI_starts, PI_Cursor);
     1147    CD_starts = simd_or(CD_starts, CD_Cursor);
     1148    Ct_starts = simd_or(Ct_starts, Ct_Cursor);
     1149    Ct_Cursor = BitBlock_advance_ci_co(Ct_Cursor, carryQ, 19);
     1150    Ct_errors = simd_or(Ct_errors, simd_andc(Ct_Cursor, lex.Hyphen));
     1151    Ct_Cursor = BitBlock_advance_ci_co(Ct_Cursor, carryQ, 20);
     1152    Ct_end_scan = simd_or(Ct_end_scan, Ct_Cursor);
     1153    PI_Cursor = BitBlock_advance_ci_co(PI_Cursor, carryQ, 21);
     1154    PI_namestarts = simd_or(PI_namestarts, PI_Cursor);
     1155    PI_name_end = BitBlock_scanthru_ci_co(PI_Cursor, lex.NameScan, carryQ, 22);
     1156    PI_name_ends = simd_or(PI_name_ends, PI_name_end);
     1157    cT_callouts.PI_name = simd_or(cT_callouts.PI_name, BitBlock_sub_ci_co(PI_name_end, PI_Cursor, carryQ, 23));
     1158    PI_Cursor = BitBlock_scanthru_ci_co(PI_name_end, PI_end_scan, carryQ, 24);
     1159    CD_Cursor = BitBlock_scanthru_ci_co(CD_Cursor, CD_end_scan, carryQ, 25);
     1160    Ct_Cursor = BitBlock_advance_ci_co(BitBlock_scanthru_ci_co(Ct_Cursor, Ct_end_scan, carryQ, 26), carryQ, 27);
     1161    PI_ends = simd_or(PI_ends, PI_Cursor);
     1162    CD_ends = simd_or(CD_ends, CD_Cursor);
     1163    Ct_ends = simd_or(Ct_ends, Ct_Cursor);
     1164    CtCDPI_Cursor = simd_or(simd_or(PI_Cursor, CD_Cursor), Ct_Cursor);
     1165    CtCDPI_Cursor = BitBlock_scanthru_ci_co(CtCDPI_Cursor, CtCDPI_scan, carryQ, 28);
     1166    CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     1167    cT_callouts.CtCDPI_mask = BitBlock_sub_ci_co(BitBlock_advance_ci_co(simd_or(simd_or(CD_ends, Ct_ends), PI_ends), carryQ, 29), CtCDPI_starts, carryQ, 30);
     1168    cT_callouts.error = simd_or(Ct_errors, simd_andc(Ct_ends, lex.RAngle));
     1169    cT_callouts.error = simd_or(cT_callouts.error, simd_andc(BitBlock_advance_ci_co(simd_andc(PI_name_ends, lex.WS), carryQ, 31), lex.PI_end));
     1170    cT_callouts.error = simd_or(cT_callouts.error, simd_and(PI_namestarts, PI_name_ends));
     1171    cT_callouts.error = simd_or(cT_callouts.error, simd_andc(cT_callouts.CtCDPI_mask, EOF_mask));
     1172    while (bitblock_has_bit(CtCDPI_Cursor)) {
     1173      CarryDeclare(subcarryQ, 14);
     1174      CtCDPI_starts = simd_or(CtCDPI_starts, CtCDPI_Cursor);
     1175      PI_Cursor = simd_and(CtCDPI_Cursor, lex.PI_start);
     1176      CD_Ct_Cursor = BitBlock_advance_co(simd_andc(CtCDPI_Cursor, PI_Cursor), subcarryQ, 0);
     1177      CD_Cursor = simd_and(CD_Ct_Cursor, lex.LBracket);
     1178      Ct_Cursor = simd_and(CD_Ct_Cursor, lex.Hyphen);
     1179      PI_starts = simd_or(PI_starts, PI_Cursor);
     1180      CD_starts = simd_or(CD_starts, CD_Cursor);
     1181      Ct_starts = simd_or(Ct_starts, Ct_Cursor);
     1182      Ct_Cursor = BitBlock_advance_co(Ct_Cursor, subcarryQ, 1);
     1183      Ct_errors = simd_or(Ct_errors, simd_andc(Ct_Cursor, lex.Hyphen));
     1184      Ct_Cursor = BitBlock_advance_co(Ct_Cursor, subcarryQ, 2);
     1185      Ct_end_scan = simd_or(Ct_end_scan, Ct_Cursor);
     1186      PI_Cursor = BitBlock_advance_co(PI_Cursor, subcarryQ, 3);
     1187      PI_namestarts = simd_or(PI_namestarts, PI_Cursor);
     1188      PI_name_end = BitBlock_scanthru_co(PI_Cursor, lex.NameScan, subcarryQ, 4);
     1189      PI_name_ends = simd_or(PI_name_ends, PI_name_end);
     1190      cT_callouts.PI_name = simd_or(cT_callouts.PI_name, BitBlock_sub_co(PI_name_end, PI_Cursor, subcarryQ, 5));
     1191      PI_Cursor = BitBlock_scanthru_co(PI_name_end, PI_end_scan, subcarryQ, 6);
     1192      CD_Cursor = BitBlock_scanthru_co(CD_Cursor, CD_end_scan, subcarryQ, 7);
     1193      Ct_Cursor = BitBlock_advance_co(BitBlock_scanthru_co(Ct_Cursor, Ct_end_scan, subcarryQ, 8), subcarryQ, 9);
     1194      PI_ends = simd_or(PI_ends, PI_Cursor);
     1195      CD_ends = simd_or(CD_ends, CD_Cursor);
     1196      Ct_ends = simd_or(Ct_ends, Ct_Cursor);
     1197      CtCDPI_Cursor = simd_or(simd_or(PI_Cursor, CD_Cursor), Ct_Cursor);
     1198      CtCDPI_Cursor = BitBlock_scanthru_co(CtCDPI_Cursor, CtCDPI_scan, subcarryQ, 10);
     1199      CtCDPI_Cursor = simd_and(CtCDPI_Cursor, EOF_mask);
     1200      cT_callouts.CtCDPI_mask = BitBlock_sub_co(BitBlock_advance_co(simd_or(simd_or(CD_ends, Ct_ends), PI_ends), subcarryQ, 11), CtCDPI_starts, subcarryQ, 12);
     1201      cT_callouts.error = simd_or(Ct_errors, simd_andc(Ct_ends, lex.RAngle));
     1202      cT_callouts.error = simd_or(cT_callouts.error, simd_andc(BitBlock_advance_co(simd_andc(PI_name_ends, lex.WS), subcarryQ, 13), lex.PI_end));
     1203      cT_callouts.error = simd_or(cT_callouts.error, simd_and(PI_namestarts, PI_name_ends));
     1204      cT_callouts.error = simd_or(cT_callouts.error, simd_andc(cT_callouts.CtCDPI_mask, EOF_mask));
     1205      CarryCombine(carryQ, subcarryQ, 18, 14);
     1206    }
     1207  }
     1208  else {
     1209    CarryDequeueEnqueue(carryQ, 18, 14);
     1210  }
     1211  Misc_mask = simd_and(simd_or(simd_or(simd_or(lex.WS, lex.LAngle), BitBlock_sub_ci_co(BitBlock_advance_ci_co(simd_or(Ct_ends, PI_ends), carryQ, 32), simd_or(Ct_starts, PI_starts), carryQ, 33)), CtCDPI_starts), EOF_mask);
     1212  DQuoteScan = simd_andc(EOF_mask, simd_or(lex.DQuote, lex.LAngle));
     1213  SQuoteScan = simd_andc(EOF_mask, simd_or(lex.SQuote, lex.LAngle));
     1214  AttListDelim = simd_or(lex.Slash, lex.RAngle);
     1215  LAngleFollow = simd_andc(lex.LAngle_scope, cT_callouts.CtCDPI_mask);
     1216  ElemNamePositions = simd_andc(LAngleFollow, lex.Slash);
     1217  EndTagSeconds = simd_and(LAngleFollow, lex.Slash);
     1218  ElemNameFollows = BitBlock_scanthru_ci_co(ElemNamePositions, lex.NameScan, carryQ, 34);
     1219  ParseError = simd_and(ElemNamePositions, ElemNameFollows);
     1220  callouts.ElemNames = BitBlock_sub_ci_co(ElemNameFollows, ElemNamePositions, carryQ, 35);
     1221  AttNameStarts = simd_const_1(0);
     1222  AttNameFollows = simd_const_1(0);
     1223  EqToCheck = simd_const_1(0);
     1224  AttValStarts = simd_const_1(0);
     1225  AttValEnds = simd_const_1(0);
     1226  AttValFollows = simd_const_1(0);
     1227  AfterWS = BitBlock_scanthru_ci_co(ElemNameFollows, lex.WS, carryQ, 36);
     1228  AttListEnd = simd_and(AfterWS, AttListDelim);
     1229  AttNameStart = simd_andc(AfterWS, AttListDelim);
     1230  ParseError = simd_or(ParseError, simd_and(ElemNameFollows, AttNameStart));
     1231  if ((bitblock_has_bit(AttNameStart) || CarryTest(carryQ, 37, 7))) {
     1232    AttNameStarts = simd_or(AttNameStarts, AttNameStart);
     1233    AttNameFollow = BitBlock_scanthru_ci_co(AttNameStart, lex.NameScan, carryQ, 37);
     1234    AttNameFollows = simd_or(AttNameFollows, AttNameFollow);
     1235    EqExpected = BitBlock_scanthru_ci_co(AttNameFollow, lex.WS, carryQ, 38);
     1236    EqToCheck = simd_or(EqToCheck, EqExpected);
     1237    AttValPos = BitBlock_scanthru_ci_co(EqExpected, simd_or(EqExpected, lex.WS), carryQ, 39);
     1238    AttValStarts = simd_or(AttValStarts, AttValPos);
     1239    DQuoteAttVal = simd_and(AttValPos, lex.DQuote);
     1240    SQuoteAttVal = simd_and(AttValPos, lex.SQuote);
     1241    DQuoteAttEnd = BitBlock_scanthru_ci_co(DQuoteAttVal, simd_or(DQuoteAttVal, DQuoteScan), carryQ, 40);
     1242    SQuoteAttEnd = BitBlock_scanthru_ci_co(SQuoteAttVal, simd_or(SQuoteAttVal, SQuoteScan), carryQ, 41);
     1243    AttValEnd = simd_or(DQuoteAttEnd, SQuoteAttEnd);
     1244    AttValEnds = simd_or(AttValEnds, AttValEnd);
     1245    AttValFollow = BitBlock_advance_ci_co(AttValEnd, carryQ, 42);
     1246    AttValFollows = simd_or(AttValFollows, AttValFollow);
     1247    AfterWS = BitBlock_scanthru_ci_co(AttValFollow, lex.WS, carryQ, 43);
     1248    AttListEnd = simd_or(AttListEnd, simd_and(AfterWS, AttListDelim));
     1249    AttNameStart = simd_andc(AfterWS, AttListDelim);
     1250    while (bitblock_has_bit(AttNameStart)) {
     1251      CarryDeclare(subcarryQ, 7);
     1252      AttNameStarts = simd_or(AttNameStarts, AttNameStart);
     1253      AttNameFollow = BitBlock_scanthru_co(AttNameStart, lex.NameScan, subcarryQ, 0);
     1254      AttNameFollows = simd_or(AttNameFollows, AttNameFollow);
     1255      EqExpected = BitBlock_scanthru_co(AttNameFollow, lex.WS, subcarryQ, 1);
     1256      EqToCheck = simd_or(EqToCheck, EqExpected);
     1257      AttValPos = BitBlock_scanthru_co(EqExpected, simd_or(EqExpected, lex.WS), subcarryQ, 2);
     1258      AttValStarts = simd_or(AttValStarts, AttValPos);
     1259      DQuoteAttVal = simd_and(AttValPos, lex.DQuote);
     1260      SQuoteAttVal = simd_and(AttValPos, lex.SQuote);
     1261      DQuoteAttEnd = BitBlock_scanthru_co(DQuoteAttVal, simd_or(DQuoteAttVal, DQuoteScan), subcarryQ, 3);
     1262      SQuoteAttEnd = BitBlock_scanthru_co(SQuoteAttVal, simd_or(SQuoteAttVal, SQuoteScan), subcarryQ, 4);
     1263      AttValEnd = simd_or(DQuoteAttEnd, SQuoteAttEnd);
     1264      AttValEnds = simd_or(AttValEnds, AttValEnd);
     1265      AttValFollow = BitBlock_advance_co(AttValEnd, subcarryQ, 5);
     1266      AttValFollows = simd_or(AttValFollows, AttValFollow);
     1267      AfterWS = BitBlock_scanthru_co(AttValFollow, lex.WS, subcarryQ, 6);
     1268      AttListEnd = simd_or(AttListEnd, simd_and(AfterWS, AttListDelim));
     1269      AttNameStart = simd_andc(AfterWS, AttListDelim);
     1270      CarryCombine(carryQ, subcarryQ, 37, 7);
     1271    }
     1272  }
     1273  else {
     1274    CarryDequeueEnqueue(carryQ, 37, 7);
     1275  }
     1276  callouts.AttNames = BitBlock_sub_ci_co(AttNameFollows, AttNameStarts, carryQ, 44);
     1277  callouts.AttVals = BitBlock_sub_ci_co(AttValFollows, AttValStarts, carryQ, 45);
     1278  STagEnds = simd_and(AttListEnd, lex.RAngle);
     1279  callouts.EmptyTagMarks = BitBlock_advance_ci_co(simd_and(AttListEnd, lex.Slash), carryQ, 46);
     1280  callouts.Tags = BitBlock_sub_ci_co(simd_or(STagEnds, callouts.EmptyTagMarks), ElemNamePositions, carryQ, 47);
     1281  ParseError = simd_or(ParseError, simd_and(AttValFollows, AttNameStarts));
     1282  ParseError = simd_or(ParseError, simd_and(AttNameStarts, AttNameFollows));
     1283  ParseError = simd_or(ParseError, simd_andc(EqToCheck, lex.Equals));
     1284  ParseError = simd_or(ParseError, simd_andc(AttValStarts, simd_or(lex.DQuote, lex.SQuote)));
     1285  ParseError = simd_or(ParseError, simd_andc(AttValEnds, simd_or(lex.DQuote, lex.SQuote)));
     1286  ParseError = simd_or(ParseError, simd_andc(callouts.EmptyTagMarks, lex.RAngle));
     1287  EndTagEnds = BitBlock_scanthru_ci_co(BitBlock_scanthru_ci_co(EndTagSeconds, simd_or(EndTagSeconds, lex.NameScan), carryQ, 48), lex.WS, carryQ, 49);
     1288  ParseError = simd_or(ParseError, simd_andc(EndTagEnds, lex.RAngle));
     1289  callouts.error = ParseError;
     1290  refs.GenRefs = simd_const_1(0);
     1291  refs.error = simd_const_1(0);
     1292  Ref2 = simd_const_1(0);
     1293  GenRef2 = simd_const_1(0);
     1294  DecRef3 = simd_const_1(0);
     1295  HexRef4 = simd_const_1(0);
     1296  Ref1 = simd_andc(lex.RefStart, cT_callouts.CtCDPI_mask);
     1297  if ((bitblock_has_bit(Ref1) || CarryTest(carryQ, 50, 7))) {
     1298    Ref2 = BitBlock_advance_ci_co(Ref1, carryQ, 50);
     1299    NumRef2 = simd_and(Ref2, lex.Hash);
     1300    GenRef2 = simd_andc(Ref2, lex.Hash);
     1301    NumRef3 = BitBlock_advance_ci_co(NumRef2, carryQ, 51);
     1302    HexRef3 = simd_and(NumRef3, lex.x);
     1303    DecRef3 = simd_andc(NumRef3, lex.x);
     1304    HexRef4 = BitBlock_advance_ci_co(HexRef3, carryQ, 52);
     1305    GenRefEnds = BitBlock_scanthru_ci_co(GenRef2, lex.NameScan, carryQ, 53);
     1306    DecRefEnds = BitBlock_scanthru_ci_co(DecRef3, lex.Digit, carryQ, 54);
     1307    HexRefEnds = BitBlock_scanthru_ci_co(HexRef4, lex.Hex, carryQ, 55);
     1308    error1 = simd_andc(DecRef3, lex.Digit);
     1309    error2 = simd_andc(HexRef4, lex.Hex);
     1310    error3 = simd_andc(simd_or(simd_or(GenRefEnds, DecRefEnds), HexRefEnds), lex.Semicolon);
     1311    refs.GenRefs = BitBlock_sub_ci_co(GenRefEnds, GenRef2, carryQ, 56);
     1312    refs.error = simd_or(simd_or(error1, error2), error3);
     1313  }
     1314  else {
     1315    CarryDequeueEnqueue(carryQ, 50, 7);
     1316  }
     1317  CD_end_error = simd_andc(lex.CD_end, simd_or(cT_callouts.CtCDPI_mask, callouts.Tags));
     1318  qname_stream = simd_or(callouts.ElemNames, callouts.AttNames);
     1319  ncname_stream = simd_or(cT_callouts.PI_name, refs.GenRefs);
     1320  name_stream = simd_or(qname_stream, ncname_stream);
     1321  name_start = simd_andc(name_stream, BitBlock_advance_ci_co(name_stream, carryQ, 57));
     1322  name_start_check = simd_andc(name_start, lex.ASCII_name_start);
     1323  name_check = simd_andc(simd_andc(simd_andc(name_stream, name_start), lex.ASCII_name_char), u8.suffix);
     1324  name_cursor = simd_andc(name_stream, BitBlock_advance_ci_co(name_stream, carryQ, 58));
     1325  void_prefix_err = simd_and(name_cursor, lex.Colon);
     1326  namespace_sep = simd_and(BitBlock_scanthru_ci_co(name_cursor, simd_andc(lex.NameScan, lex.Colon), carryQ, 59), lex.Colon);
     1327  local_part_start = BitBlock_advance_ci_co(namespace_sep, carryQ, 60);
     1328  local_part_err = simd_andc(local_part_start, lex.NameScan);
     1329  colon2_err = simd_and(BitBlock_scanthru_ci_co(local_part_start, simd_andc(lex.NameScan, lex.Colon), carryQ, 61), lex.Colon);
     1330  ncname_err = simd_and(ncname_stream, lex.Colon);
     1331  namespace_error = simd_or(simd_or(simd_or(void_prefix_err, local_part_err), colon2_err), ncname_err);
     1332  error_mask = simd_or(simd_or(simd_or(simd_or(simd_or(simd_or(u8.error, xmlchar_error), cT_callouts.error), callouts.error), CD_end_error), refs.error), namespace_error);
     1333  tag_marks = simd_or(simd_or(callouts.EmptyTagMarks, LAngleFollow), AttNameStarts);
     1334  NameFollows = simd_or(ElemNameFollows, AttNameFollows);
     1335  AttRef = simd_and(callouts.AttVals, Ref2);
     1336  CtCDPI_Cursor = simd_const_1(0);
    19581337       
    19591338        if (bitblock_has_bit(error_mask)) {
     
    19981377    }
    19991378
     1379
    20001380    t.StreamScan(chars_avail);
    20011381    t.Advance_buffer();
     1382
    20021383
    20031384    PERF_SEC_END(parser_timer, chars_avail);
Note: See TracChangeset for help on using the changeset viewer.