2
0

BoiHardFail.baseline 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681
  1. REGEX AST /^token/ {
  2. Concat()
  3. {
  4. BOL()
  5. MatchLiteral("token")
  6. }
  7. }
  8. REGEX ANNOTATED AST /^token/ {
  9. Concat()
  10. <
  11. features: {BOL,MatchLiteral,Concat}
  12. firstSet: [\x00-\uffff]
  13. followSet: [\x00-\uffff]
  14. prevConsumes: [0]
  15. thisConsumes: [5]
  16. followConsumes: [0]
  17. isThisIrrefutable: false
  18. isFollowIrrefutable: true
  19. isWord: false
  20. isThisWillNotProgress: true
  21. isThisWillNotRegress: true
  22. isPrevWillNotProgress: false
  23. isPrevWillNotRegress: true
  24. isDeterministic: true
  25. isNotInLoop: true
  26. isNotNegated: true
  27. isAtLeastOnce: true
  28. hasInitialHardFailBOI: true
  29. >
  30. {
  31. BOL()
  32. <
  33. features: {BOL}
  34. firstSet: [\x00-\uffff]
  35. followSet: [t]
  36. prevConsumes: [0]
  37. thisConsumes: [0]
  38. followConsumes: [5]
  39. isThisIrrefutable: false
  40. isFollowIrrefutable: false
  41. isWord: false
  42. isThisWillNotProgress: true
  43. isThisWillNotRegress: true
  44. isPrevWillNotProgress: false
  45. isPrevWillNotRegress: true
  46. isDeterministic: true
  47. isNotInLoop: true
  48. isNotNegated: true
  49. isAtLeastOnce: true
  50. hasInitialHardFailBOI: true
  51. >
  52. MatchLiteral("token")
  53. <
  54. features: {MatchLiteral}
  55. firstSet: [t] (exact)
  56. followSet: [\x00-\uffff]
  57. prevConsumes: [0]
  58. thisConsumes: [5]
  59. followConsumes: [0]
  60. isThisIrrefutable: false
  61. isFollowIrrefutable: true
  62. isWord: true
  63. isThisWillNotProgress: true
  64. isThisWillNotRegress: true
  65. isPrevWillNotProgress: false
  66. isPrevWillNotRegress: true
  67. isDeterministic: true
  68. isNotInLoop: true
  69. isNotNegated: true
  70. isAtLeastOnce: true
  71. hasInitialHardFailBOI: false
  72. >
  73. }
  74. }
  75. REGEX PROGRAM /^token/
  76. Program {
  77. source: ^token
  78. flags:
  79. numGroups: 1
  80. numLoops: 0
  81. instructions: {
  82. BOITest(hardFail: true)
  83. L0000: MatchLiteral(literal: "token")
  84. L0001: Succ()
  85. }
  86. }
  87. REGEX AST /(\w)?^token/ {
  88. Concat()
  89. {
  90. Loop([0-1], greedy)
  91. {
  92. DefineGroup(1)
  93. {
  94. MatchSet(positive, [0-9A-Z_a-z])
  95. }
  96. }
  97. BOL()
  98. MatchLiteral("token")
  99. }
  100. }
  101. REGEX ANNOTATED AST /(\w)?^token/ {
  102. Concat()
  103. <
  104. features: {BOL,MatchLiteral,Concat,DefineGroup,Loop,MatchSet}
  105. firstSet: [\x00-\uffff]
  106. followSet: [\x00-\uffff]
  107. prevConsumes: [0]
  108. thisConsumes: [5-6]
  109. followConsumes: [0]
  110. isThisIrrefutable: false
  111. isFollowIrrefutable: true
  112. isWord: false
  113. isThisWillNotProgress: true
  114. isThisWillNotRegress: false
  115. isPrevWillNotProgress: false
  116. isPrevWillNotRegress: true
  117. isDeterministic: false
  118. isNotInLoop: true
  119. isNotNegated: true
  120. isAtLeastOnce: true
  121. hasInitialHardFailBOI: false
  122. >
  123. {
  124. Loop([0-1], greedy)
  125. <
  126. features: {DefineGroup,Loop,MatchSet}
  127. firstSet: [0-9A-Z_a-z]
  128. followSet: [\x00-\uffff]
  129. prevConsumes: [0]
  130. thisConsumes: [0-1]
  131. followConsumes: [5]
  132. isThisIrrefutable: true
  133. isFollowIrrefutable: false
  134. isWord: false
  135. isThisWillNotProgress: true
  136. isThisWillNotRegress: false
  137. isPrevWillNotProgress: false
  138. isPrevWillNotRegress: true
  139. isDeterministic: false
  140. isNotInLoop: true
  141. isNotNegated: true
  142. isAtLeastOnce: true
  143. hasInitialHardFailBOI: false
  144. >
  145. {
  146. DefineGroup(1)
  147. <
  148. features: {DefineGroup,MatchSet}
  149. firstSet: [0-9A-Z_a-z] (exact)
  150. followSet: [\x00-\uffff]
  151. prevConsumes: [0]
  152. thisConsumes: [1]
  153. followConsumes: [5]
  154. isThisIrrefutable: false
  155. isFollowIrrefutable: false
  156. isWord: true
  157. isThisWillNotProgress: true
  158. isThisWillNotRegress: true
  159. isPrevWillNotProgress: false
  160. isPrevWillNotRegress: false
  161. isDeterministic: true
  162. isNotInLoop: false
  163. isNotNegated: true
  164. isAtLeastOnce: false
  165. hasInitialHardFailBOI: false
  166. >
  167. {
  168. MatchSet(positive, [0-9A-Z_a-z])
  169. <
  170. features: {MatchSet}
  171. firstSet: [0-9A-Z_a-z] (exact)
  172. followSet: [\x00-\uffff]
  173. prevConsumes: [0]
  174. thisConsumes: [1]
  175. followConsumes: [5]
  176. isThisIrrefutable: false
  177. isFollowIrrefutable: false
  178. isWord: true
  179. isThisWillNotProgress: true
  180. isThisWillNotRegress: true
  181. isPrevWillNotProgress: false
  182. isPrevWillNotRegress: false
  183. isDeterministic: true
  184. isNotInLoop: false
  185. isNotNegated: true
  186. isAtLeastOnce: false
  187. hasInitialHardFailBOI: false
  188. >
  189. }
  190. }
  191. BOL()
  192. <
  193. features: {BOL}
  194. firstSet: [\x00-\uffff]
  195. followSet: [t]
  196. prevConsumes: [0-1]
  197. thisConsumes: [0]
  198. followConsumes: [5]
  199. isThisIrrefutable: false
  200. isFollowIrrefutable: false
  201. isWord: false
  202. isThisWillNotProgress: true
  203. isThisWillNotRegress: true
  204. isPrevWillNotProgress: false
  205. isPrevWillNotRegress: false
  206. isDeterministic: true
  207. isNotInLoop: true
  208. isNotNegated: true
  209. isAtLeastOnce: true
  210. hasInitialHardFailBOI: false
  211. >
  212. MatchLiteral("token")
  213. <
  214. features: {MatchLiteral}
  215. firstSet: [t] (exact)
  216. followSet: [\x00-\uffff]
  217. prevConsumes: [0-1]
  218. thisConsumes: [5]
  219. followConsumes: [0]
  220. isThisIrrefutable: false
  221. isFollowIrrefutable: true
  222. isWord: true
  223. isThisWillNotProgress: true
  224. isThisWillNotRegress: true
  225. isPrevWillNotProgress: false
  226. isPrevWillNotRegress: false
  227. isDeterministic: true
  228. isNotInLoop: true
  229. isNotNegated: true
  230. isAtLeastOnce: true
  231. hasInitialHardFailBOI: false
  232. >
  233. }
  234. }
  235. REGEX PROGRAM /(\w)?^token/
  236. Program {
  237. source: (\w)?^token
  238. flags:
  239. numGroups: 2
  240. numLoops: 0
  241. instructions: {
  242. L0000: SyncToLiteralAndBackup(literal: "token" (with full map Boyer-Moore scanner), backup: [0-1])
  243. L0001: TryMatchSet(set: [0-9A-Z_a-z], failLabel: Lffff)
  244. L0002: DefineGroupFixed(groupId: 1, length: 1, noNeedToSave: false)
  245. L0003: BOITest(hardFail: false)
  246. L0004: MatchLiteral(literal: "token")
  247. L0005: Succ()
  248. }
  249. }
  250. REGEX AST /token/ {
  251. MatchLiteral("token")
  252. }
  253. REGEX ANNOTATED AST /token/ {
  254. MatchLiteral("token")
  255. <
  256. features: {MatchLiteral}
  257. firstSet: [t] (exact)
  258. followSet: [\x00-\uffff]
  259. prevConsumes: [0]
  260. thisConsumes: [5]
  261. followConsumes: [0]
  262. isThisIrrefutable: false
  263. isFollowIrrefutable: true
  264. isWord: true
  265. isThisWillNotProgress: true
  266. isThisWillNotRegress: true
  267. isPrevWillNotProgress: false
  268. isPrevWillNotRegress: true
  269. isDeterministic: true
  270. isNotInLoop: true
  271. isNotNegated: true
  272. isAtLeastOnce: true
  273. hasInitialHardFailBOI: false
  274. >
  275. }
  276. REGEX PROGRAM /token/
  277. Program {
  278. source: token
  279. flags:
  280. numGroups: 1
  281. numLoops: 0
  282. instructions: {
  283. L0000: SyncToLiteralAndConsume(literal: "token" (with full map Boyer-Moore scanner))
  284. L0001: Succ()
  285. }
  286. }
  287. REGEX AST /^^token/ {
  288. Concat()
  289. {
  290. BOL()
  291. BOL()
  292. MatchLiteral("token")
  293. }
  294. }
  295. REGEX ANNOTATED AST /^^token/ {
  296. Concat()
  297. <
  298. features: {BOL,MatchLiteral,Concat}
  299. firstSet: [\x00-\uffff]
  300. followSet: [\x00-\uffff]
  301. prevConsumes: [0]
  302. thisConsumes: [5]
  303. followConsumes: [0]
  304. isThisIrrefutable: false
  305. isFollowIrrefutable: true
  306. isWord: false
  307. isThisWillNotProgress: true
  308. isThisWillNotRegress: true
  309. isPrevWillNotProgress: false
  310. isPrevWillNotRegress: true
  311. isDeterministic: true
  312. isNotInLoop: true
  313. isNotNegated: true
  314. isAtLeastOnce: true
  315. hasInitialHardFailBOI: true
  316. >
  317. {
  318. BOL()
  319. <
  320. features: {BOL}
  321. firstSet: [\x00-\uffff]
  322. followSet: [\x00-\uffff]
  323. prevConsumes: [0]
  324. thisConsumes: [0]
  325. followConsumes: [5]
  326. isThisIrrefutable: false
  327. isFollowIrrefutable: false
  328. isWord: false
  329. isThisWillNotProgress: true
  330. isThisWillNotRegress: true
  331. isPrevWillNotProgress: false
  332. isPrevWillNotRegress: true
  333. isDeterministic: true
  334. isNotInLoop: true
  335. isNotNegated: true
  336. isAtLeastOnce: true
  337. hasInitialHardFailBOI: true
  338. >
  339. BOL()
  340. <
  341. features: {BOL}
  342. firstSet: [\x00-\uffff]
  343. followSet: [t]
  344. prevConsumes: [0]
  345. thisConsumes: [0]
  346. followConsumes: [5]
  347. isThisIrrefutable: false
  348. isFollowIrrefutable: false
  349. isWord: false
  350. isThisWillNotProgress: true
  351. isThisWillNotRegress: true
  352. isPrevWillNotProgress: false
  353. isPrevWillNotRegress: true
  354. isDeterministic: true
  355. isNotInLoop: true
  356. isNotNegated: true
  357. isAtLeastOnce: true
  358. hasInitialHardFailBOI: true
  359. >
  360. MatchLiteral("token")
  361. <
  362. features: {MatchLiteral}
  363. firstSet: [t] (exact)
  364. followSet: [\x00-\uffff]
  365. prevConsumes: [0]
  366. thisConsumes: [5]
  367. followConsumes: [0]
  368. isThisIrrefutable: false
  369. isFollowIrrefutable: true
  370. isWord: true
  371. isThisWillNotProgress: true
  372. isThisWillNotRegress: true
  373. isPrevWillNotProgress: false
  374. isPrevWillNotRegress: true
  375. isDeterministic: true
  376. isNotInLoop: true
  377. isNotNegated: true
  378. isAtLeastOnce: true
  379. hasInitialHardFailBOI: false
  380. >
  381. }
  382. }
  383. REGEX PROGRAM /^^token/
  384. Program {
  385. source: ^^token
  386. flags:
  387. numGroups: 1
  388. numLoops: 0
  389. instructions: {
  390. BOITest(hardFail: true)
  391. L0000: MatchLiteral(literal: "token")
  392. L0001: Succ()
  393. }
  394. }
  395. REGEX AST /token^/ {
  396. Concat()
  397. {
  398. MatchLiteral("token")
  399. BOL()
  400. }
  401. }
  402. REGEX ANNOTATED AST /token^/ {
  403. Concat()
  404. <
  405. features: {BOL,MatchLiteral,Concat}
  406. firstSet: [t] (exact)
  407. followSet: [\x00-\uffff]
  408. prevConsumes: [0]
  409. thisConsumes: [5]
  410. followConsumes: [0]
  411. isThisIrrefutable: false
  412. isFollowIrrefutable: true
  413. isWord: false
  414. isThisWillNotProgress: true
  415. isThisWillNotRegress: true
  416. isPrevWillNotProgress: false
  417. isPrevWillNotRegress: true
  418. isDeterministic: true
  419. isNotInLoop: true
  420. isNotNegated: true
  421. isAtLeastOnce: true
  422. hasInitialHardFailBOI: false
  423. >
  424. {
  425. MatchLiteral("token")
  426. <
  427. features: {MatchLiteral}
  428. firstSet: [t] (exact)
  429. followSet: [\x00-\uffff]
  430. prevConsumes: [0]
  431. thisConsumes: [5]
  432. followConsumes: [0]
  433. isThisIrrefutable: false
  434. isFollowIrrefutable: false
  435. isWord: true
  436. isThisWillNotProgress: true
  437. isThisWillNotRegress: true
  438. isPrevWillNotProgress: false
  439. isPrevWillNotRegress: true
  440. isDeterministic: true
  441. isNotInLoop: true
  442. isNotNegated: true
  443. isAtLeastOnce: true
  444. hasInitialHardFailBOI: false
  445. >
  446. BOL()
  447. <
  448. features: {BOL}
  449. firstSet: [\x00-\uffff]
  450. followSet: [\x00-\uffff]
  451. prevConsumes: [5]
  452. thisConsumes: [0]
  453. followConsumes: [0]
  454. isThisIrrefutable: false
  455. isFollowIrrefutable: true
  456. isWord: false
  457. isThisWillNotProgress: true
  458. isThisWillNotRegress: true
  459. isPrevWillNotProgress: false
  460. isPrevWillNotRegress: true
  461. isDeterministic: true
  462. isNotInLoop: true
  463. isNotNegated: true
  464. isAtLeastOnce: true
  465. hasInitialHardFailBOI: false
  466. >
  467. }
  468. }
  469. REGEX PROGRAM /token^/
  470. Program {
  471. source: token^
  472. flags:
  473. numGroups: 1
  474. numLoops: 0
  475. instructions: {
  476. L0000: SyncToLiteralAndConsume(literal: "token" (with full map Boyer-Moore scanner))
  477. L0001: BOITest(hardFail: true)
  478. L0002: Succ()
  479. }
  480. }
  481. REGEX AST /token^token/ {
  482. Concat()
  483. {
  484. MatchLiteral("token")
  485. BOL()
  486. MatchLiteral("token")
  487. }
  488. }
  489. REGEX ANNOTATED AST /token^token/ {
  490. Concat()
  491. <
  492. features: {BOL,MatchLiteral,Concat}
  493. firstSet: [t] (exact)
  494. followSet: [\x00-\uffff]
  495. prevConsumes: [0]
  496. thisConsumes: [10]
  497. followConsumes: [0]
  498. isThisIrrefutable: false
  499. isFollowIrrefutable: true
  500. isWord: false
  501. isThisWillNotProgress: true
  502. isThisWillNotRegress: true
  503. isPrevWillNotProgress: false
  504. isPrevWillNotRegress: true
  505. isDeterministic: true
  506. isNotInLoop: true
  507. isNotNegated: true
  508. isAtLeastOnce: true
  509. hasInitialHardFailBOI: false
  510. >
  511. {
  512. MatchLiteral("token")
  513. <
  514. features: {MatchLiteral}
  515. firstSet: [t] (exact)
  516. followSet: [\x00-\uffff]
  517. prevConsumes: [0]
  518. thisConsumes: [5]
  519. followConsumes: [5]
  520. isThisIrrefutable: false
  521. isFollowIrrefutable: false
  522. isWord: true
  523. isThisWillNotProgress: true
  524. isThisWillNotRegress: true
  525. isPrevWillNotProgress: false
  526. isPrevWillNotRegress: true
  527. isDeterministic: true
  528. isNotInLoop: true
  529. isNotNegated: true
  530. isAtLeastOnce: true
  531. hasInitialHardFailBOI: false
  532. >
  533. BOL()
  534. <
  535. features: {BOL}
  536. firstSet: [\x00-\uffff]
  537. followSet: [t]
  538. prevConsumes: [5]
  539. thisConsumes: [0]
  540. followConsumes: [5]
  541. isThisIrrefutable: false
  542. isFollowIrrefutable: false
  543. isWord: false
  544. isThisWillNotProgress: true
  545. isThisWillNotRegress: true
  546. isPrevWillNotProgress: false
  547. isPrevWillNotRegress: true
  548. isDeterministic: true
  549. isNotInLoop: true
  550. isNotNegated: true
  551. isAtLeastOnce: true
  552. hasInitialHardFailBOI: false
  553. >
  554. MatchLiteral("token")
  555. <
  556. features: {MatchLiteral}
  557. firstSet: [t] (exact)
  558. followSet: [\x00-\uffff]
  559. prevConsumes: [5]
  560. thisConsumes: [5]
  561. followConsumes: [0]
  562. isThisIrrefutable: false
  563. isFollowIrrefutable: true
  564. isWord: true
  565. isThisWillNotProgress: true
  566. isThisWillNotRegress: true
  567. isPrevWillNotProgress: false
  568. isPrevWillNotRegress: true
  569. isDeterministic: true
  570. isNotInLoop: true
  571. isNotNegated: true
  572. isAtLeastOnce: true
  573. hasInitialHardFailBOI: false
  574. >
  575. }
  576. }
  577. REGEX PROGRAM /token^token/
  578. Program {
  579. source: token^token
  580. flags:
  581. numGroups: 1
  582. numLoops: 0
  583. instructions: {
  584. L0000: SyncToLiteralAndConsume(literal: "token" (with full map Boyer-Moore scanner))
  585. L0001: BOITest(hardFail: true)
  586. L0002: MatchLiteral(literal: "token")
  587. L0003: Succ()
  588. }
  589. }
  590. REGEX AST /^token|^abc/ {
  591. Alt()
  592. {
  593. Concat()
  594. {
  595. BOL()
  596. MatchLiteral("token")
  597. }
  598. Concat()
  599. {
  600. BOL()
  601. MatchLiteral("abc")
  602. }
  603. }
  604. }
  605. REGEX ANNOTATED AST /^token|^abc/ {
  606. Alt()
  607. <
  608. features: {BOL,MatchLiteral,Concat,Alt}
  609. firstSet: [\x00-\uffff]
  610. followSet: [\x00-\uffff]
  611. prevConsumes: [0]
  612. thisConsumes: [3-5]
  613. followConsumes: [0]
  614. isThisIrrefutable: false
  615. isFollowIrrefutable: true
  616. isWord: false
  617. isThisWillNotProgress: true
  618. isThisWillNotRegress: false
  619. isPrevWillNotProgress: false
  620. isPrevWillNotRegress: true
  621. isDeterministic: false
  622. isNotInLoop: true
  623. isNotNegated: true
  624. isAtLeastOnce: true
  625. hasInitialHardFailBOI: false
  626. >
  627. {
  628. Concat()
  629. <
  630. features: {BOL,MatchLiteral,Concat}
  631. firstSet: [\x00-\uffff]
  632. followSet: [\x00-\uffff]
  633. prevConsumes: [0]
  634. thisConsumes: [5]
  635. followConsumes: [0]
  636. isThisIrrefutable: false
  637. isFollowIrrefutable: true
  638. isWord: false
  639. isThisWillNotProgress: true
  640. isThisWillNotRegress: true
  641. isPrevWillNotProgress: false
  642. isPrevWillNotRegress: true
  643. isDeterministic: true
  644. isNotInLoop: true
  645. isNotNegated: true
  646. isAtLeastOnce: false
  647. hasInitialHardFailBOI: false
  648. >
  649. {
  650. BOL()
  651. <
  652. features: {BOL}
  653. firstSet: [\x00-\uffff]
  654. followSet: [t]
  655. prevConsumes: [0]
  656. thisConsumes: [0]
  657. followConsumes: [5]
  658. isThisIrrefutable: false
  659. isFollowIrrefutable: false
  660. isWord: false
  661. isThisWillNotProgress: true
  662. isThisWillNotRegress: true
  663. isPrevWillNotProgress: false
  664. isPrevWillNotRegress: true
  665. isDeterministic: true
  666. isNotInLoop: true
  667. isNotNegated: true
  668. isAtLeastOnce: false
  669. hasInitialHardFailBOI: false
  670. >
  671. MatchLiteral("token")
  672. <
  673. features: {MatchLiteral}
  674. firstSet: [t] (exact)
  675. followSet: [\x00-\uffff]
  676. prevConsumes: [0]
  677. thisConsumes: [5]
  678. followConsumes: [0]
  679. isThisIrrefutable: false
  680. isFollowIrrefutable: true
  681. isWord: true
  682. isThisWillNotProgress: true
  683. isThisWillNotRegress: true
  684. isPrevWillNotProgress: false
  685. isPrevWillNotRegress: true
  686. isDeterministic: true
  687. isNotInLoop: true
  688. isNotNegated: true
  689. isAtLeastOnce: false
  690. hasInitialHardFailBOI: false
  691. >
  692. }
  693. Concat()
  694. <
  695. features: {BOL,MatchLiteral,Concat}
  696. firstSet: [\x00-\uffff]
  697. followSet: [\x00-\uffff]
  698. prevConsumes: [0]
  699. thisConsumes: [3]
  700. followConsumes: [0]
  701. isThisIrrefutable: false
  702. isFollowIrrefutable: true
  703. isWord: false
  704. isThisWillNotProgress: true
  705. isThisWillNotRegress: true
  706. isPrevWillNotProgress: false
  707. isPrevWillNotRegress: true
  708. isDeterministic: true
  709. isNotInLoop: true
  710. isNotNegated: true
  711. isAtLeastOnce: false
  712. hasInitialHardFailBOI: false
  713. >
  714. {
  715. BOL()
  716. <
  717. features: {BOL}
  718. firstSet: [\x00-\uffff]
  719. followSet: [a]
  720. prevConsumes: [0]
  721. thisConsumes: [0]
  722. followConsumes: [3]
  723. isThisIrrefutable: false
  724. isFollowIrrefutable: false
  725. isWord: false
  726. isThisWillNotProgress: true
  727. isThisWillNotRegress: true
  728. isPrevWillNotProgress: false
  729. isPrevWillNotRegress: true
  730. isDeterministic: true
  731. isNotInLoop: true
  732. isNotNegated: true
  733. isAtLeastOnce: false
  734. hasInitialHardFailBOI: false
  735. >
  736. MatchLiteral("abc")
  737. <
  738. features: {MatchLiteral}
  739. firstSet: [a] (exact)
  740. followSet: [\x00-\uffff]
  741. prevConsumes: [0]
  742. thisConsumes: [3]
  743. followConsumes: [0]
  744. isThisIrrefutable: false
  745. isFollowIrrefutable: true
  746. isWord: true
  747. isThisWillNotProgress: true
  748. isThisWillNotRegress: true
  749. isPrevWillNotProgress: false
  750. isPrevWillNotRegress: true
  751. isDeterministic: true
  752. isNotInLoop: true
  753. isNotNegated: true
  754. isAtLeastOnce: false
  755. hasInitialHardFailBOI: false
  756. >
  757. }
  758. }
  759. }
  760. REGEX PROGRAM /^token|^abc/
  761. Program {
  762. source: ^token|^abc
  763. flags:
  764. numGroups: 1
  765. numLoops: 0
  766. instructions: {
  767. L0000: Try(failLabel: Lffff)
  768. L0001: BOITest(hardFail: false)
  769. L0002: MatchLiteral(literal: "token")
  770. L0003: Jump(targetLabel: Lffff)
  771. L0004: BOITest(hardFail: false)
  772. L0005: MatchLiteral(literal: "abc")
  773. L0006: Succ()
  774. }
  775. }
  776. REGEX AST /(?!token)^abc/ {
  777. Concat()
  778. {
  779. Assertion(negative)
  780. {
  781. MatchLiteral("token")
  782. }
  783. BOL()
  784. MatchLiteral("abc")
  785. }
  786. }
  787. REGEX ANNOTATED AST /(?!token)^abc/ {
  788. Concat()
  789. <
  790. features: {BOL,MatchLiteral,Concat,Assertion}
  791. firstSet: [\x00-\uffff]
  792. followSet: [\x00-\uffff]
  793. prevConsumes: [0]
  794. thisConsumes: [3]
  795. followConsumes: [0]
  796. isThisIrrefutable: false
  797. isFollowIrrefutable: true
  798. isWord: false
  799. isThisWillNotProgress: true
  800. isThisWillNotRegress: true
  801. isPrevWillNotProgress: false
  802. isPrevWillNotRegress: true
  803. isDeterministic: true
  804. isNotInLoop: true
  805. isNotNegated: true
  806. isAtLeastOnce: true
  807. hasInitialHardFailBOI: true
  808. >
  809. {
  810. Assertion(negative)
  811. <
  812. features: {MatchLiteral,Assertion}
  813. firstSet: [\x00-\uffff]
  814. followSet: [\x00-\uffff]
  815. prevConsumes: [0]
  816. thisConsumes: [0]
  817. followConsumes: [3]
  818. isThisIrrefutable: false
  819. isFollowIrrefutable: false
  820. isWord: false
  821. isThisWillNotProgress: true
  822. isThisWillNotRegress: true
  823. isPrevWillNotProgress: false
  824. isPrevWillNotRegress: true
  825. isDeterministic: true
  826. isNotInLoop: true
  827. isNotNegated: true
  828. isAtLeastOnce: true
  829. hasInitialHardFailBOI: false
  830. >
  831. {
  832. MatchLiteral("token")
  833. <
  834. features: {MatchLiteral}
  835. firstSet: [t] (exact)
  836. followSet: [\x00-\uffff]
  837. prevConsumes: [0]
  838. thisConsumes: [5]
  839. followConsumes: [0-inf]
  840. isThisIrrefutable: false
  841. isFollowIrrefutable: true
  842. isWord: true
  843. isThisWillNotProgress: true
  844. isThisWillNotRegress: true
  845. isPrevWillNotProgress: false
  846. isPrevWillNotRegress: true
  847. isDeterministic: true
  848. isNotInLoop: true
  849. isNotNegated: false
  850. isAtLeastOnce: true
  851. hasInitialHardFailBOI: false
  852. >
  853. }
  854. BOL()
  855. <
  856. features: {BOL}
  857. firstSet: [\x00-\uffff]
  858. followSet: [a]
  859. prevConsumes: [0]
  860. thisConsumes: [0]
  861. followConsumes: [3]
  862. isThisIrrefutable: false
  863. isFollowIrrefutable: false
  864. isWord: false
  865. isThisWillNotProgress: true
  866. isThisWillNotRegress: true
  867. isPrevWillNotProgress: false
  868. isPrevWillNotRegress: true
  869. isDeterministic: true
  870. isNotInLoop: true
  871. isNotNegated: true
  872. isAtLeastOnce: true
  873. hasInitialHardFailBOI: true
  874. >
  875. MatchLiteral("abc")
  876. <
  877. features: {MatchLiteral}
  878. firstSet: [a] (exact)
  879. followSet: [\x00-\uffff]
  880. prevConsumes: [0]
  881. thisConsumes: [3]
  882. followConsumes: [0]
  883. isThisIrrefutable: false
  884. isFollowIrrefutable: true
  885. isWord: true
  886. isThisWillNotProgress: true
  887. isThisWillNotRegress: true
  888. isPrevWillNotProgress: false
  889. isPrevWillNotRegress: true
  890. isDeterministic: true
  891. isNotInLoop: true
  892. isNotNegated: true
  893. isAtLeastOnce: true
  894. hasInitialHardFailBOI: false
  895. >
  896. }
  897. }
  898. REGEX PROGRAM /(?!token)^abc/
  899. Program {
  900. source: (?!token)^abc
  901. flags:
  902. numGroups: 1
  903. numLoops: 0
  904. instructions: {
  905. L0000: BeginAssertion(isNegation: true, nextLabel: Lffff, minBodyGroupId: 1, maxBodyGroupId: -1)
  906. L0001: MatchLiteral(literal: "token")
  907. L0002: EndAssertion()
  908. L0003: BOITest(hardFail: true)
  909. L0004: MatchLiteral(literal: "abc")
  910. L0005: Succ()
  911. }
  912. }
  913. REGEX AST /(?=^abc)/ {
  914. Assertion(positive)
  915. {
  916. Concat()
  917. {
  918. BOL()
  919. MatchLiteral("abc")
  920. }
  921. }
  922. }
  923. REGEX ANNOTATED AST /(?=^abc)/ {
  924. Assertion(positive)
  925. <
  926. features: {BOL,MatchLiteral,Concat,Assertion}
  927. firstSet: [\x00-\uffff]
  928. followSet: [\x00-\uffff]
  929. prevConsumes: [0]
  930. thisConsumes: [0]
  931. followConsumes: [0]
  932. isThisIrrefutable: false
  933. isFollowIrrefutable: true
  934. isWord: false
  935. isThisWillNotProgress: true
  936. isThisWillNotRegress: true
  937. isPrevWillNotProgress: false
  938. isPrevWillNotRegress: true
  939. isDeterministic: true
  940. isNotInLoop: true
  941. isNotNegated: true
  942. isAtLeastOnce: true
  943. hasInitialHardFailBOI: true
  944. >
  945. {
  946. Concat()
  947. <
  948. features: {BOL,MatchLiteral,Concat}
  949. firstSet: [\x00-\uffff]
  950. followSet: [\x00-\uffff]
  951. prevConsumes: [0]
  952. thisConsumes: [3]
  953. followConsumes: [0-inf]
  954. isThisIrrefutable: false
  955. isFollowIrrefutable: true
  956. isWord: false
  957. isThisWillNotProgress: true
  958. isThisWillNotRegress: true
  959. isPrevWillNotProgress: false
  960. isPrevWillNotRegress: true
  961. isDeterministic: true
  962. isNotInLoop: true
  963. isNotNegated: true
  964. isAtLeastOnce: true
  965. hasInitialHardFailBOI: true
  966. >
  967. {
  968. BOL()
  969. <
  970. features: {BOL}
  971. firstSet: [\x00-\uffff]
  972. followSet: [a]
  973. prevConsumes: [0]
  974. thisConsumes: [0]
  975. followConsumes: [3-inf]
  976. isThisIrrefutable: false
  977. isFollowIrrefutable: false
  978. isWord: false
  979. isThisWillNotProgress: true
  980. isThisWillNotRegress: true
  981. isPrevWillNotProgress: false
  982. isPrevWillNotRegress: true
  983. isDeterministic: true
  984. isNotInLoop: true
  985. isNotNegated: true
  986. isAtLeastOnce: true
  987. hasInitialHardFailBOI: true
  988. >
  989. MatchLiteral("abc")
  990. <
  991. features: {MatchLiteral}
  992. firstSet: [a] (exact)
  993. followSet: [\x00-\uffff]
  994. prevConsumes: [0]
  995. thisConsumes: [3]
  996. followConsumes: [0-inf]
  997. isThisIrrefutable: false
  998. isFollowIrrefutable: true
  999. isWord: true
  1000. isThisWillNotProgress: true
  1001. isThisWillNotRegress: true
  1002. isPrevWillNotProgress: false
  1003. isPrevWillNotRegress: true
  1004. isDeterministic: true
  1005. isNotInLoop: true
  1006. isNotNegated: true
  1007. isAtLeastOnce: true
  1008. hasInitialHardFailBOI: false
  1009. >
  1010. }
  1011. }
  1012. }
  1013. REGEX PROGRAM /(?=^abc)/
  1014. Program {
  1015. source: (?=^abc)
  1016. flags:
  1017. numGroups: 1
  1018. numLoops: 0
  1019. instructions: {
  1020. L0000: BeginAssertion(isNegation: false, nextLabel: Lffff, minBodyGroupId: 1, maxBodyGroupId: -1)
  1021. L0001: BOITest(hardFail: true)
  1022. L0002: MatchLiteral(literal: "abc")
  1023. L0003: EndAssertion()
  1024. L0004: Succ()
  1025. }
  1026. }
  1027. REGEX AST /(^token)/ {
  1028. DefineGroup(1)
  1029. {
  1030. Concat()
  1031. {
  1032. BOL()
  1033. MatchLiteral("token")
  1034. }
  1035. }
  1036. }
  1037. REGEX ANNOTATED AST /(^token)/ {
  1038. DefineGroup(1)
  1039. <
  1040. features: {BOL,MatchLiteral,Concat,DefineGroup}
  1041. firstSet: [\x00-\uffff]
  1042. followSet: [\x00-\uffff]
  1043. prevConsumes: [0]
  1044. thisConsumes: [5]
  1045. followConsumes: [0]
  1046. isThisIrrefutable: false
  1047. isFollowIrrefutable: true
  1048. isWord: false
  1049. isThisWillNotProgress: true
  1050. isThisWillNotRegress: true
  1051. isPrevWillNotProgress: false
  1052. isPrevWillNotRegress: true
  1053. isDeterministic: true
  1054. isNotInLoop: true
  1055. isNotNegated: true
  1056. isAtLeastOnce: true
  1057. hasInitialHardFailBOI: true
  1058. >
  1059. {
  1060. Concat()
  1061. <
  1062. features: {BOL,MatchLiteral,Concat}
  1063. firstSet: [\x00-\uffff]
  1064. followSet: [\x00-\uffff]
  1065. prevConsumes: [0]
  1066. thisConsumes: [5]
  1067. followConsumes: [0]
  1068. isThisIrrefutable: false
  1069. isFollowIrrefutable: true
  1070. isWord: false
  1071. isThisWillNotProgress: true
  1072. isThisWillNotRegress: true
  1073. isPrevWillNotProgress: false
  1074. isPrevWillNotRegress: true
  1075. isDeterministic: true
  1076. isNotInLoop: true
  1077. isNotNegated: true
  1078. isAtLeastOnce: true
  1079. hasInitialHardFailBOI: true
  1080. >
  1081. {
  1082. BOL()
  1083. <
  1084. features: {BOL}
  1085. firstSet: [\x00-\uffff]
  1086. followSet: [t]
  1087. prevConsumes: [0]
  1088. thisConsumes: [0]
  1089. followConsumes: [5]
  1090. isThisIrrefutable: false
  1091. isFollowIrrefutable: false
  1092. isWord: false
  1093. isThisWillNotProgress: true
  1094. isThisWillNotRegress: true
  1095. isPrevWillNotProgress: false
  1096. isPrevWillNotRegress: true
  1097. isDeterministic: true
  1098. isNotInLoop: true
  1099. isNotNegated: true
  1100. isAtLeastOnce: true
  1101. hasInitialHardFailBOI: true
  1102. >
  1103. MatchLiteral("token")
  1104. <
  1105. features: {MatchLiteral}
  1106. firstSet: [t] (exact)
  1107. followSet: [\x00-\uffff]
  1108. prevConsumes: [0]
  1109. thisConsumes: [5]
  1110. followConsumes: [0]
  1111. isThisIrrefutable: false
  1112. isFollowIrrefutable: true
  1113. isWord: true
  1114. isThisWillNotProgress: true
  1115. isThisWillNotRegress: true
  1116. isPrevWillNotProgress: false
  1117. isPrevWillNotRegress: true
  1118. isDeterministic: true
  1119. isNotInLoop: true
  1120. isNotNegated: true
  1121. isAtLeastOnce: true
  1122. hasInitialHardFailBOI: false
  1123. >
  1124. }
  1125. }
  1126. }
  1127. REGEX PROGRAM /(^token)/
  1128. Program {
  1129. source: (^token)
  1130. flags:
  1131. numGroups: 2
  1132. numLoops: 0
  1133. instructions: {
  1134. BOITest(hardFail: true)
  1135. L0000: MatchLiteral(literal: "token")
  1136. L0001: DefineGroupFixed(groupId: 1, length: 5, noNeedToSave: true)
  1137. L0002: Succ()
  1138. }
  1139. }
  1140. REGEX AST /(^a)+/ {
  1141. Loop([1-inf], greedy)
  1142. {
  1143. DefineGroup(1)
  1144. {
  1145. Concat()
  1146. {
  1147. BOL()
  1148. MatchChar('a')
  1149. }
  1150. }
  1151. }
  1152. }
  1153. REGEX ANNOTATED AST /(^a)+/ {
  1154. Loop([1-inf], greedy)
  1155. <
  1156. features: {BOL,MatchChar,Concat,DefineGroup,Loop}
  1157. firstSet: [\x00-\uffff]
  1158. followSet: [\x00-\uffff]
  1159. prevConsumes: [0]
  1160. thisConsumes: [1-inf]
  1161. followConsumes: [0]
  1162. isThisIrrefutable: false
  1163. isFollowIrrefutable: true
  1164. isWord: false
  1165. isThisWillNotProgress: true
  1166. isThisWillNotRegress: false
  1167. isPrevWillNotProgress: false
  1168. isPrevWillNotRegress: true
  1169. isDeterministic: false
  1170. isNotInLoop: true
  1171. isNotNegated: true
  1172. isAtLeastOnce: true
  1173. hasInitialHardFailBOI: false
  1174. >
  1175. {
  1176. DefineGroup(1)
  1177. <
  1178. features: {BOL,MatchChar,Concat,DefineGroup}
  1179. firstSet: [\x00-\uffff]
  1180. followSet: [\x00-\uffff]
  1181. prevConsumes: [0-inf]
  1182. thisConsumes: [1]
  1183. followConsumes: [0-inf]
  1184. isThisIrrefutable: false
  1185. isFollowIrrefutable: true
  1186. isWord: false
  1187. isThisWillNotProgress: true
  1188. isThisWillNotRegress: true
  1189. isPrevWillNotProgress: false
  1190. isPrevWillNotRegress: false
  1191. isDeterministic: true
  1192. isNotInLoop: false
  1193. isNotNegated: true
  1194. isAtLeastOnce: true
  1195. hasInitialHardFailBOI: false
  1196. >
  1197. {
  1198. Concat()
  1199. <
  1200. features: {BOL,MatchChar,Concat}
  1201. firstSet: [\x00-\uffff]
  1202. followSet: [\x00-\uffff]
  1203. prevConsumes: [0-inf]
  1204. thisConsumes: [1]
  1205. followConsumes: [0-inf]
  1206. isThisIrrefutable: false
  1207. isFollowIrrefutable: true
  1208. isWord: false
  1209. isThisWillNotProgress: true
  1210. isThisWillNotRegress: true
  1211. isPrevWillNotProgress: false
  1212. isPrevWillNotRegress: false
  1213. isDeterministic: true
  1214. isNotInLoop: false
  1215. isNotNegated: true
  1216. isAtLeastOnce: true
  1217. hasInitialHardFailBOI: false
  1218. >
  1219. {
  1220. BOL()
  1221. <
  1222. features: {BOL}
  1223. firstSet: [\x00-\uffff]
  1224. followSet: [a]
  1225. prevConsumes: [0-inf]
  1226. thisConsumes: [0]
  1227. followConsumes: [1-inf]
  1228. isThisIrrefutable: false
  1229. isFollowIrrefutable: false
  1230. isWord: false
  1231. isThisWillNotProgress: true
  1232. isThisWillNotRegress: true
  1233. isPrevWillNotProgress: false
  1234. isPrevWillNotRegress: false
  1235. isDeterministic: true
  1236. isNotInLoop: false
  1237. isNotNegated: true
  1238. isAtLeastOnce: true
  1239. hasInitialHardFailBOI: false
  1240. >
  1241. MatchChar('a')
  1242. <
  1243. features: {MatchChar}
  1244. firstSet: [a] (exact)
  1245. followSet: [\x00-\uffff]
  1246. prevConsumes: [0-inf]
  1247. thisConsumes: [1]
  1248. followConsumes: [0-inf]
  1249. isThisIrrefutable: false
  1250. isFollowIrrefutable: true
  1251. isWord: true
  1252. isThisWillNotProgress: true
  1253. isThisWillNotRegress: true
  1254. isPrevWillNotProgress: false
  1255. isPrevWillNotRegress: false
  1256. isDeterministic: true
  1257. isNotInLoop: false
  1258. isNotNegated: true
  1259. isAtLeastOnce: true
  1260. hasInitialHardFailBOI: false
  1261. >
  1262. }
  1263. }
  1264. }
  1265. }
  1266. REGEX PROGRAM /(^a)+/
  1267. Program {
  1268. source: (^a)+
  1269. flags:
  1270. numGroups: 2
  1271. numLoops: 1
  1272. instructions: {
  1273. L0000: SyncToCharAndBackup(c: 'a', backup: [0-inf])
  1274. L0001: BeginLoopFixedGroupLastIteration(loopId: 0, repeats: [1-inf], exitLabel: Lffff, hasOuterLoops: false, hasInnerNondet: false, length: 1, groupId: 1, noNeedToSave: true)
  1275. L0002: BOITest(hardFail: false)
  1276. L0003: MatchChar(c: 'a')
  1277. L0004: RepeatLoopFixedGroupLastIteration(beginLabel: Lffff)
  1278. L0005: Succ()
  1279. }
  1280. }
  1281. REGEX AST /(?=^)/ {
  1282. Assertion(positive)
  1283. {
  1284. BOL()
  1285. }
  1286. }
  1287. REGEX ANNOTATED AST /(?=^)/ {
  1288. Assertion(positive)
  1289. <
  1290. features: {BOL,Assertion}
  1291. firstSet: [\x00-\uffff]
  1292. followSet: [\x00-\uffff]
  1293. prevConsumes: [0]
  1294. thisConsumes: [0]
  1295. followConsumes: [0]
  1296. isThisIrrefutable: false
  1297. isFollowIrrefutable: true
  1298. isWord: false
  1299. isThisWillNotProgress: true
  1300. isThisWillNotRegress: true
  1301. isPrevWillNotProgress: false
  1302. isPrevWillNotRegress: true
  1303. isDeterministic: true
  1304. isNotInLoop: true
  1305. isNotNegated: true
  1306. isAtLeastOnce: true
  1307. hasInitialHardFailBOI: true
  1308. >
  1309. {
  1310. BOL()
  1311. <
  1312. features: {BOL}
  1313. firstSet: [\x00-\uffff]
  1314. followSet: [\x00-\uffff]
  1315. prevConsumes: [0]
  1316. thisConsumes: [0]
  1317. followConsumes: [0-inf]
  1318. isThisIrrefutable: false
  1319. isFollowIrrefutable: true
  1320. isWord: false
  1321. isThisWillNotProgress: true
  1322. isThisWillNotRegress: true
  1323. isPrevWillNotProgress: false
  1324. isPrevWillNotRegress: true
  1325. isDeterministic: true
  1326. isNotInLoop: true
  1327. isNotNegated: true
  1328. isAtLeastOnce: true
  1329. hasInitialHardFailBOI: true
  1330. >
  1331. }
  1332. }
  1333. REGEX PROGRAM /(?=^)/
  1334. Program {
  1335. source: (?=^)
  1336. flags:
  1337. numGroups: 1
  1338. numLoops: 0
  1339. instructions: {
  1340. L0000: BeginAssertion(isNegation: false, nextLabel: Lffff, minBodyGroupId: 1, maxBodyGroupId: -1)
  1341. L0001: BOITest(hardFail: true)
  1342. L0002: EndAssertion()
  1343. L0003: Succ()
  1344. }
  1345. }
  1346. REGEX AST /(^)/ {
  1347. DefineGroup(1)
  1348. {
  1349. BOL()
  1350. }
  1351. }
  1352. REGEX ANNOTATED AST /(^)/ {
  1353. DefineGroup(1)
  1354. <
  1355. features: {BOL,DefineGroup}
  1356. firstSet: [\x00-\uffff]
  1357. followSet: [\x00-\uffff]
  1358. prevConsumes: [0]
  1359. thisConsumes: [0]
  1360. followConsumes: [0]
  1361. isThisIrrefutable: false
  1362. isFollowIrrefutable: true
  1363. isWord: false
  1364. isThisWillNotProgress: true
  1365. isThisWillNotRegress: true
  1366. isPrevWillNotProgress: false
  1367. isPrevWillNotRegress: true
  1368. isDeterministic: true
  1369. isNotInLoop: true
  1370. isNotNegated: true
  1371. isAtLeastOnce: true
  1372. hasInitialHardFailBOI: true
  1373. >
  1374. {
  1375. BOL()
  1376. <
  1377. features: {BOL}
  1378. firstSet: [\x00-\uffff]
  1379. followSet: [\x00-\uffff]
  1380. prevConsumes: [0]
  1381. thisConsumes: [0]
  1382. followConsumes: [0]
  1383. isThisIrrefutable: false
  1384. isFollowIrrefutable: true
  1385. isWord: false
  1386. isThisWillNotProgress: true
  1387. isThisWillNotRegress: true
  1388. isPrevWillNotProgress: false
  1389. isPrevWillNotRegress: true
  1390. isDeterministic: true
  1391. isNotInLoop: true
  1392. isNotNegated: true
  1393. isAtLeastOnce: true
  1394. hasInitialHardFailBOI: true
  1395. >
  1396. }
  1397. }
  1398. REGEX PROGRAM /(^)/
  1399. Program {
  1400. source: (^)
  1401. flags:
  1402. numGroups: 2
  1403. numLoops: 0
  1404. instructions: {
  1405. BOITest(hardFail: true)
  1406. L0000: DefineGroupFixed(groupId: 1, length: 0, noNeedToSave: true)
  1407. L0001: Succ()
  1408. }
  1409. }
  1410. REGEX AST /(^)+/ {
  1411. Loop([1-inf], greedy)
  1412. {
  1413. DefineGroup(1)
  1414. {
  1415. BOL()
  1416. }
  1417. }
  1418. }
  1419. REGEX ANNOTATED AST /(^)+/ {
  1420. Loop([1-inf], greedy)
  1421. <
  1422. features: {BOL,DefineGroup,Loop}
  1423. firstSet: [\x00-\uffff]
  1424. followSet: [\x00-\uffff]
  1425. prevConsumes: [0]
  1426. thisConsumes: [0]
  1427. followConsumes: [0]
  1428. isThisIrrefutable: false
  1429. isFollowIrrefutable: true
  1430. isWord: false
  1431. isThisWillNotProgress: true
  1432. isThisWillNotRegress: false
  1433. isPrevWillNotProgress: false
  1434. isPrevWillNotRegress: true
  1435. isDeterministic: false
  1436. isNotInLoop: true
  1437. isNotNegated: true
  1438. isAtLeastOnce: true
  1439. hasInitialHardFailBOI: false
  1440. >
  1441. {
  1442. DefineGroup(1)
  1443. <
  1444. features: {BOL,DefineGroup}
  1445. firstSet: [\x00-\uffff]
  1446. followSet: [\x00-\uffff]
  1447. prevConsumes: [0]
  1448. thisConsumes: [0]
  1449. followConsumes: [0]
  1450. isThisIrrefutable: false
  1451. isFollowIrrefutable: false
  1452. isWord: false
  1453. isThisWillNotProgress: true
  1454. isThisWillNotRegress: true
  1455. isPrevWillNotProgress: false
  1456. isPrevWillNotRegress: false
  1457. isDeterministic: true
  1458. isNotInLoop: false
  1459. isNotNegated: true
  1460. isAtLeastOnce: true
  1461. hasInitialHardFailBOI: false
  1462. >
  1463. {
  1464. BOL()
  1465. <
  1466. features: {BOL}
  1467. firstSet: [\x00-\uffff]
  1468. followSet: [\x00-\uffff]
  1469. prevConsumes: [0]
  1470. thisConsumes: [0]
  1471. followConsumes: [0]
  1472. isThisIrrefutable: false
  1473. isFollowIrrefutable: false
  1474. isWord: false
  1475. isThisWillNotProgress: true
  1476. isThisWillNotRegress: true
  1477. isPrevWillNotProgress: false
  1478. isPrevWillNotRegress: false
  1479. isDeterministic: true
  1480. isNotInLoop: false
  1481. isNotNegated: true
  1482. isAtLeastOnce: true
  1483. hasInitialHardFailBOI: false
  1484. >
  1485. }
  1486. }
  1487. }
  1488. REGEX PROGRAM /(^)+/
  1489. Program {
  1490. source: (^)+
  1491. flags:
  1492. numGroups: 2
  1493. numLoops: 1
  1494. instructions: {
  1495. L0000: BeginLoop(loopId: 0, repeats: [1-inf], exitLabel: Lffff, hasOuterLoops: false, hasInnerNondet: false, minBodyGroupId: 1, maxBodyGroupId: 1, greedy: true)
  1496. L0001: BOITest(hardFail: false)
  1497. L0002: DefineGroupFixed(groupId: 1, length: 0, noNeedToSave: false)
  1498. L0003: RepeatLoop(beginLabel: Lffff)
  1499. L0004: Succ()
  1500. }
  1501. }
  1502. REGEX AST /(?!^)/ {
  1503. Assertion(negative)
  1504. {
  1505. BOL()
  1506. }
  1507. }
  1508. REGEX ANNOTATED AST /(?!^)/ {
  1509. Assertion(negative)
  1510. <
  1511. features: {BOL,Assertion}
  1512. firstSet: [\x00-\uffff]
  1513. followSet: [\x00-\uffff]
  1514. prevConsumes: [0]
  1515. thisConsumes: [0]
  1516. followConsumes: [0]
  1517. isThisIrrefutable: false
  1518. isFollowIrrefutable: true
  1519. isWord: false
  1520. isThisWillNotProgress: true
  1521. isThisWillNotRegress: true
  1522. isPrevWillNotProgress: false
  1523. isPrevWillNotRegress: true
  1524. isDeterministic: true
  1525. isNotInLoop: true
  1526. isNotNegated: true
  1527. isAtLeastOnce: true
  1528. hasInitialHardFailBOI: false
  1529. >
  1530. {
  1531. BOL()
  1532. <
  1533. features: {BOL}
  1534. firstSet: [\x00-\uffff]
  1535. followSet: [\x00-\uffff]
  1536. prevConsumes: [0]
  1537. thisConsumes: [0]
  1538. followConsumes: [0-inf]
  1539. isThisIrrefutable: false
  1540. isFollowIrrefutable: true
  1541. isWord: false
  1542. isThisWillNotProgress: true
  1543. isThisWillNotRegress: true
  1544. isPrevWillNotProgress: false
  1545. isPrevWillNotRegress: true
  1546. isDeterministic: true
  1547. isNotInLoop: true
  1548. isNotNegated: false
  1549. isAtLeastOnce: true
  1550. hasInitialHardFailBOI: false
  1551. >
  1552. }
  1553. }
  1554. REGEX PROGRAM /(?!^)/
  1555. Program {
  1556. source: (?!^)
  1557. flags:
  1558. numGroups: 1
  1559. numLoops: 0
  1560. instructions: {
  1561. L0000: BeginAssertion(isNegation: true, nextLabel: Lffff, minBodyGroupId: 1, maxBodyGroupId: -1)
  1562. L0001: BOITest(hardFail: false)
  1563. L0002: EndAssertion()
  1564. L0003: Succ()
  1565. }
  1566. }
  1567. REGEX AST /(?:^abc)+?/ {
  1568. Loop([1-inf], non-greedy)
  1569. {
  1570. Concat()
  1571. {
  1572. BOL()
  1573. MatchLiteral("abc")
  1574. }
  1575. }
  1576. }
  1577. REGEX ANNOTATED AST /(?:^abc)+?/ {
  1578. Loop([1-inf], non-greedy)
  1579. <
  1580. features: {BOL,MatchLiteral,Concat,Loop}
  1581. firstSet: [\x00-\uffff]
  1582. followSet: [\x00-\uffff]
  1583. prevConsumes: [0]
  1584. thisConsumes: [3-inf]
  1585. followConsumes: [0]
  1586. isThisIrrefutable: false
  1587. isFollowIrrefutable: true
  1588. isWord: false
  1589. isThisWillNotProgress: false
  1590. isThisWillNotRegress: true
  1591. isPrevWillNotProgress: false
  1592. isPrevWillNotRegress: true
  1593. isDeterministic: false
  1594. isNotInLoop: true
  1595. isNotNegated: true
  1596. isAtLeastOnce: true
  1597. hasInitialHardFailBOI: false
  1598. >
  1599. {
  1600. Concat()
  1601. <
  1602. features: {BOL,MatchLiteral,Concat}
  1603. firstSet: [\x00-\uffff]
  1604. followSet: [\x00-\uffff]
  1605. prevConsumes: [0-inf]
  1606. thisConsumes: [3]
  1607. followConsumes: [0-inf]
  1608. isThisIrrefutable: false
  1609. isFollowIrrefutable: true
  1610. isWord: false
  1611. isThisWillNotProgress: true
  1612. isThisWillNotRegress: true
  1613. isPrevWillNotProgress: false
  1614. isPrevWillNotRegress: true
  1615. isDeterministic: true
  1616. isNotInLoop: false
  1617. isNotNegated: true
  1618. isAtLeastOnce: true
  1619. hasInitialHardFailBOI: false
  1620. >
  1621. {
  1622. BOL()
  1623. <
  1624. features: {BOL}
  1625. firstSet: [\x00-\uffff]
  1626. followSet: [a]
  1627. prevConsumes: [0-inf]
  1628. thisConsumes: [0]
  1629. followConsumes: [3-inf]
  1630. isThisIrrefutable: false
  1631. isFollowIrrefutable: false
  1632. isWord: false
  1633. isThisWillNotProgress: true
  1634. isThisWillNotRegress: true
  1635. isPrevWillNotProgress: false
  1636. isPrevWillNotRegress: true
  1637. isDeterministic: true
  1638. isNotInLoop: false
  1639. isNotNegated: true
  1640. isAtLeastOnce: true
  1641. hasInitialHardFailBOI: false
  1642. >
  1643. MatchLiteral("abc")
  1644. <
  1645. features: {MatchLiteral}
  1646. firstSet: [a] (exact)
  1647. followSet: [\x00-\uffff]
  1648. prevConsumes: [0-inf]
  1649. thisConsumes: [3]
  1650. followConsumes: [0-inf]
  1651. isThisIrrefutable: false
  1652. isFollowIrrefutable: true
  1653. isWord: true
  1654. isThisWillNotProgress: true
  1655. isThisWillNotRegress: true
  1656. isPrevWillNotProgress: false
  1657. isPrevWillNotRegress: true
  1658. isDeterministic: true
  1659. isNotInLoop: false
  1660. isNotNegated: true
  1661. isAtLeastOnce: true
  1662. hasInitialHardFailBOI: false
  1663. >
  1664. }
  1665. }
  1666. }
  1667. REGEX PROGRAM /(?:^abc)+?/
  1668. Program {
  1669. source: (?:^abc)+?
  1670. flags:
  1671. numGroups: 1
  1672. numLoops: 1
  1673. instructions: {
  1674. L0000: SyncToLiteralAndBackup(literal: "abc" (with linear map Boyer-Moore scanner), backup: [0-inf])
  1675. L0001: BeginLoop(loopId: 0, repeats: [1-inf], exitLabel: Lffff, hasOuterLoops: false, hasInnerNondet: false, minBodyGroupId: 1, maxBodyGroupId: -1, greedy: false)
  1676. L0002: BOITest(hardFail: true)
  1677. L0003: MatchLiteral(literal: "abc")
  1678. L0004: RepeatLoop(beginLabel: Lffff)
  1679. L0005: Succ()
  1680. }
  1681. }