Commit c0ac1598 by Alan Mishchenko

New technology mapper.

parent b3e0f5b2
......@@ -29522,7 +29522,7 @@ int Abc_CommandAbc9If2( Abc_Frame_t * pAbc, int argc, char ** argv )
// set defaults
Mpm_ManSetParsDefault( pPars );
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "KDtmzvwh" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "KDtmzrcuvwh" ) ) != EOF )
{
switch ( c )
{
......@@ -29532,8 +29532,8 @@ int Abc_CommandAbc9If2( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Command line switch \"-K\" should be followed by a positive integer.\n" );
goto usage;
}
globalUtilOptind++;
nLutSize = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
if ( nLutSize < 2 || nLutSize > 16 )
{
Abc_Print( -1, "LUT size %d is not supported.\n", nLutSize );
......@@ -29562,6 +29562,15 @@ int Abc_CommandAbc9If2( Abc_Frame_t * pAbc, int argc, char ** argv )
case 'z':
pPars->fDeriveLuts ^= 1;
break;
case 'r':
pPars->fOneRound ^= 1;
break;
case 'c':
pPars->fMap4Cnf ^= 1;
break;
case 'u':
pPars->fMap4Aig ^= 1;
break;
case 'v':
pPars->fVerbose ^= 1;
break;
......@@ -29575,6 +29584,8 @@ int Abc_CommandAbc9If2( Abc_Frame_t * pAbc, int argc, char ** argv )
}
if ( pPars->pLib == NULL )
pPars->pLib = Mpm_LibLutSetSimple( nLutSize );
if ( pPars->fMap4Cnf )
pPars->fUseDsd = 1;
if ( pPars->fCutMin )
// pPars->fUseTruth = 1;
pPars->fUseDsd = 1;
......@@ -29594,13 +29605,16 @@ usage:
sprintf(Buffer, "best possible" );
else
sprintf(Buffer, "%d", pPars->DelayTarget );
Abc_Print( -2, "usage: &if2 [-KD num] [-tmzvwh]\n" );
Abc_Print( -2, "usage: &if2 [-KD num] [-tmzrcuvwh]\n" );
Abc_Print( -2, "\t performs technology mapping of the network\n" );
Abc_Print( -2, "\t-K num : sets the LUT size for the mapping [default = %d]\n", nLutSize );
Abc_Print( -2, "\t-D num : sets the delay constraint for the mapping [default = %s]\n", Buffer );
Abc_Print( -2, "\t-t : enables using AND/XOR/MUX nodes instead of simple AIG [default = %s]\n", pPars->fUseGates? "yes": "no" );
Abc_Print( -2, "\t-m : enables cut minimization by removing vacuous variables [default = %s]\n", pPars->fCutMin? "yes": "no" );
Abc_Print( -2, "\t-z : toggles deriving LUTs when mapping into LUT structures [default = %s]\n", pPars->fDeriveLuts? "yes": "no" );
Abc_Print( -2, "\t-r : toggles using one round of mapping [default = %s]\n", pPars->fOneRound? "yes": "no" );
Abc_Print( -2, "\t-c : toggles mapping for CNF computation [default = %s]\n", pPars->fMap4Cnf? "yes": "no" );
Abc_Print( -2, "\t-u : toggles mapping for AIG computation [default = %s]\n", pPars->fMap4Aig? "yes": "no" );
Abc_Print( -2, "\t-v : toggles verbose output [default = %s]\n", pPars->fVerbose? "yes": "no" );
Abc_Print( -2, "\t-w : toggles very verbose output [default = %s]\n", pPars->fVeryVerbose? "yes": "no" );
Abc_Print( -2, "\t-h : prints the command usage\n");
......@@ -357,6 +357,7 @@ void Abc_TruthStoreRead( char * pFileName, Abc_TtStore_t * p )
void Abc_TtStoreWrite( char * pFileName, Abc_TtStore_t * p, int fBinary )
{
FILE * pFile;
char pBuffer[1000];
int i, nBytes = 8 * Abc_Truth6WordNum( p->nVars );
pFile = fopen( pFileName, "wb" );
if ( pFile == NULL )
......@@ -369,7 +370,11 @@ void Abc_TtStoreWrite( char * pFileName, Abc_TtStore_t * p, int fBinary )
if ( fBinary )
fwrite( p->pFuncs[i], nBytes, 1, pFile );
else
Abc_TruthWriteHex( pFile, p->pFuncs[i], p->nVars ), fprintf( pFile, "\n" );
{
Abc_TruthWriteHex( pFile, p->pFuncs[i], p->nVars ), fprintf( pFile, " " );
Dau_DsdDecompose( p->pFuncs[i], p->nVars, 0, (int)(p->nVars <= 10), pBuffer );
fprintf( pFile, "%s\n", pBuffer );
}
}
fclose( pFile );
}
......
......@@ -63,7 +63,10 @@ struct Mpm_Par_t_
int fUseTruth;
int fUseDsd;
int fCutMin;
int fOneRound;
int fDeriveLuts;
int fMap4Cnf;
int fMap4Aig;
int fVerbose;
int fVeryVerbose;
};
......
......@@ -20,7 +20,6 @@
#include "aig/gia/gia.h"
#include "mpmInt.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
......
......@@ -51,8 +51,11 @@ void Mpm_ManSetParsDefault( Mpm_Par_t * p )
p->fUseTruth = 0; // uses truth tables
p->fUseDsd = 0; // uses DSDs
p->fCutMin = 0; // enables cut minimization
p->fOneRound = 0; // enabled one round
p->DelayTarget = -1; // delay target
p->fDeriveLuts = 0; // use truth tables to derive AIG structure
p->fMap4Cnf = 0; // mapping for CNF
p->fMap4Aig = 0; // mapping for AIG
p->fVerbose = 0; // verbose output
p->fVeryVerbose = 0; // verbose output
}
......
......@@ -20,7 +20,6 @@
#include "mpmInt.h"
#include "misc/extra/extra.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
......@@ -29,601 +28,601 @@ ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
static Mpm_Dsd_t s_DsdClass6[595] = {
{ 0, ABC_CONST(0x0000000000000000), "0" }, // 0
{ 1, ABC_CONST(0xAAAAAAAAAAAAAAAA), "a" }, // 1
{ 2, ABC_CONST(0x8888888888888888), "(ab)" }, // 2
{ 2, ABC_CONST(0x6666666666666666), "[ab]" }, // 3
{ 3, ABC_CONST(0x8080808080808080), "(abc)" }, // 4
{ 3, ABC_CONST(0x7070707070707070), "(!(ab)c)" }, // 5
{ 3, ABC_CONST(0x7878787878787878), "[(ab)c]" }, // 6
{ 3, ABC_CONST(0x6060606060606060), "([ab]c)" }, // 7
{ 3, ABC_CONST(0x9696969696969696), "[abc]" }, // 8
{ 3, ABC_CONST(0xCACACACACACACACA), "<abc>" }, // 9
{ 4, ABC_CONST(0x8000800080008000), "(abcd)" }, // 10
{ 4, ABC_CONST(0x7F007F007F007F00), "(!(abc)d)" }, // 11
{ 4, ABC_CONST(0x7F807F807F807F80), "[(abc)d]" }, // 12
{ 4, ABC_CONST(0x7000700070007000), "(!(ab)cd)" }, // 13
{ 4, ABC_CONST(0x8F008F008F008F00), "(!(!(ab)c)d)" }, // 14
{ 4, ABC_CONST(0x8F708F708F708F70), "[(!(ab)c)d]" }, // 15
{ 4, ABC_CONST(0x7800780078007800), "([(ab)c]d)" }, // 16
{ 4, ABC_CONST(0x8778877887788778), "[(ab)cd]" }, // 17
{ 4, ABC_CONST(0x6000600060006000), "([ab]cd)" }, // 18
{ 4, ABC_CONST(0x9F009F009F009F00), "(!([ab]c)d)" }, // 19
{ 4, ABC_CONST(0x9F609F609F609F60), "[([ab]c)d]" }, // 20
{ 4, ABC_CONST(0x9600960096009600), "([abc]d)" }, // 21
{ 4, ABC_CONST(0x6996699669966996), "[abcd]" }, // 22
{ 4, ABC_CONST(0xCA00CA00CA00CA00), "(<abc>d)" }, // 23
{ 4, ABC_CONST(0x35CA35CA35CA35CA), "[<abc>d]" }, // 24
{ 4, ABC_CONST(0x0777077707770777), "(!(ab)!(cd))" }, // 25
{ 4, ABC_CONST(0x7888788878887888), "[(ab)(cd)]" }, // 26
{ 4, ABC_CONST(0x0666066606660666), "([ab]!(cd))" }, // 27
{ 4, ABC_CONST(0x0660066006600660), "([ab][cd])" }, // 28
{ 4, ABC_CONST(0xCAAACAAACAAACAAA), "<ab(cd)>" }, // 29
{ 4, ABC_CONST(0xACCAACCAACCAACCA), "<ab[cd]>" }, // 30
{ 4, ABC_CONST(0xF088F088F088F088), "<(ab)cd>" }, // 31
{ 4, ABC_CONST(0xF066F066F066F066), "<[ab]cd>" }, // 32
{ 5, ABC_CONST(0x8000000080000000), "(abcde)" }, // 33
{ 5, ABC_CONST(0x7FFF00007FFF0000), "(!(abcd)e)" }, // 34
{ 5, ABC_CONST(0x7FFF80007FFF8000), "[(abcd)e]" }, // 35
{ 5, ABC_CONST(0x7F0000007F000000), "(!(abc)de)" }, // 36
{ 5, ABC_CONST(0x80FF000080FF0000), "(!(!(abc)d)e)" }, // 37
{ 5, ABC_CONST(0x80FF7F0080FF7F00), "[(!(abc)d)e]" }, // 38
{ 5, ABC_CONST(0x7F8000007F800000), "([(abc)d]e)" }, // 39
{ 5, ABC_CONST(0x807F7F80807F7F80), "[(abc)de]" }, // 40
{ 5, ABC_CONST(0x7000000070000000), "(!(ab)cde)" }, // 41
{ 5, ABC_CONST(0x8FFF00008FFF0000), "(!(!(ab)cd)e)" }, // 42
{ 5, ABC_CONST(0x8FFF70008FFF7000), "[(!(ab)cd)e]" }, // 43
{ 5, ABC_CONST(0x8F0000008F000000), "(!(!(ab)c)de)" }, // 44
{ 5, ABC_CONST(0x70FF000070FF0000), "(!(!(!(ab)c)d)e)" }, // 45
{ 5, ABC_CONST(0x70FF8F0070FF8F00), "[(!(!(ab)c)d)e]" }, // 46
{ 5, ABC_CONST(0x8F7000008F700000), "([(!(ab)c)d]e)" }, // 47
{ 5, ABC_CONST(0x708F8F70708F8F70), "[(!(ab)c)de]" }, // 48
{ 5, ABC_CONST(0x7800000078000000), "([(ab)c]de)" }, // 49
{ 5, ABC_CONST(0x87FF000087FF0000), "(!([(ab)c]d)e)" }, // 50
{ 5, ABC_CONST(0x87FF780087FF7800), "[([(ab)c]d)e]" }, // 51
{ 5, ABC_CONST(0x8778000087780000), "([(ab)cd]e)" }, // 52
{ 5, ABC_CONST(0x7887877878878778), "[(ab)cde]" }, // 53
{ 5, ABC_CONST(0x6000000060000000), "([ab]cde)" }, // 54
{ 5, ABC_CONST(0x9FFF00009FFF0000), "(!([ab]cd)e)" }, // 55
{ 5, ABC_CONST(0x9FFF60009FFF6000), "[([ab]cd)e]" }, // 56
{ 5, ABC_CONST(0x9F0000009F000000), "(!([ab]c)de)" }, // 57
{ 5, ABC_CONST(0x60FF000060FF0000), "(!(!([ab]c)d)e)" }, // 58
{ 5, ABC_CONST(0x60FF9F0060FF9F00), "[(!([ab]c)d)e]" }, // 59
{ 5, ABC_CONST(0x9F6000009F600000), "([([ab]c)d]e)" }, // 60
{ 5, ABC_CONST(0x609F9F60609F9F60), "[([ab]c)de]" }, // 61
{ 5, ABC_CONST(0x9600000096000000), "([abc]de)" }, // 62
{ 5, ABC_CONST(0x69FF000069FF0000), "(!([abc]d)e)" }, // 63
{ 5, ABC_CONST(0x69FF960069FF9600), "[([abc]d)e]" }, // 64
{ 5, ABC_CONST(0x6996000069960000), "([abcd]e)" }, // 65
{ 5, ABC_CONST(0x9669699696696996), "[abcde]" }, // 66
{ 5, ABC_CONST(0xCA000000CA000000), "(<abc>de)" }, // 67
{ 5, ABC_CONST(0x35FF000035FF0000), "(!(<abc>d)e)" }, // 68
{ 5, ABC_CONST(0x35FFCA0035FFCA00), "[(<abc>d)e]" }, // 69
{ 5, ABC_CONST(0x35CA000035CA0000), "([<abc>d]e)" }, // 70
{ 5, ABC_CONST(0xCA3535CACA3535CA), "[<abc>de]" }, // 71
{ 5, ABC_CONST(0x0777000007770000), "(!(ab)!(cd)e)" }, // 72
{ 5, ABC_CONST(0xF8880000F8880000), "(!(!(ab)!(cd))e)" }, // 73
{ 5, ABC_CONST(0xF8880777F8880777), "[(!(ab)!(cd))e]" }, // 74
{ 5, ABC_CONST(0x7888000078880000), "([(ab)(cd)]e)" }, // 75
{ 5, ABC_CONST(0x8777000087770000), "(![(ab)(cd)]e)" }, // 76
{ 5, ABC_CONST(0x8777788887777888), "[(ab)(cd)e]" }, // 77
{ 5, ABC_CONST(0x0666000006660000), "([ab]!(cd)e)" }, // 78
{ 5, ABC_CONST(0xF9990000F9990000), "(!([ab]!(cd))e)" }, // 79
{ 5, ABC_CONST(0xF9990666F9990666), "[([ab]!(cd))e]" }, // 80
{ 5, ABC_CONST(0x0660000006600000), "([ab][cd]e)" }, // 81
{ 5, ABC_CONST(0xF99F0000F99F0000), "(!([ab][cd])e)" }, // 82
{ 5, ABC_CONST(0xF99F0660F99F0660), "[([ab][cd])e]" }, // 83
{ 5, ABC_CONST(0xCAAA0000CAAA0000), "(<ab(cd)>e)" }, // 84
{ 5, ABC_CONST(0x3555CAAA3555CAAA), "[<ab(cd)>e]" }, // 85
{ 5, ABC_CONST(0xACCA0000ACCA0000), "(<ab[cd]>e)" }, // 86
{ 5, ABC_CONST(0x5335ACCA5335ACCA), "[<ab[cd]>e]" }, // 87
{ 5, ABC_CONST(0xF0880000F0880000), "(<(ab)cd>e)" }, // 88
{ 5, ABC_CONST(0x0F7700000F770000), "(!<(ab)cd>e)" }, // 89
{ 5, ABC_CONST(0x0F77F0880F77F088), "[<(ab)cd>e]" }, // 90
{ 5, ABC_CONST(0xF0660000F0660000), "(<[ab]cd>e)" }, // 91
{ 5, ABC_CONST(0x0F99F0660F99F066), "[<[ab]cd>e]" }, // 92
{ 5, ABC_CONST(0x007F7F7F007F7F7F), "(!(abc)!(de))" }, // 93
{ 5, ABC_CONST(0x7F8080807F808080), "[(abc)(de)]" }, // 94
{ 5, ABC_CONST(0x008F8F8F008F8F8F), "(!(!(ab)c)!(de))" }, // 95
{ 5, ABC_CONST(0x8F7070708F707070), "[(!(ab)c)(de)]" }, // 96
{ 5, ABC_CONST(0x0078787800787878), "([(ab)c]!(de))" }, // 97
{ 5, ABC_CONST(0x009F9F9F009F9F9F), "(!([ab]c)!(de))" }, // 98
{ 5, ABC_CONST(0x9F6060609F606060), "[([ab]c)(de)]" }, // 99
{ 5, ABC_CONST(0x0096969600969696), "([abc]!(de))" }, // 100
{ 5, ABC_CONST(0x00CACACA00CACACA), "(<abc>!(de))" }, // 101
{ 5, ABC_CONST(0x35CACACA35CACACA), "[<abc>(de)]" }, // 102
{ 5, ABC_CONST(0x007F7F00007F7F00), "(!(abc)[de])" }, // 103
{ 5, ABC_CONST(0x008F8F00008F8F00), "(!(!(ab)c)[de])" }, // 104
{ 5, ABC_CONST(0x0078780000787800), "([(ab)c][de])" }, // 105
{ 5, ABC_CONST(0x009F9F00009F9F00), "(!([ab]c)[de])" }, // 106
{ 5, ABC_CONST(0x0096960000969600), "([abc][de])" }, // 107
{ 5, ABC_CONST(0x00CACA0000CACA00), "(<abc>[de])" }, // 108
{ 5, ABC_CONST(0xCAAAAAAACAAAAAAA), "<ab(cde)>" }, // 109
{ 5, ABC_CONST(0xACCCAAAAACCCAAAA), "<ab(!(cd)e)>" }, // 110
{ 5, ABC_CONST(0xACCCCAAAACCCCAAA), "<ab[(cd)e]>" }, // 111
{ 5, ABC_CONST(0xACCAAAAAACCAAAAA), "<ab([cd]e)>" }, // 112
{ 5, ABC_CONST(0xCAACACCACAACACCA), "<ab[cde]>" }, // 113
{ 5, ABC_CONST(0xCCAACACACCAACACA), "<ab<cde>>" }, // 114
{ 5, ABC_CONST(0xC0AAAAAAC0AAAAAA), "<a(bc)(de)>" }, // 115
{ 5, ABC_CONST(0x3CAAAAAA3CAAAAAA), "<a[bc](de)>" }, // 116
{ 5, ABC_CONST(0xF0888888F0888888), "<(ab)c(de)>" }, // 117
{ 5, ABC_CONST(0x88F0F08888F0F088), "<(ab)c[de]>" }, // 118
{ 5, ABC_CONST(0xF0666666F0666666), "<[ab]c(de)>" }, // 119
{ 5, ABC_CONST(0x66F0F06666F0F066), "<[ab]c[de]>" }, // 120
{ 5, ABC_CONST(0xF0008888F0008888), "<(ab)(cd)e>" }, // 121
{ 5, ABC_CONST(0xF0007777F0007777), "<!(ab)(cd)e>" }, // 122
{ 5, ABC_CONST(0xF0006666F0006666), "<[ab](cd)e>" }, // 123
{ 5, ABC_CONST(0x0FF066660FF06666), "<[ab][cd]e>" }, // 124
{ 5, ABC_CONST(0xFF008080FF008080), "<(abc)de>" }, // 125
{ 5, ABC_CONST(0xFF007070FF007070), "<(!(ab)c)de>" }, // 126
{ 5, ABC_CONST(0xFF007878FF007878), "<[(ab)c]de>" }, // 127
{ 5, ABC_CONST(0xFF006060FF006060), "<([ab]c)de>" }, // 128
{ 5, ABC_CONST(0xFF009696FF009696), "<[abc]de>" }, // 129
{ 5, ABC_CONST(0xFF00CACAFF00CACA), "<<abc>de>" }, // 130
{ 6, ABC_CONST(0x8000000000000000), "(abcdef)" }, // 131
{ 6, ABC_CONST(0x7FFFFFFF00000000), "(!(abcde)f)" }, // 132
{ 6, ABC_CONST(0x7FFFFFFF80000000), "[(abcde)f]" }, // 133
{ 6, ABC_CONST(0x7FFF000000000000), "(!(abcd)ef)" }, // 134
{ 6, ABC_CONST(0x8000FFFF00000000), "(!(!(abcd)e)f)" }, // 135
{ 6, ABC_CONST(0x8000FFFF7FFF0000), "[(!(abcd)e)f]" }, // 136
{ 6, ABC_CONST(0x7FFF800000000000), "([(abcd)e]f)" }, // 137
{ 6, ABC_CONST(0x80007FFF7FFF8000), "[(abcd)ef]" }, // 138
{ 6, ABC_CONST(0x7F00000000000000), "(!(abc)def)" }, // 139
{ 6, ABC_CONST(0x80FFFFFF00000000), "(!(!(abc)de)f)" }, // 140
{ 6, ABC_CONST(0x80FFFFFF7F000000), "[(!(abc)de)f]" }, // 141
{ 6, ABC_CONST(0x80FF000000000000), "(!(!(abc)d)ef)" }, // 142
{ 6, ABC_CONST(0x7F00FFFF00000000), "(!(!(!(abc)d)e)f)" }, // 143
{ 6, ABC_CONST(0x7F00FFFF80FF0000), "[(!(!(abc)d)e)f]" }, // 144
{ 6, ABC_CONST(0x80FF7F0000000000), "([(!(abc)d)e]f)" }, // 145
{ 6, ABC_CONST(0x7F0080FF80FF7F00), "[(!(abc)d)ef]" }, // 146
{ 6, ABC_CONST(0x7F80000000000000), "([(abc)d]ef)" }, // 147
{ 6, ABC_CONST(0x807FFFFF00000000), "(!([(abc)d]e)f)" }, // 148
{ 6, ABC_CONST(0x807FFFFF7F800000), "[([(abc)d]e)f]" }, // 149
{ 6, ABC_CONST(0x807F7F8000000000), "([(abc)de]f)" }, // 150
{ 6, ABC_CONST(0x7F80807F807F7F80), "[(abc)def]" }, // 151
{ 6, ABC_CONST(0x7000000000000000), "(!(ab)cdef)" }, // 152
{ 6, ABC_CONST(0x8FFFFFFF00000000), "(!(!(ab)cde)f)" }, // 153
{ 6, ABC_CONST(0x8FFFFFFF70000000), "[(!(ab)cde)f]" }, // 154
{ 6, ABC_CONST(0x8FFF000000000000), "(!(!(ab)cd)ef)" }, // 155
{ 6, ABC_CONST(0x7000FFFF00000000), "(!(!(!(ab)cd)e)f)" }, // 156
{ 6, ABC_CONST(0x7000FFFF8FFF0000), "[(!(!(ab)cd)e)f]" }, // 157
{ 6, ABC_CONST(0x8FFF700000000000), "([(!(ab)cd)e]f)" }, // 158
{ 6, ABC_CONST(0x70008FFF8FFF7000), "[(!(ab)cd)ef]" }, // 159
{ 6, ABC_CONST(0x8F00000000000000), "(!(!(ab)c)def)" }, // 160
{ 6, ABC_CONST(0x70FFFFFF00000000), "(!(!(!(ab)c)de)f)" }, // 161
{ 6, ABC_CONST(0x70FFFFFF8F000000), "[(!(!(ab)c)de)f]" }, // 162
{ 6, ABC_CONST(0x70FF000000000000), "(!(!(!(ab)c)d)ef)" }, // 163
{ 6, ABC_CONST(0x8F00FFFF00000000), "(!(!(!(!(ab)c)d)e)f)" }, // 164
{ 6, ABC_CONST(0x8F00FFFF70FF0000), "[(!(!(!(ab)c)d)e)f]" }, // 165
{ 6, ABC_CONST(0x70FF8F0000000000), "([(!(!(ab)c)d)e]f)" }, // 166
{ 6, ABC_CONST(0x8F0070FF70FF8F00), "[(!(!(ab)c)d)ef]" }, // 167
{ 6, ABC_CONST(0x8F70000000000000), "([(!(ab)c)d]ef)" }, // 168
{ 6, ABC_CONST(0x708FFFFF00000000), "(!([(!(ab)c)d]e)f)" }, // 169
{ 6, ABC_CONST(0x708FFFFF8F700000), "[([(!(ab)c)d]e)f]" }, // 170
{ 6, ABC_CONST(0x708F8F7000000000), "([(!(ab)c)de]f)" }, // 171
{ 6, ABC_CONST(0x8F70708F708F8F70), "[(!(ab)c)def]" }, // 172
{ 6, ABC_CONST(0x7800000000000000), "([(ab)c]def)" }, // 173
{ 6, ABC_CONST(0x87FFFFFF00000000), "(!([(ab)c]de)f)" }, // 174
{ 6, ABC_CONST(0x87FFFFFF78000000), "[([(ab)c]de)f]" }, // 175
{ 6, ABC_CONST(0x87FF000000000000), "(!([(ab)c]d)ef)" }, // 176
{ 6, ABC_CONST(0x7800FFFF00000000), "(!(!([(ab)c]d)e)f)" }, // 177
{ 6, ABC_CONST(0x7800FFFF87FF0000), "[(!([(ab)c]d)e)f]" }, // 178
{ 6, ABC_CONST(0x87FF780000000000), "([([(ab)c]d)e]f)" }, // 179
{ 6, ABC_CONST(0x780087FF87FF7800), "[([(ab)c]d)ef]" }, // 180
{ 6, ABC_CONST(0x8778000000000000), "([(ab)cd]ef)" }, // 181
{ 6, ABC_CONST(0x7887FFFF00000000), "(!([(ab)cd]e)f)" }, // 182
{ 6, ABC_CONST(0x7887FFFF87780000), "[([(ab)cd]e)f]" }, // 183
{ 6, ABC_CONST(0x7887877800000000), "([(ab)cde]f)" }, // 184
{ 6, ABC_CONST(0x8778788778878778), "[(ab)cdef]" }, // 185
{ 6, ABC_CONST(0x6000000000000000), "([ab]cdef)" }, // 186
{ 6, ABC_CONST(0x9FFFFFFF00000000), "(!([ab]cde)f)" }, // 187
{ 6, ABC_CONST(0x9FFFFFFF60000000), "[([ab]cde)f]" }, // 188
{ 6, ABC_CONST(0x9FFF000000000000), "(!([ab]cd)ef)" }, // 189
{ 6, ABC_CONST(0x6000FFFF00000000), "(!(!([ab]cd)e)f)" }, // 190
{ 6, ABC_CONST(0x6000FFFF9FFF0000), "[(!([ab]cd)e)f]" }, // 191
{ 6, ABC_CONST(0x9FFF600000000000), "([([ab]cd)e]f)" }, // 192
{ 6, ABC_CONST(0x60009FFF9FFF6000), "[([ab]cd)ef]" }, // 193
{ 6, ABC_CONST(0x9F00000000000000), "(!([ab]c)def)" }, // 194
{ 6, ABC_CONST(0x60FFFFFF00000000), "(!(!([ab]c)de)f)" }, // 195
{ 6, ABC_CONST(0x60FFFFFF9F000000), "[(!([ab]c)de)f]" }, // 196
{ 6, ABC_CONST(0x60FF000000000000), "(!(!([ab]c)d)ef)" }, // 197
{ 6, ABC_CONST(0x9F00FFFF00000000), "(!(!(!([ab]c)d)e)f)" }, // 198
{ 6, ABC_CONST(0x9F00FFFF60FF0000), "[(!(!([ab]c)d)e)f]" }, // 199
{ 6, ABC_CONST(0x60FF9F0000000000), "([(!([ab]c)d)e]f)" }, // 200
{ 6, ABC_CONST(0x9F0060FF60FF9F00), "[(!([ab]c)d)ef]" }, // 201
{ 6, ABC_CONST(0x9F60000000000000), "([([ab]c)d]ef)" }, // 202
{ 6, ABC_CONST(0x609FFFFF00000000), "(!([([ab]c)d]e)f)" }, // 203
{ 6, ABC_CONST(0x609FFFFF9F600000), "[([([ab]c)d]e)f]" }, // 204
{ 6, ABC_CONST(0x609F9F6000000000), "([([ab]c)de]f)" }, // 205
{ 6, ABC_CONST(0x9F60609F609F9F60), "[([ab]c)def]" }, // 206
{ 6, ABC_CONST(0x9600000000000000), "([abc]def)" }, // 207
{ 6, ABC_CONST(0x69FFFFFF00000000), "(!([abc]de)f)" }, // 208
{ 6, ABC_CONST(0x69FFFFFF96000000), "[([abc]de)f]" }, // 209
{ 6, ABC_CONST(0x69FF000000000000), "(!([abc]d)ef)" }, // 210
{ 6, ABC_CONST(0x9600FFFF00000000), "(!(!([abc]d)e)f)" }, // 211
{ 6, ABC_CONST(0x9600FFFF69FF0000), "[(!([abc]d)e)f]" }, // 212
{ 6, ABC_CONST(0x69FF960000000000), "([([abc]d)e]f)" }, // 213
{ 6, ABC_CONST(0x960069FF69FF9600), "[([abc]d)ef]" }, // 214
{ 6, ABC_CONST(0x6996000000000000), "([abcd]ef)" }, // 215
{ 6, ABC_CONST(0x9669FFFF00000000), "(!([abcd]e)f)" }, // 216
{ 6, ABC_CONST(0x9669FFFF69960000), "[([abcd]e)f]" }, // 217
{ 6, ABC_CONST(0x9669699600000000), "([abcde]f)" }, // 218
{ 6, ABC_CONST(0x6996966996696996), "[abcdef]" }, // 219
{ 6, ABC_CONST(0xCA00000000000000), "(<abc>def)" }, // 220
{ 6, ABC_CONST(0x35FFFFFF00000000), "(!(<abc>de)f)" }, // 221
{ 6, ABC_CONST(0x35FFFFFFCA000000), "[(<abc>de)f]" }, // 222
{ 6, ABC_CONST(0x35FF000000000000), "(!(<abc>d)ef)" }, // 223
{ 6, ABC_CONST(0xCA00FFFF00000000), "(!(!(<abc>d)e)f)" }, // 224
{ 6, ABC_CONST(0xCA00FFFF35FF0000), "[(!(<abc>d)e)f]" }, // 225
{ 6, ABC_CONST(0x35FFCA0000000000), "([(<abc>d)e]f)" }, // 226
{ 6, ABC_CONST(0xCA0035FF35FFCA00), "[(<abc>d)ef]" }, // 227
{ 6, ABC_CONST(0x35CA000000000000), "([<abc>d]ef)" }, // 228
{ 6, ABC_CONST(0xCA35FFFF00000000), "(!([<abc>d]e)f)" }, // 229
{ 6, ABC_CONST(0xCA35FFFF35CA0000), "[([<abc>d]e)f]" }, // 230
{ 6, ABC_CONST(0xCA3535CA00000000), "([<abc>de]f)" }, // 231
{ 6, ABC_CONST(0x35CACA35CA3535CA), "[<abc>def]" }, // 232
{ 6, ABC_CONST(0x0777000000000000), "(!(ab)!(cd)ef)" }, // 233
{ 6, ABC_CONST(0xF888FFFF00000000), "(!(!(ab)!(cd)e)f)" }, // 234
{ 6, ABC_CONST(0xF888FFFF07770000), "[(!(ab)!(cd)e)f]" }, // 235
{ 6, ABC_CONST(0xF888000000000000), "(!(!(ab)!(cd))ef)" }, // 236
{ 6, ABC_CONST(0x0777FFFF00000000), "(!(!(!(ab)!(cd))e)f)" }, // 237
{ 6, ABC_CONST(0x0777FFFFF8880000), "[(!(!(ab)!(cd))e)f]" }, // 238
{ 6, ABC_CONST(0xF888077700000000), "([(!(ab)!(cd))e]f)" }, // 239
{ 6, ABC_CONST(0x0777F888F8880777), "[(!(ab)!(cd))ef]" }, // 240
{ 6, ABC_CONST(0x7888000000000000), "([(ab)(cd)]ef)" }, // 241
{ 6, ABC_CONST(0x8777FFFF00000000), "(!([(ab)(cd)]e)f)" }, // 242
{ 6, ABC_CONST(0x8777FFFF78880000), "[([(ab)(cd)]e)f]" }, // 243
{ 6, ABC_CONST(0x8777000000000000), "(![(ab)(cd)]ef)" }, // 244
{ 6, ABC_CONST(0x7888FFFF00000000), "(!(![(ab)(cd)]e)f)" }, // 245
{ 6, ABC_CONST(0x7888FFFF87770000), "[(![(ab)(cd)]e)f]" }, // 246
{ 6, ABC_CONST(0x8777788800000000), "([(ab)(cd)e]f)" }, // 247
{ 6, ABC_CONST(0x7888877787777888), "[(ab)(cd)ef]" }, // 248
{ 6, ABC_CONST(0x0666000000000000), "([ab]!(cd)ef)" }, // 249
{ 6, ABC_CONST(0xF999FFFF00000000), "(!([ab]!(cd)e)f)" }, // 250
{ 6, ABC_CONST(0xF999FFFF06660000), "[([ab]!(cd)e)f]" }, // 251
{ 6, ABC_CONST(0xF999000000000000), "(!([ab]!(cd))ef)" }, // 252
{ 6, ABC_CONST(0x0666FFFF00000000), "(!(!([ab]!(cd))e)f)" }, // 253
{ 6, ABC_CONST(0x0666FFFFF9990000), "[(!([ab]!(cd))e)f]" }, // 254
{ 6, ABC_CONST(0xF999066600000000), "([([ab]!(cd))e]f)" }, // 255
{ 6, ABC_CONST(0x0666F999F9990666), "[([ab]!(cd))ef]" }, // 256
{ 6, ABC_CONST(0x0660000000000000), "([ab][cd]ef)" }, // 257
{ 6, ABC_CONST(0xF99FFFFF00000000), "(!([ab][cd]e)f)" }, // 258
{ 6, ABC_CONST(0xF99FFFFF06600000), "[([ab][cd]e)f]" }, // 259
{ 6, ABC_CONST(0xF99F000000000000), "(!([ab][cd])ef)" }, // 260
{ 6, ABC_CONST(0x0660FFFF00000000), "(!(!([ab][cd])e)f)" }, // 261
{ 6, ABC_CONST(0x0660FFFFF99F0000), "[(!([ab][cd])e)f]" }, // 262
{ 6, ABC_CONST(0xF99F066000000000), "([([ab][cd])e]f)" }, // 263
{ 6, ABC_CONST(0x0660F99FF99F0660), "[([ab][cd])ef]" }, // 264
{ 6, ABC_CONST(0xCAAA000000000000), "(<ab(cd)>ef)" }, // 265
{ 6, ABC_CONST(0x3555FFFF00000000), "(!(<ab(cd)>e)f)" }, // 266
{ 6, ABC_CONST(0x3555FFFFCAAA0000), "[(<ab(cd)>e)f]" }, // 267
{ 6, ABC_CONST(0x3555CAAA00000000), "([<ab(cd)>e]f)" }, // 268
{ 6, ABC_CONST(0xCAAA35553555CAAA), "[<ab(cd)>ef]" }, // 269
{ 6, ABC_CONST(0xACCA000000000000), "(<ab[cd]>ef)" }, // 270
{ 6, ABC_CONST(0x5335FFFF00000000), "(!(<ab[cd]>e)f)" }, // 271
{ 6, ABC_CONST(0x5335FFFFACCA0000), "[(<ab[cd]>e)f]" }, // 272
{ 6, ABC_CONST(0x5335ACCA00000000), "([<ab[cd]>e]f)" }, // 273
{ 6, ABC_CONST(0xACCA53355335ACCA), "[<ab[cd]>ef]" }, // 274
{ 6, ABC_CONST(0xF088000000000000), "(<(ab)cd>ef)" }, // 275
{ 6, ABC_CONST(0x0F77FFFF00000000), "(!(<(ab)cd>e)f)" }, // 276
{ 6, ABC_CONST(0x0F77FFFFF0880000), "[(<(ab)cd>e)f]" }, // 277
{ 6, ABC_CONST(0x0F77000000000000), "(!<(ab)cd>ef)" }, // 278
{ 6, ABC_CONST(0xF088FFFF00000000), "(!(!<(ab)cd>e)f)" }, // 279
{ 6, ABC_CONST(0xF088FFFF0F770000), "[(!<(ab)cd>e)f]" }, // 280
{ 6, ABC_CONST(0x0F77F08800000000), "([<(ab)cd>e]f)" }, // 281
{ 6, ABC_CONST(0xF0880F770F77F088), "[<(ab)cd>ef]" }, // 282
{ 6, ABC_CONST(0xF066000000000000), "(<[ab]cd>ef)" }, // 283
{ 6, ABC_CONST(0x0F99FFFF00000000), "(!(<[ab]cd>e)f)" }, // 284
{ 6, ABC_CONST(0x0F99FFFFF0660000), "[(<[ab]cd>e)f]" }, // 285
{ 6, ABC_CONST(0x0F99F06600000000), "([<[ab]cd>e]f)" }, // 286
{ 6, ABC_CONST(0xF0660F990F99F066), "[<[ab]cd>ef]" }, // 287
{ 6, ABC_CONST(0x007F7F7F00000000), "(!(abc)!(de)f)" }, // 288
{ 6, ABC_CONST(0xFF80808000000000), "(!(!(abc)!(de))f)" }, // 289
{ 6, ABC_CONST(0xFF808080007F7F7F), "[(!(abc)!(de))f]" }, // 290
{ 6, ABC_CONST(0x7F80808000000000), "([(abc)(de)]f)" }, // 291
{ 6, ABC_CONST(0x807F7F7F00000000), "(![(abc)(de)]f)" }, // 292
{ 6, ABC_CONST(0x807F7F7F7F808080), "[(abc)(de)f]" }, // 293
{ 6, ABC_CONST(0x008F8F8F00000000), "(!(!(ab)c)!(de)f)" }, // 294
{ 6, ABC_CONST(0xFF70707000000000), "(!(!(!(ab)c)!(de))f)" }, // 295
{ 6, ABC_CONST(0xFF707070008F8F8F), "[(!(!(ab)c)!(de))f]" }, // 296
{ 6, ABC_CONST(0x8F70707000000000), "([(!(ab)c)(de)]f)" }, // 297
{ 6, ABC_CONST(0x708F8F8F00000000), "(![(!(ab)c)(de)]f)" }, // 298
{ 6, ABC_CONST(0x708F8F8F8F707070), "[(!(ab)c)(de)f]" }, // 299
{ 6, ABC_CONST(0x0078787800000000), "([(ab)c]!(de)f)" }, // 300
{ 6, ABC_CONST(0xFF87878700000000), "(!([(ab)c]!(de))f)" }, // 301
{ 6, ABC_CONST(0xFF87878700787878), "[([(ab)c]!(de))f]" }, // 302
{ 6, ABC_CONST(0x009F9F9F00000000), "(!([ab]c)!(de)f)" }, // 303
{ 6, ABC_CONST(0xFF60606000000000), "(!(!([ab]c)!(de))f)" }, // 304
{ 6, ABC_CONST(0xFF606060009F9F9F), "[(!([ab]c)!(de))f]" }, // 305
{ 6, ABC_CONST(0x9F60606000000000), "([([ab]c)(de)]f)" }, // 306
{ 6, ABC_CONST(0x609F9F9F00000000), "(![([ab]c)(de)]f)" }, // 307
{ 6, ABC_CONST(0x609F9F9F9F606060), "[([ab]c)(de)f]" }, // 308
{ 6, ABC_CONST(0x0096969600000000), "([abc]!(de)f)" }, // 309
{ 6, ABC_CONST(0xFF69696900000000), "(!([abc]!(de))f)" }, // 310
{ 6, ABC_CONST(0xFF69696900969696), "[([abc]!(de))f]" }, // 311
{ 6, ABC_CONST(0x00CACACA00000000), "(<abc>!(de)f)" }, // 312
{ 6, ABC_CONST(0xFF35353500000000), "(!(<abc>!(de))f)" }, // 313
{ 6, ABC_CONST(0xFF35353500CACACA), "[(<abc>!(de))f]" }, // 314
{ 6, ABC_CONST(0x35CACACA00000000), "([<abc>(de)]f)" }, // 315
{ 6, ABC_CONST(0xCA35353535CACACA), "[<abc>(de)f]" }, // 316
{ 6, ABC_CONST(0x007F7F0000000000), "(!(abc)[de]f)" }, // 317
{ 6, ABC_CONST(0xFF8080FF00000000), "(!(!(abc)[de])f)" }, // 318
{ 6, ABC_CONST(0xFF8080FF007F7F00), "[(!(abc)[de])f]" }, // 319
{ 6, ABC_CONST(0x008F8F0000000000), "(!(!(ab)c)[de]f)" }, // 320
{ 6, ABC_CONST(0xFF7070FF00000000), "(!(!(!(ab)c)[de])f)" }, // 321
{ 6, ABC_CONST(0xFF7070FF008F8F00), "[(!(!(ab)c)[de])f]" }, // 322
{ 6, ABC_CONST(0x0078780000000000), "([(ab)c][de]f)" }, // 323
{ 6, ABC_CONST(0xFF8787FF00000000), "(!([(ab)c][de])f)" }, // 324
{ 6, ABC_CONST(0xFF8787FF00787800), "[([(ab)c][de])f]" }, // 325
{ 6, ABC_CONST(0x009F9F0000000000), "(!([ab]c)[de]f)" }, // 326
{ 6, ABC_CONST(0xFF6060FF00000000), "(!(!([ab]c)[de])f)" }, // 327
{ 6, ABC_CONST(0xFF6060FF009F9F00), "[(!([ab]c)[de])f]" }, // 328
{ 6, ABC_CONST(0x0096960000000000), "([abc][de]f)" }, // 329
{ 6, ABC_CONST(0xFF6969FF00000000), "(!([abc][de])f)" }, // 330
{ 6, ABC_CONST(0xFF6969FF00969600), "[([abc][de])f]" }, // 331
{ 6, ABC_CONST(0x00CACA0000000000), "(<abc>[de]f)" }, // 332
{ 6, ABC_CONST(0xFF3535FF00000000), "(!(<abc>[de])f)" }, // 333
{ 6, ABC_CONST(0xFF3535FF00CACA00), "[(<abc>[de])f]" }, // 334
{ 6, ABC_CONST(0xCAAAAAAA00000000), "(<ab(cde)>f)" }, // 335
{ 6, ABC_CONST(0x35555555CAAAAAAA), "[<ab(cde)>f]" }, // 336
{ 6, ABC_CONST(0xACCCAAAA00000000), "(<ab(!(cd)e)>f)" }, // 337
{ 6, ABC_CONST(0x53335555ACCCAAAA), "[<ab(!(cd)e)>f]" }, // 338
{ 6, ABC_CONST(0xACCCCAAA00000000), "(<ab[(cd)e]>f)" }, // 339
{ 6, ABC_CONST(0x53333555ACCCCAAA), "[<ab[(cd)e]>f]" }, // 340
{ 6, ABC_CONST(0xACCAAAAA00000000), "(<ab([cd]e)>f)" }, // 341
{ 6, ABC_CONST(0x53355555ACCAAAAA), "[<ab([cd]e)>f]" }, // 342
{ 6, ABC_CONST(0xCAACACCA00000000), "(<ab[cde]>f)" }, // 343
{ 6, ABC_CONST(0x35535335CAACACCA), "[<ab[cde]>f]" }, // 344
{ 6, ABC_CONST(0xCCAACACA00000000), "(<ab<cde>>f)" }, // 345
{ 6, ABC_CONST(0x33553535CCAACACA), "[<ab<cde>>f]" }, // 346
{ 6, ABC_CONST(0xC0AAAAAA00000000), "(<a(bc)(de)>f)" }, // 347
{ 6, ABC_CONST(0x3F55555500000000), "(!<a(bc)(de)>f)" }, // 348
{ 6, ABC_CONST(0x3F555555C0AAAAAA), "[<a(bc)(de)>f]" }, // 349
{ 6, ABC_CONST(0x3CAAAAAA00000000), "(<a[bc](de)>f)" }, // 350
{ 6, ABC_CONST(0xC35555553CAAAAAA), "[<a[bc](de)>f]" }, // 351
{ 6, ABC_CONST(0xF088888800000000), "(<(ab)c(de)>f)" }, // 352
{ 6, ABC_CONST(0x0F77777700000000), "(!<(ab)c(de)>f)" }, // 353
{ 6, ABC_CONST(0x0F777777F0888888), "[<(ab)c(de)>f]" }, // 354
{ 6, ABC_CONST(0x88F0F08800000000), "(<(ab)c[de]>f)" }, // 355
{ 6, ABC_CONST(0x770F0F7700000000), "(!<(ab)c[de]>f)" }, // 356
{ 6, ABC_CONST(0x770F0F7788F0F088), "[<(ab)c[de]>f]" }, // 357
{ 6, ABC_CONST(0xF066666600000000), "(<[ab]c(de)>f)" }, // 358
{ 6, ABC_CONST(0x0F999999F0666666), "[<[ab]c(de)>f]" }, // 359
{ 6, ABC_CONST(0x66F0F06600000000), "(<[ab]c[de]>f)" }, // 360
{ 6, ABC_CONST(0x990F0F9966F0F066), "[<[ab]c[de]>f]" }, // 361
{ 6, ABC_CONST(0xF000888800000000), "(<(ab)(cd)e>f)" }, // 362
{ 6, ABC_CONST(0x0FFF777700000000), "(!<(ab)(cd)e>f)" }, // 363
{ 6, ABC_CONST(0x0FFF7777F0008888), "[<(ab)(cd)e>f]" }, // 364
{ 6, ABC_CONST(0xF000777700000000), "(<!(ab)(cd)e>f)" }, // 365
{ 6, ABC_CONST(0x0FFF8888F0007777), "[<!(ab)(cd)e>f]" }, // 366
{ 6, ABC_CONST(0xF000666600000000), "(<[ab](cd)e>f)" }, // 367
{ 6, ABC_CONST(0x0FFF999900000000), "(!<[ab](cd)e>f)" }, // 368
{ 6, ABC_CONST(0x0FFF9999F0006666), "[<[ab](cd)e>f]" }, // 369
{ 6, ABC_CONST(0x0FF0666600000000), "(<[ab][cd]e>f)" }, // 370
{ 6, ABC_CONST(0xF00F99990FF06666), "[<[ab][cd]e>f]" }, // 371
{ 6, ABC_CONST(0xFF00808000000000), "(<(abc)de>f)" }, // 372
{ 6, ABC_CONST(0x00FF7F7F00000000), "(!<(abc)de>f)" }, // 373
{ 6, ABC_CONST(0x00FF7F7FFF008080), "[<(abc)de>f]" }, // 374
{ 6, ABC_CONST(0xFF00707000000000), "(<(!(ab)c)de>f)" }, // 375
{ 6, ABC_CONST(0x00FF8F8F00000000), "(!<(!(ab)c)de>f)" }, // 376
{ 6, ABC_CONST(0x00FF8F8FFF007070), "[<(!(ab)c)de>f]" }, // 377
{ 6, ABC_CONST(0xFF00787800000000), "(<[(ab)c]de>f)" }, // 378
{ 6, ABC_CONST(0x00FF8787FF007878), "[<[(ab)c]de>f]" }, // 379
{ 6, ABC_CONST(0xFF00606000000000), "(<([ab]c)de>f)" }, // 380
{ 6, ABC_CONST(0x00FF9F9F00000000), "(!<([ab]c)de>f)" }, // 381
{ 6, ABC_CONST(0x00FF9F9FFF006060), "[<([ab]c)de>f]" }, // 382
{ 6, ABC_CONST(0xFF00969600000000), "(<[abc]de>f)" }, // 383
{ 6, ABC_CONST(0x00FF6969FF009696), "[<[abc]de>f]" }, // 384
{ 6, ABC_CONST(0xFF00CACA00000000), "(<<abc>de>f)" }, // 385
{ 6, ABC_CONST(0x00FF3535FF00CACA), "[<<abc>de>f]" }, // 386
{ 6, ABC_CONST(0x00007FFF7FFF7FFF), "(!(abcd)!(ef))" }, // 387
{ 6, ABC_CONST(0x7FFF800080008000), "[(abcd)(ef)]" }, // 388
{ 6, ABC_CONST(0x000080FF80FF80FF), "(!(!(abc)d)!(ef))" }, // 389
{ 6, ABC_CONST(0x80FF7F007F007F00), "[(!(abc)d)(ef)]" }, // 390
{ 6, ABC_CONST(0x00007F807F807F80), "([(abc)d]!(ef))" }, // 391
{ 6, ABC_CONST(0x00008FFF8FFF8FFF), "(!(!(ab)cd)!(ef))" }, // 392
{ 6, ABC_CONST(0x8FFF700070007000), "[(!(ab)cd)(ef)]" }, // 393
{ 6, ABC_CONST(0x000070FF70FF70FF), "(!(!(!(ab)c)d)!(ef))" }, // 394
{ 6, ABC_CONST(0x70FF8F008F008F00), "[(!(!(ab)c)d)(ef)]" }, // 395
{ 6, ABC_CONST(0x00008F708F708F70), "([(!(ab)c)d]!(ef))" }, // 396
{ 6, ABC_CONST(0x000087FF87FF87FF), "(!([(ab)c]d)!(ef))" }, // 397
{ 6, ABC_CONST(0x87FF780078007800), "[([(ab)c]d)(ef)]" }, // 398
{ 6, ABC_CONST(0x0000877887788778), "([(ab)cd]!(ef))" }, // 399
{ 6, ABC_CONST(0x00009FFF9FFF9FFF), "(!([ab]cd)!(ef))" }, // 400
{ 6, ABC_CONST(0x9FFF600060006000), "[([ab]cd)(ef)]" }, // 401
{ 6, ABC_CONST(0x000060FF60FF60FF), "(!(!([ab]c)d)!(ef))" }, // 402
{ 6, ABC_CONST(0x60FF9F009F009F00), "[(!([ab]c)d)(ef)]" }, // 403
{ 6, ABC_CONST(0x00009F609F609F60), "([([ab]c)d]!(ef))" }, // 404
{ 6, ABC_CONST(0x000069FF69FF69FF), "(!([abc]d)!(ef))" }, // 405
{ 6, ABC_CONST(0x69FF960096009600), "[([abc]d)(ef)]" }, // 406
{ 6, ABC_CONST(0x0000699669966996), "([abcd]!(ef))" }, // 407
{ 6, ABC_CONST(0x000035FF35FF35FF), "(!(<abc>d)!(ef))" }, // 408
{ 6, ABC_CONST(0x35FFCA00CA00CA00), "[(<abc>d)(ef)]" }, // 409
{ 6, ABC_CONST(0x000035CA35CA35CA), "([<abc>d]!(ef))" }, // 410
{ 6, ABC_CONST(0x0000077707770777), "(!(ab)!(cd)!(ef))" }, // 411
{ 6, ABC_CONST(0x0000F888F888F888), "(!(!(ab)!(cd))!(ef))" }, // 412
{ 6, ABC_CONST(0xF888077707770777), "[(!(ab)!(cd))(ef)]" }, // 413
{ 6, ABC_CONST(0x0000788878887888), "([(ab)(cd)]!(ef))" }, // 414
{ 6, ABC_CONST(0x0000877787778777), "(![(ab)(cd)]!(ef))" }, // 415
{ 6, ABC_CONST(0x8777788878887888), "[(ab)(cd)(ef)]" }, // 416
{ 6, ABC_CONST(0x0000066606660666), "([ab]!(cd)!(ef))" }, // 417
{ 6, ABC_CONST(0x0000F999F999F999), "(!([ab]!(cd))!(ef))" }, // 418
{ 6, ABC_CONST(0xF999066606660666), "[([ab]!(cd))(ef)]" }, // 419
{ 6, ABC_CONST(0x0000066006600660), "([ab][cd]!(ef))" }, // 420
{ 6, ABC_CONST(0x0000F99FF99FF99F), "(!([ab][cd])!(ef))" }, // 421
{ 6, ABC_CONST(0xF99F066006600660), "[([ab][cd])(ef)]" }, // 422
{ 6, ABC_CONST(0x0000CAAACAAACAAA), "(<ab(cd)>!(ef))" }, // 423
{ 6, ABC_CONST(0x3555CAAACAAACAAA), "[<ab(cd)>(ef)]" }, // 424
{ 6, ABC_CONST(0x0000ACCAACCAACCA), "(<ab[cd]>!(ef))" }, // 425
{ 6, ABC_CONST(0x5335ACCAACCAACCA), "[<ab[cd]>(ef)]" }, // 426
{ 6, ABC_CONST(0x0000F088F088F088), "(<(ab)cd>!(ef))" }, // 427
{ 6, ABC_CONST(0x00000F770F770F77), "(!<(ab)cd>!(ef))" }, // 428
{ 6, ABC_CONST(0x0F77F088F088F088), "[<(ab)cd>(ef)]" }, // 429
{ 6, ABC_CONST(0x0000F066F066F066), "(<[ab]cd>!(ef))" }, // 430
{ 6, ABC_CONST(0x0F99F066F066F066), "[<[ab]cd>(ef)]" }, // 431
{ 6, ABC_CONST(0x00007FFF7FFF0000), "(!(abcd)[ef])" }, // 432
{ 6, ABC_CONST(0x000080FF80FF0000), "(!(!(abc)d)[ef])" }, // 433
{ 6, ABC_CONST(0x00007F807F800000), "([(abc)d][ef])" }, // 434
{ 6, ABC_CONST(0x00008FFF8FFF0000), "(!(!(ab)cd)[ef])" }, // 435
{ 6, ABC_CONST(0x000070FF70FF0000), "(!(!(!(ab)c)d)[ef])" }, // 436
{ 6, ABC_CONST(0x00008F708F700000), "([(!(ab)c)d][ef])" }, // 437
{ 6, ABC_CONST(0x000087FF87FF0000), "(!([(ab)c]d)[ef])" }, // 438
{ 6, ABC_CONST(0x0000877887780000), "([(ab)cd][ef])" }, // 439
{ 6, ABC_CONST(0x00009FFF9FFF0000), "(!([ab]cd)[ef])" }, // 440
{ 6, ABC_CONST(0x000060FF60FF0000), "(!(!([ab]c)d)[ef])" }, // 441
{ 6, ABC_CONST(0x00009F609F600000), "([([ab]c)d][ef])" }, // 442
{ 6, ABC_CONST(0x000069FF69FF0000), "(!([abc]d)[ef])" }, // 443
{ 6, ABC_CONST(0x0000699669960000), "([abcd][ef])" }, // 444
{ 6, ABC_CONST(0x000035FF35FF0000), "(!(<abc>d)[ef])" }, // 445
{ 6, ABC_CONST(0x000035CA35CA0000), "([<abc>d][ef])" }, // 446
{ 6, ABC_CONST(0x0000F888F8880000), "(!(!(ab)!(cd))[ef])" }, // 447
{ 6, ABC_CONST(0x0000788878880000), "([(ab)(cd)][ef])" }, // 448
{ 6, ABC_CONST(0x0000877787770000), "(![(ab)(cd)][ef])" }, // 449
{ 6, ABC_CONST(0x0000F999F9990000), "(!([ab]!(cd))[ef])" }, // 450
{ 6, ABC_CONST(0x0000066006600000), "([ab][cd][ef])" }, // 451
{ 6, ABC_CONST(0x0000F99FF99F0000), "(!([ab][cd])[ef])" }, // 452
{ 6, ABC_CONST(0x0000CAAACAAA0000), "(<ab(cd)>[ef])" }, // 453
{ 6, ABC_CONST(0x0000ACCAACCA0000), "(<ab[cd]>[ef])" }, // 454
{ 6, ABC_CONST(0x0000F088F0880000), "(<(ab)cd>[ef])" }, // 455
{ 6, ABC_CONST(0x00000F770F770000), "(!<(ab)cd>[ef])" }, // 456
{ 6, ABC_CONST(0x0000F066F0660000), "(<[ab]cd>[ef])" }, // 457
{ 6, ABC_CONST(0x007F7F7F7F7F7F7F), "(!(abc)!(def))" }, // 458
{ 6, ABC_CONST(0x7F80808080808080), "[(abc)(def)]" }, // 459
{ 6, ABC_CONST(0x008F8F8F8F8F8F8F), "(!(!(ab)c)!(def))" }, // 460
{ 6, ABC_CONST(0x8F70707070707070), "[(!(ab)c)(def)]" }, // 461
{ 6, ABC_CONST(0x0078787878787878), "([(ab)c]!(def))" }, // 462
{ 6, ABC_CONST(0x009F9F9F9F9F9F9F), "(!([ab]c)!(def))" }, // 463
{ 6, ABC_CONST(0x9F60606060606060), "[([ab]c)(def)]" }, // 464
{ 6, ABC_CONST(0x0096969696969696), "([abc]!(def))" }, // 465
{ 6, ABC_CONST(0x00CACACACACACACA), "(<abc>!(def))" }, // 466
{ 6, ABC_CONST(0x35CACACACACACACA), "[<abc>(def)]" }, // 467
{ 6, ABC_CONST(0x8F0000008F8F8F8F), "(!(!(ab)c)!(!(de)f))" }, // 468
{ 6, ABC_CONST(0x708F8F8F70707070), "[(!(ab)c)(!(de)f)]" }, // 469
{ 6, ABC_CONST(0x7800000078787878), "([(ab)c]!(!(de)f))" }, // 470
{ 6, ABC_CONST(0x9F0000009F9F9F9F), "(!([ab]c)!(!(de)f))" }, // 471
{ 6, ABC_CONST(0x609F9F9F60606060), "[([ab]c)(!(de)f)]" }, // 472
{ 6, ABC_CONST(0x9600000096969696), "([abc]!(!(de)f))" }, // 473
{ 6, ABC_CONST(0xCA000000CACACACA), "(<abc>!(!(de)f))" }, // 474
{ 6, ABC_CONST(0xCA353535CACACACA), "[<abc>(!(de)f)]" }, // 475
{ 6, ABC_CONST(0x0078787878000000), "([(ab)c][(de)f])" }, // 476
{ 6, ABC_CONST(0x009F9F9F9F000000), "(!([ab]c)[(de)f])" }, // 477
{ 6, ABC_CONST(0x0096969696000000), "([abc][(de)f])" }, // 478
{ 6, ABC_CONST(0x00CACACACA000000), "(<abc>[(de)f])" }, // 479
{ 6, ABC_CONST(0x9F00009F9F9F9F9F), "(!([ab]c)!([de]f))" }, // 480
{ 6, ABC_CONST(0x609F9F6060606060), "[([ab]c)([de]f)]" }, // 481
{ 6, ABC_CONST(0x9600009696969696), "([abc]!([de]f))" }, // 482
{ 6, ABC_CONST(0xCA0000CACACACACA), "(<abc>!([de]f))" }, // 483
{ 6, ABC_CONST(0xCA3535CACACACACA), "[<abc>([de]f)]" }, // 484
{ 6, ABC_CONST(0x9600009600969600), "([abc][def])" }, // 485
{ 6, ABC_CONST(0xCA0000CA00CACA00), "(<abc>[def])" }, // 486
{ 6, ABC_CONST(0xCACA0000CA00CA00), "(<abc><def>)" }, // 487
{ 6, ABC_CONST(0x3535CACA35CA35CA), "[<abc><def>]" }, // 488
{ 6, ABC_CONST(0xCAAAAAAAAAAAAAAA), "<ab(cdef)>" }, // 489
{ 6, ABC_CONST(0xACCCCCCCAAAAAAAA), "<ab(!(cde)f)>" }, // 490
{ 6, ABC_CONST(0xACCCCCCCCAAAAAAA), "<ab[(cde)f]>" }, // 491
{ 6, ABC_CONST(0xACCCAAAAAAAAAAAA), "<ab(!(cd)ef)>" }, // 492
{ 6, ABC_CONST(0xCAAACCCCAAAAAAAA), "<ab(!(!(cd)e)f)>" }, // 493
{ 6, ABC_CONST(0xCAAACCCCACCCAAAA), "<ab[(!(cd)e)f]>" }, // 494
{ 6, ABC_CONST(0xACCCCAAAAAAAAAAA), "<ab([(cd)e]f)>" }, // 495
{ 6, ABC_CONST(0xCAAAACCCACCCCAAA), "<ab[(cd)ef]>" }, // 496
{ 6, ABC_CONST(0xACCAAAAAAAAAAAAA), "<ab([cd]ef)>" }, // 497
{ 6, ABC_CONST(0xCAACCCCCAAAAAAAA), "<ab(!([cd]e)f)>" }, // 498
{ 6, ABC_CONST(0xCAACCCCCACCAAAAA), "<ab[([cd]e)f]>" }, // 499
{ 6, ABC_CONST(0xCAACACCAAAAAAAAA), "<ab([cde]f)>" }, // 500
{ 6, ABC_CONST(0xACCACAACCAACACCA), "<ab[cdef]>" }, // 501
{ 6, ABC_CONST(0xCCAACACAAAAAAAAA), "<ab(<cde>f)>" }, // 502
{ 6, ABC_CONST(0xAACCACACCCAACACA), "<ab[<cde>f]>" }, // 503
{ 6, ABC_CONST(0xAAAAACCCACCCACCC), "<ab(!(cd)!(ef))>" }, // 504
{ 6, ABC_CONST(0xACCCCAAACAAACAAA), "<ab[(cd)(ef)]>" }, // 505
{ 6, ABC_CONST(0xAAAAACCAACCAACCA), "<ab([cd]!(ef))>" }, // 506
{ 6, ABC_CONST(0xAAAAACCAACCAAAAA), "<ab([cd][ef])>" }, // 507
{ 6, ABC_CONST(0xCCAACACACACACACA), "<ab<cd(ef)>>" }, // 508
{ 6, ABC_CONST(0xCACACCAACCAACACA), "<ab<cd[ef]>>" }, // 509
{ 6, ABC_CONST(0xCCCCAAAACAAACAAA), "<ab<(cd)ef>>" }, // 510
{ 6, ABC_CONST(0xCCCCAAAAACCAACCA), "<ab<[cd]ef>>" }, // 511
{ 6, ABC_CONST(0xC0AAAAAAAAAAAAAA), "<a(bc)(def)>" }, // 512
{ 6, ABC_CONST(0xAAC0C0C0AAAAAAAA), "<a(bc)(!(de)f)>" }, // 513
{ 6, ABC_CONST(0xAAC0C0AAAAAAAAAA), "<a(bc)([de]f)>" }, // 514
{ 6, ABC_CONST(0x3CAAAAAAAAAAAAAA), "<a[bc](def)>" }, // 515
{ 6, ABC_CONST(0xAA3C3C3CAAAAAAAA), "<a[bc](!(de)f)>" }, // 516
{ 6, ABC_CONST(0xAA3C3CAAAAAAAAAA), "<a[bc]([de]f)>" }, // 517
{ 6, ABC_CONST(0xC000AAAAAAAAAAAA), "<a(bcd)(ef)>" }, // 518
{ 6, ABC_CONST(0x3F00AAAAAAAAAAAA), "<a(!(bc)d)(ef)>" }, // 519
{ 6, ABC_CONST(0x3FC0AAAAAAAAAAAA), "<a[(bc)d](ef)>" }, // 520
{ 6, ABC_CONST(0x3C00AAAAAAAAAAAA), "<a([bc]d)(ef)>" }, // 521
{ 6, ABC_CONST(0xC33CAAAAAAAAAAAA), "<a[bcd](ef)>" }, // 522
{ 6, ABC_CONST(0xF0CCAAAAAAAAAAAA), "<a<bcd>(ef)>" }, // 523
{ 6, ABC_CONST(0xF088888888888888), "<(ab)c(def)>" }, // 524
{ 6, ABC_CONST(0x88F0F0F088888888), "<(ab)c(!(de)f)>" }, // 525
{ 6, ABC_CONST(0x88F0F0F0F0888888), "<(ab)c[(de)f]>" }, // 526
{ 6, ABC_CONST(0x88F0F08888888888), "<(ab)c([de]f)>" }, // 527
{ 6, ABC_CONST(0xF08888F088F0F088), "<(ab)c[def]>" }, // 528
{ 6, ABC_CONST(0xF0F08888F088F088), "<(ab)c<def>>" }, // 529
{ 6, ABC_CONST(0xF066666666666666), "<[ab]c(def)>" }, // 530
{ 6, ABC_CONST(0x66F0F0F066666666), "<[ab]c(!(de)f)>" }, // 531
{ 6, ABC_CONST(0x66F0F0F0F0666666), "<[ab]c[(de)f]>" }, // 532
{ 6, ABC_CONST(0x66F0F06666666666), "<[ab]c([de]f)>" }, // 533
{ 6, ABC_CONST(0xF06666F066F0F066), "<[ab]c[def]>" }, // 534
{ 6, ABC_CONST(0xF0F06666F066F066), "<[ab]c<def>>" }, // 535
{ 6, ABC_CONST(0xF000888888888888), "<(ab)(cd)(ef)>" }, // 536
{ 6, ABC_CONST(0xF000777777777777), "<!(ab)(cd)(ef)>" }, // 537
{ 6, ABC_CONST(0x8888F000F0008888), "<(ab)(cd)[ef]>" }, // 538
{ 6, ABC_CONST(0x7777F000F0007777), "<!(ab)(cd)[ef]>" }, // 539
{ 6, ABC_CONST(0x0FF0888888888888), "<(ab)[cd](ef)>" }, // 540
{ 6, ABC_CONST(0xF000666666666666), "<[ab](cd)(ef)>" }, // 541
{ 6, ABC_CONST(0x6666F000F0006666), "<[ab](cd)[ef]>" }, // 542
{ 6, ABC_CONST(0x0FF0666666666666), "<[ab][cd](ef)>" }, // 543
{ 6, ABC_CONST(0x66660FF00FF06666), "<[ab][cd][ef]>" }, // 544
{ 6, ABC_CONST(0xFF00808080808080), "<(abc)d(ef)>" }, // 545
{ 6, ABC_CONST(0x8080FF00FF008080), "<(abc)d[ef]>" }, // 546
{ 6, ABC_CONST(0xFF00707070707070), "<(!(ab)c)d(ef)>" }, // 547
{ 6, ABC_CONST(0x7070FF00FF007070), "<(!(ab)c)d[ef]>" }, // 548
{ 6, ABC_CONST(0xFF00787878787878), "<[(ab)c]d(ef)>" }, // 549
{ 6, ABC_CONST(0x7878FF00FF007878), "<[(ab)c]d[ef]>" }, // 550
{ 6, ABC_CONST(0xFF00606060606060), "<([ab]c)d(ef)>" }, // 551
{ 6, ABC_CONST(0x6060FF00FF006060), "<([ab]c)d[ef]>" }, // 552
{ 6, ABC_CONST(0xFF00969696969696), "<[abc]d(ef)>" }, // 553
{ 6, ABC_CONST(0x9696FF00FF009696), "<[abc]d[ef]>" }, // 554
{ 6, ABC_CONST(0xFF00CACACACACACA), "<<abc>d(ef)>" }, // 555
{ 6, ABC_CONST(0xCACAFF00FF00CACA), "<<abc>d[ef]>" }, // 556
{ 6, ABC_CONST(0xFF00000080808080), "<(abc)(de)f>" }, // 557
{ 6, ABC_CONST(0xFF0000007F7F7F7F), "<!(abc)(de)f>" }, // 558
{ 6, ABC_CONST(0x00FFFF0080808080), "<(abc)[de]f>" }, // 559
{ 6, ABC_CONST(0xFF00000070707070), "<(!(ab)c)(de)f>" }, // 560
{ 6, ABC_CONST(0xFF0000008F8F8F8F), "<!(!(ab)c)(de)f>" }, // 561
{ 6, ABC_CONST(0x00FFFF0070707070), "<(!(ab)c)[de]f>" }, // 562
{ 6, ABC_CONST(0xFF00000078787878), "<[(ab)c](de)f>" }, // 563
{ 6, ABC_CONST(0x00FFFF0078787878), "<[(ab)c][de]f>" }, // 564
{ 6, ABC_CONST(0xFF00000060606060), "<([ab]c)(de)f>" }, // 565
{ 6, ABC_CONST(0xFF0000009F9F9F9F), "<!([ab]c)(de)f>" }, // 566
{ 6, ABC_CONST(0x00FFFF0060606060), "<([ab]c)[de]f>" }, // 567
{ 6, ABC_CONST(0xFF00000096969696), "<[abc](de)f>" }, // 568
{ 6, ABC_CONST(0x00FFFF0096969696), "<[abc][de]f>" }, // 569
{ 6, ABC_CONST(0xFF000000CACACACA), "<<abc>(de)f>" }, // 570
{ 6, ABC_CONST(0x00FFFF00CACACACA), "<<abc>[de]f>" }, // 571
{ 6, ABC_CONST(0xFFFF000080008000), "<(abcd)ef>" }, // 572
{ 6, ABC_CONST(0xFFFF00007F007F00), "<(!(abc)d)ef>" }, // 573
{ 6, ABC_CONST(0xFFFF00007F807F80), "<[(abc)d]ef>" }, // 574
{ 6, ABC_CONST(0xFFFF000070007000), "<(!(ab)cd)ef>" }, // 575
{ 6, ABC_CONST(0xFFFF00008F008F00), "<(!(!(ab)c)d)ef>" }, // 576
{ 6, ABC_CONST(0xFFFF00008F708F70), "<[(!(ab)c)d]ef>" }, // 577
{ 6, ABC_CONST(0xFFFF000078007800), "<([(ab)c]d)ef>" }, // 578
{ 6, ABC_CONST(0xFFFF000087788778), "<[(ab)cd]ef>" }, // 579
{ 6, ABC_CONST(0xFFFF000060006000), "<([ab]cd)ef>" }, // 580
{ 6, ABC_CONST(0xFFFF00009F009F00), "<(!([ab]c)d)ef>" }, // 581
{ 6, ABC_CONST(0xFFFF00009F609F60), "<[([ab]c)d]ef>" }, // 582
{ 6, ABC_CONST(0xFFFF000096009600), "<([abc]d)ef>" }, // 583
{ 6, ABC_CONST(0xFFFF000069966996), "<[abcd]ef>" }, // 584
{ 6, ABC_CONST(0xFFFF0000CA00CA00), "<(<abc>d)ef>" }, // 585
{ 6, ABC_CONST(0xFFFF000035CA35CA), "<[<abc>d]ef>" }, // 586
{ 6, ABC_CONST(0xFFFF000007770777), "<(!(ab)!(cd))ef>" }, // 587
{ 6, ABC_CONST(0xFFFF000078887888), "<[(ab)(cd)]ef>" }, // 588
{ 6, ABC_CONST(0xFFFF000006660666), "<([ab]!(cd))ef>" }, // 589
{ 6, ABC_CONST(0xFFFF000006600660), "<([ab][cd])ef>" }, // 590
{ 6, ABC_CONST(0xFFFF0000CAAACAAA), "<<ab(cd)>ef>" }, // 591
{ 6, ABC_CONST(0xFFFF0000ACCAACCA), "<<ab[cd]>ef>" }, // 592
{ 6, ABC_CONST(0xFFFF0000F088F088), "<<(ab)cd>ef>" }, // 593
{ 6, ABC_CONST(0xFFFF0000F066F066), "<<[ab]cd>ef>" } // 594
{ 0, 0, 1, ABC_CONST(0x0000000000000000), "0" }, // 0
{ 1, 0, 2, ABC_CONST(0xAAAAAAAAAAAAAAAA), "a" }, // 1
{ 2, 1, 3, ABC_CONST(0x8888888888888888), "(ab)" }, // 2
{ 2, 3, 4, ABC_CONST(0x6666666666666666), "[ab]" }, // 3
{ 3, 2, 4, ABC_CONST(0x8080808080808080), "(abc)" }, // 4
{ 3, 2, 4, ABC_CONST(0x7070707070707070), "(!(ab)c)" }, // 5
{ 3, 4, 6, ABC_CONST(0x7878787878787878), "[(ab)c]" }, // 6
{ 3, 4, 5, ABC_CONST(0x6060606060606060), "([ab]c)" }, // 7
{ 3, 6, 8, ABC_CONST(0x9696969696969696), "[abc]" }, // 8
{ 3, 3, 4, ABC_CONST(0xCACACACACACACACA), "<abc>" }, // 9
{ 4, 3, 5, ABC_CONST(0x8000800080008000), "(abcd)" }, // 10
{ 4, 3, 5, ABC_CONST(0x7F007F007F007F00), "(!(abc)d)" }, // 11
{ 4, 5, 8, ABC_CONST(0x7F807F807F807F80), "[(abc)d]" }, // 12
{ 4, 3, 5, ABC_CONST(0x7000700070007000), "(!(ab)cd)" }, // 13
{ 4, 3, 5, ABC_CONST(0x8F008F008F008F00), "(!(!(ab)c)d)" }, // 14
{ 4, 5, 8, ABC_CONST(0x8F708F708F708F70), "[(!(ab)c)d]" }, // 15
{ 4, 5, 7, ABC_CONST(0x7800780078007800), "([(ab)c]d)" }, // 16
{ 4, 7, 12, ABC_CONST(0x8778877887788778), "[(ab)cd]" }, // 17
{ 4, 5, 6, ABC_CONST(0x6000600060006000), "([ab]cd)" }, // 18
{ 4, 5, 6, ABC_CONST(0x9F009F009F009F00), "(!([ab]c)d)" }, // 19
{ 4, 7, 10, ABC_CONST(0x9F609F609F609F60), "[([ab]c)d]" }, // 20
{ 4, 7, 9, ABC_CONST(0x9600960096009600), "([abc]d)" }, // 21
{ 4, 9, 16, ABC_CONST(0x6996699669966996), "[abcd]" }, // 22
{ 4, 4, 5, ABC_CONST(0xCA00CA00CA00CA00), "(<abc>d)" }, // 23
{ 4, 6, 8, ABC_CONST(0x35CA35CA35CA35CA), "[<abc>d]" }, // 24
{ 4, 3, 6, ABC_CONST(0x0777077707770777), "(!(ab)!(cd))" }, // 25
{ 4, 5, 9, ABC_CONST(0x7888788878887888), "[(ab)(cd)]" }, // 26
{ 4, 5, 7, ABC_CONST(0x0666066606660666), "([ab]!(cd))" }, // 27
{ 4, 7, 8, ABC_CONST(0x0660066006600660), "([ab][cd])" }, // 28
{ 4, 4, 6, ABC_CONST(0xCAAACAAACAAACAAA), "<ab(cd)>" }, // 29
{ 4, 6, 8, ABC_CONST(0xACCAACCAACCAACCA), "<ab[cd]>" }, // 30
{ 4, 4, 5, ABC_CONST(0xF088F088F088F088), "<(ab)cd>" }, // 31
{ 4, 6, 6, ABC_CONST(0xF066F066F066F066), "<[ab]cd>" }, // 32
{ 5, 4, 6, ABC_CONST(0x8000000080000000), "(abcde)" }, // 33
{ 5, 4, 6, ABC_CONST(0x7FFF00007FFF0000), "(!(abcd)e)" }, // 34
{ 5, 6, 10, ABC_CONST(0x7FFF80007FFF8000), "[(abcd)e]" }, // 35
{ 5, 4, 6, ABC_CONST(0x7F0000007F000000), "(!(abc)de)" }, // 36
{ 5, 4, 6, ABC_CONST(0x80FF000080FF0000), "(!(!(abc)d)e)" }, // 37
{ 5, 6, 10, ABC_CONST(0x80FF7F0080FF7F00), "[(!(abc)d)e]" }, // 38
{ 5, 6, 9, ABC_CONST(0x7F8000007F800000), "([(abc)d]e)" }, // 39
{ 5, 8, 16, ABC_CONST(0x807F7F80807F7F80), "[(abc)de]" }, // 40
{ 5, 4, 6, ABC_CONST(0x7000000070000000), "(!(ab)cde)" }, // 41
{ 5, 4, 6, ABC_CONST(0x8FFF00008FFF0000), "(!(!(ab)cd)e)" }, // 42
{ 5, 6, 10, ABC_CONST(0x8FFF70008FFF7000), "[(!(ab)cd)e]" }, // 43
{ 5, 4, 6, ABC_CONST(0x8F0000008F000000), "(!(!(ab)c)de)" }, // 44
{ 5, 4, 6, ABC_CONST(0x70FF000070FF0000), "(!(!(!(ab)c)d)e)" }, // 45
{ 5, 6, 10, ABC_CONST(0x70FF8F0070FF8F00), "[(!(!(ab)c)d)e]" }, // 46
{ 5, 6, 9, ABC_CONST(0x8F7000008F700000), "([(!(ab)c)d]e)" }, // 47
{ 5, 8, 16, ABC_CONST(0x708F8F70708F8F70), "[(!(ab)c)de]" }, // 48
{ 5, 6, 8, ABC_CONST(0x7800000078000000), "([(ab)c]de)" }, // 49
{ 5, 6, 8, ABC_CONST(0x87FF000087FF0000), "(!([(ab)c]d)e)" }, // 50
{ 5, 8, 14, ABC_CONST(0x87FF780087FF7800), "[([(ab)c]d)e]" }, // 51
{ 5, 8, 13, ABC_CONST(0x8778000087780000), "([(ab)cd]e)" }, // 52
{ 5, 10, 24, ABC_CONST(0x7887877878878778), "[(ab)cde]" }, // 53
{ 5, 6, 7, ABC_CONST(0x6000000060000000), "([ab]cde)" }, // 54
{ 5, 6, 7, ABC_CONST(0x9FFF00009FFF0000), "(!([ab]cd)e)" }, // 55
{ 5, 8, 12, ABC_CONST(0x9FFF60009FFF6000), "[([ab]cd)e]" }, // 56
{ 5, 6, 7, ABC_CONST(0x9F0000009F000000), "(!([ab]c)de)" }, // 57
{ 5, 6, 7, ABC_CONST(0x60FF000060FF0000), "(!(!([ab]c)d)e)" }, // 58
{ 5, 8, 12, ABC_CONST(0x60FF9F0060FF9F00), "[(!([ab]c)d)e]" }, // 59
{ 5, 8, 11, ABC_CONST(0x9F6000009F600000), "([([ab]c)d]e)" }, // 60
{ 5, 10, 20, ABC_CONST(0x609F9F60609F9F60), "[([ab]c)de]" }, // 61
{ 5, 8, 10, ABC_CONST(0x9600000096000000), "([abc]de)" }, // 62
{ 5, 8, 10, ABC_CONST(0x69FF000069FF0000), "(!([abc]d)e)" }, // 63
{ 5, 10, 18, ABC_CONST(0x69FF960069FF9600), "[([abc]d)e]" }, // 64
{ 5, 10, 17, ABC_CONST(0x6996000069960000), "([abcd]e)" }, // 65
{ 5, 12, 32, ABC_CONST(0x9669699696696996), "[abcde]" }, // 66
{ 5, 5, 6, ABC_CONST(0xCA000000CA000000), "(<abc>de)" }, // 67
{ 5, 5, 6, ABC_CONST(0x35FF000035FF0000), "(!(<abc>d)e)" }, // 68
{ 5, 7, 10, ABC_CONST(0x35FFCA0035FFCA00), "[(<abc>d)e]" }, // 69
{ 5, 7, 9, ABC_CONST(0x35CA000035CA0000), "([<abc>d]e)" }, // 70
{ 5, 9, 16, ABC_CONST(0xCA3535CACA3535CA), "[<abc>de]" }, // 71
{ 5, 4, 7, ABC_CONST(0x0777000007770000), "(!(ab)!(cd)e)" }, // 72
{ 5, 4, 7, ABC_CONST(0xF8880000F8880000), "(!(!(ab)!(cd))e)" }, // 73
{ 5, 6, 12, ABC_CONST(0xF8880777F8880777), "[(!(ab)!(cd))e]" }, // 74
{ 5, 6, 10, ABC_CONST(0x7888000078880000), "([(ab)(cd)]e)" }, // 75
{ 5, 6, 10, ABC_CONST(0x8777000087770000), "(![(ab)(cd)]e)" }, // 76
{ 5, 8, 18, ABC_CONST(0x8777788887777888), "[(ab)(cd)e]" }, // 77
{ 5, 6, 8, ABC_CONST(0x0666000006660000), "([ab]!(cd)e)" }, // 78
{ 5, 6, 8, ABC_CONST(0xF9990000F9990000), "(!([ab]!(cd))e)" }, // 79
{ 5, 8, 14, ABC_CONST(0xF9990666F9990666), "[([ab]!(cd))e]" }, // 80
{ 5, 8, 9, ABC_CONST(0x0660000006600000), "([ab][cd]e)" }, // 81
{ 5, 8, 9, ABC_CONST(0xF99F0000F99F0000), "(!([ab][cd])e)" }, // 82
{ 5, 10, 16, ABC_CONST(0xF99F0660F99F0660), "[([ab][cd])e]" }, // 83
{ 5, 5, 7, ABC_CONST(0xCAAA0000CAAA0000), "(<ab(cd)>e)" }, // 84
{ 5, 7, 12, ABC_CONST(0x3555CAAA3555CAAA), "[<ab(cd)>e]" }, // 85
{ 5, 7, 9, ABC_CONST(0xACCA0000ACCA0000), "(<ab[cd]>e)" }, // 86
{ 5, 9, 16, ABC_CONST(0x5335ACCA5335ACCA), "[<ab[cd]>e]" }, // 87
{ 5, 5, 6, ABC_CONST(0xF0880000F0880000), "(<(ab)cd>e)" }, // 88
{ 5, 5, 6, ABC_CONST(0x0F7700000F770000), "(!<(ab)cd>e)" }, // 89
{ 5, 7, 10, ABC_CONST(0x0F77F0880F77F088), "[<(ab)cd>e]" }, // 90
{ 5, 7, 7, ABC_CONST(0xF0660000F0660000), "(<[ab]cd>e)" }, // 91
{ 5, 9, 12, ABC_CONST(0x0F99F0660F99F066), "[<[ab]cd>e]" }, // 92
{ 5, 4, 8, ABC_CONST(0x007F7F7F007F7F7F), "(!(abc)!(de))" }, // 93
{ 5, 6, 12, ABC_CONST(0x7F8080807F808080), "[(abc)(de)]" }, // 94
{ 5, 4, 7, ABC_CONST(0x008F8F8F008F8F8F), "(!(!(ab)c)!(de))" }, // 95
{ 5, 6, 12, ABC_CONST(0x8F7070708F707070), "[(!(ab)c)(de)]" }, // 96
{ 5, 6, 10, ABC_CONST(0x0078787800787878), "([(ab)c]!(de))" }, // 97
{ 5, 6, 9, ABC_CONST(0x009F9F9F009F9F9F), "(!([ab]c)!(de))" }, // 98
{ 5, 8, 15, ABC_CONST(0x9F6060609F606060), "[([ab]c)(de)]" }, // 99
{ 5, 8, 13, ABC_CONST(0x0096969600969696), "([abc]!(de))" }, // 100
{ 5, 5, 7, ABC_CONST(0x00CACACA00CACACA), "(<abc>!(de))" }, // 101
{ 5, 7, 12, ABC_CONST(0x35CACACA35CACACA), "[<abc>(de)]" }, // 102
{ 5, 6, 9, ABC_CONST(0x007F7F00007F7F00), "(!(abc)[de])" }, // 103
{ 5, 6, 8, ABC_CONST(0x008F8F00008F8F00), "(!(!(ab)c)[de])" }, // 104
{ 5, 8, 11, ABC_CONST(0x0078780000787800), "([(ab)c][de])" }, // 105
{ 5, 8, 10, ABC_CONST(0x009F9F00009F9F00), "(!([ab]c)[de])" }, // 106
{ 5, 10, 14, ABC_CONST(0x0096960000969600), "([abc][de])" }, // 107
{ 5, 7, 8, ABC_CONST(0x00CACA0000CACA00), "(<abc>[de])" }, // 108
{ 5, 5, 8, ABC_CONST(0xCAAAAAAACAAAAAAA), "<ab(cde)>" }, // 109
{ 5, 5, 8, ABC_CONST(0xACCCAAAAACCCAAAA), "<ab(!(cd)e)>" }, // 110
{ 5, 7, 12, ABC_CONST(0xACCCCAAAACCCCAAA), "<ab[(cd)e]>" }, // 111
{ 5, 7, 10, ABC_CONST(0xACCAAAAAACCAAAAA), "<ab([cd]e)>" }, // 112
{ 5, 9, 16, ABC_CONST(0xCAACACCACAACACCA), "<ab[cde]>" }, // 113
{ 5, 6, 8, ABC_CONST(0xCCAACACACCAACACA), "<ab<cde>>" }, // 114
{ 5, 5, 7, ABC_CONST(0xC0AAAAAAC0AAAAAA), "<a(bc)(de)>" }, // 115
{ 5, 7, 8, ABC_CONST(0x3CAAAAAA3CAAAAAA), "<a[bc](de)>" }, // 116
{ 5, 5, 8, ABC_CONST(0xF0888888F0888888), "<(ab)c(de)>" }, // 117
{ 5, 7, 10, ABC_CONST(0x88F0F08888F0F088), "<(ab)c[de]>" }, // 118
{ 5, 7, 10, ABC_CONST(0xF0666666F0666666), "<[ab]c(de)>" }, // 119
{ 5, 9, 12, ABC_CONST(0x66F0F06666F0F066), "<[ab]c[de]>" }, // 120
{ 5, 5, 6, ABC_CONST(0xF0008888F0008888), "<(ab)(cd)e>" }, // 121
{ 5, 5, 6, ABC_CONST(0xF0007777F0007777), "<!(ab)(cd)e>" }, // 122
{ 5, 7, 7, ABC_CONST(0xF0006666F0006666), "<[ab](cd)e>" }, // 123
{ 5, 9, 8, ABC_CONST(0x0FF066660FF06666), "<[ab][cd]e>" }, // 124
{ 5, 5, 6, ABC_CONST(0xFF008080FF008080), "<(abc)de>" }, // 125
{ 5, 5, 6, ABC_CONST(0xFF007070FF007070), "<(!(ab)c)de>" }, // 126
{ 5, 7, 8, ABC_CONST(0xFF007878FF007878), "<[(ab)c]de>" }, // 127
{ 5, 7, 7, ABC_CONST(0xFF006060FF006060), "<([ab]c)de>" }, // 128
{ 5, 9, 10, ABC_CONST(0xFF009696FF009696), "<[abc]de>" }, // 129
{ 5, 6, 6, ABC_CONST(0xFF00CACAFF00CACA), "<<abc>de>" }, // 130
{ 6, 5, 7, ABC_CONST(0x8000000000000000), "(abcdef)" }, // 131
{ 6, 5, 7, ABC_CONST(0x7FFFFFFF00000000), "(!(abcde)f)" }, // 132
{ 6, 7, 12, ABC_CONST(0x7FFFFFFF80000000), "[(abcde)f]" }, // 133
{ 6, 5, 7, ABC_CONST(0x7FFF000000000000), "(!(abcd)ef)" }, // 134
{ 6, 5, 7, ABC_CONST(0x8000FFFF00000000), "(!(!(abcd)e)f)" }, // 135
{ 6, 7, 12, ABC_CONST(0x8000FFFF7FFF0000), "[(!(abcd)e)f]" }, // 136
{ 6, 7, 11, ABC_CONST(0x7FFF800000000000), "([(abcd)e]f)" }, // 137
{ 6, 9, 20, ABC_CONST(0x80007FFF7FFF8000), "[(abcd)ef]" }, // 138
{ 6, 5, 7, ABC_CONST(0x7F00000000000000), "(!(abc)def)" }, // 139
{ 6, 5, 7, ABC_CONST(0x80FFFFFF00000000), "(!(!(abc)de)f)" }, // 140
{ 6, 7, 12, ABC_CONST(0x80FFFFFF7F000000), "[(!(abc)de)f]" }, // 141
{ 6, 5, 7, ABC_CONST(0x80FF000000000000), "(!(!(abc)d)ef)" }, // 142
{ 6, 5, 7, ABC_CONST(0x7F00FFFF00000000), "(!(!(!(abc)d)e)f)" }, // 143
{ 6, 7, 12, ABC_CONST(0x7F00FFFF80FF0000), "[(!(!(abc)d)e)f]" }, // 144
{ 6, 7, 11, ABC_CONST(0x80FF7F0000000000), "([(!(abc)d)e]f)" }, // 145
{ 6, 9, 20, ABC_CONST(0x7F0080FF80FF7F00), "[(!(abc)d)ef]" }, // 146
{ 6, 7, 10, ABC_CONST(0x7F80000000000000), "([(abc)d]ef)" }, // 147
{ 6, 7, 10, ABC_CONST(0x807FFFFF00000000), "(!([(abc)d]e)f)" }, // 148
{ 6, 9, 18, ABC_CONST(0x807FFFFF7F800000), "[([(abc)d]e)f]" }, // 149
{ 6, 9, 17, ABC_CONST(0x807F7F8000000000), "([(abc)de]f)" }, // 150
{ 6, 11, 32, ABC_CONST(0x7F80807F807F7F80), "[(abc)def]" }, // 151
{ 6, 5, 7, ABC_CONST(0x7000000000000000), "(!(ab)cdef)" }, // 152
{ 6, 5, 7, ABC_CONST(0x8FFFFFFF00000000), "(!(!(ab)cde)f)" }, // 153
{ 6, 7, 12, ABC_CONST(0x8FFFFFFF70000000), "[(!(ab)cde)f]" }, // 154
{ 6, 5, 7, ABC_CONST(0x8FFF000000000000), "(!(!(ab)cd)ef)" }, // 155
{ 6, 5, 7, ABC_CONST(0x7000FFFF00000000), "(!(!(!(ab)cd)e)f)" }, // 156
{ 6, 7, 12, ABC_CONST(0x7000FFFF8FFF0000), "[(!(!(ab)cd)e)f]" }, // 157
{ 6, 7, 11, ABC_CONST(0x8FFF700000000000), "([(!(ab)cd)e]f)" }, // 158
{ 6, 9, 20, ABC_CONST(0x70008FFF8FFF7000), "[(!(ab)cd)ef]" }, // 159
{ 6, 5, 7, ABC_CONST(0x8F00000000000000), "(!(!(ab)c)def)" }, // 160
{ 6, 5, 7, ABC_CONST(0x70FFFFFF00000000), "(!(!(!(ab)c)de)f)" }, // 161
{ 6, 7, 12, ABC_CONST(0x70FFFFFF8F000000), "[(!(!(ab)c)de)f]" }, // 162
{ 6, 5, 7, ABC_CONST(0x70FF000000000000), "(!(!(!(ab)c)d)ef)" }, // 163
{ 6, 5, 7, ABC_CONST(0x8F00FFFF00000000), "(!(!(!(!(ab)c)d)e)f)" }, // 164
{ 6, 7, 12, ABC_CONST(0x8F00FFFF70FF0000), "[(!(!(!(ab)c)d)e)f]" }, // 165
{ 6, 7, 11, ABC_CONST(0x70FF8F0000000000), "([(!(!(ab)c)d)e]f)" }, // 166
{ 6, 9, 20, ABC_CONST(0x8F0070FF70FF8F00), "[(!(!(ab)c)d)ef]" }, // 167
{ 6, 7, 10, ABC_CONST(0x8F70000000000000), "([(!(ab)c)d]ef)" }, // 168
{ 6, 7, 10, ABC_CONST(0x708FFFFF00000000), "(!([(!(ab)c)d]e)f)" }, // 169
{ 6, 9, 18, ABC_CONST(0x708FFFFF8F700000), "[([(!(ab)c)d]e)f]" }, // 170
{ 6, 9, 17, ABC_CONST(0x708F8F7000000000), "([(!(ab)c)de]f)" }, // 171
{ 6, 11, 32, ABC_CONST(0x8F70708F708F8F70), "[(!(ab)c)def]" }, // 172
{ 6, 7, 9, ABC_CONST(0x7800000000000000), "([(ab)c]def)" }, // 173
{ 6, 7, 9, ABC_CONST(0x87FFFFFF00000000), "(!([(ab)c]de)f)" }, // 174
{ 6, 9, 16, ABC_CONST(0x87FFFFFF78000000), "[([(ab)c]de)f]" }, // 175
{ 6, 7, 9, ABC_CONST(0x87FF000000000000), "(!([(ab)c]d)ef)" }, // 176
{ 6, 7, 9, ABC_CONST(0x7800FFFF00000000), "(!(!([(ab)c]d)e)f)" }, // 177
{ 6, 9, 16, ABC_CONST(0x7800FFFF87FF0000), "[(!([(ab)c]d)e)f]" }, // 178
{ 6, 9, 15, ABC_CONST(0x87FF780000000000), "([([(ab)c]d)e]f)" }, // 179
{ 6, 11, 28, ABC_CONST(0x780087FF87FF7800), "[([(ab)c]d)ef]" }, // 180
{ 6, 9, 14, ABC_CONST(0x8778000000000000), "([(ab)cd]ef)" }, // 181
{ 6, 9, 14, ABC_CONST(0x7887FFFF00000000), "(!([(ab)cd]e)f)" }, // 182
{ 6, 11, 26, ABC_CONST(0x7887FFFF87780000), "[([(ab)cd]e)f]" }, // 183
{ 6, 11, 25, ABC_CONST(0x7887877800000000), "([(ab)cde]f)" }, // 184
{ 6, 13, 48, ABC_CONST(0x8778788778878778), "[(ab)cdef]" }, // 185
{ 6, 7, 8, ABC_CONST(0x6000000000000000), "([ab]cdef)" }, // 186
{ 6, 7, 8, ABC_CONST(0x9FFFFFFF00000000), "(!([ab]cde)f)" }, // 187
{ 6, 9, 14, ABC_CONST(0x9FFFFFFF60000000), "[([ab]cde)f]" }, // 188
{ 6, 7, 8, ABC_CONST(0x9FFF000000000000), "(!([ab]cd)ef)" }, // 189
{ 6, 7, 8, ABC_CONST(0x6000FFFF00000000), "(!(!([ab]cd)e)f)" }, // 190
{ 6, 9, 14, ABC_CONST(0x6000FFFF9FFF0000), "[(!([ab]cd)e)f]" }, // 191
{ 6, 9, 13, ABC_CONST(0x9FFF600000000000), "([([ab]cd)e]f)" }, // 192
{ 6, 11, 24, ABC_CONST(0x60009FFF9FFF6000), "[([ab]cd)ef]" }, // 193
{ 6, 7, 8, ABC_CONST(0x9F00000000000000), "(!([ab]c)def)" }, // 194
{ 6, 7, 8, ABC_CONST(0x60FFFFFF00000000), "(!(!([ab]c)de)f)" }, // 195
{ 6, 9, 14, ABC_CONST(0x60FFFFFF9F000000), "[(!([ab]c)de)f]" }, // 196
{ 6, 7, 8, ABC_CONST(0x60FF000000000000), "(!(!([ab]c)d)ef)" }, // 197
{ 6, 7, 8, ABC_CONST(0x9F00FFFF00000000), "(!(!(!([ab]c)d)e)f)" }, // 198
{ 6, 9, 14, ABC_CONST(0x9F00FFFF60FF0000), "[(!(!([ab]c)d)e)f]" }, // 199
{ 6, 9, 13, ABC_CONST(0x60FF9F0000000000), "([(!([ab]c)d)e]f)" }, // 200
{ 6, 11, 24, ABC_CONST(0x9F0060FF60FF9F00), "[(!([ab]c)d)ef]" }, // 201
{ 6, 9, 12, ABC_CONST(0x9F60000000000000), "([([ab]c)d]ef)" }, // 202
{ 6, 9, 12, ABC_CONST(0x609FFFFF00000000), "(!([([ab]c)d]e)f)" }, // 203
{ 6, 11, 22, ABC_CONST(0x609FFFFF9F600000), "[([([ab]c)d]e)f]" }, // 204
{ 6, 11, 21, ABC_CONST(0x609F9F6000000000), "([([ab]c)de]f)" }, // 205
{ 6, 13, 40, ABC_CONST(0x9F60609F609F9F60), "[([ab]c)def]" }, // 206
{ 6, 9, 11, ABC_CONST(0x9600000000000000), "([abc]def)" }, // 207
{ 6, 9, 11, ABC_CONST(0x69FFFFFF00000000), "(!([abc]de)f)" }, // 208
{ 6, 11, 20, ABC_CONST(0x69FFFFFF96000000), "[([abc]de)f]" }, // 209
{ 6, 9, 11, ABC_CONST(0x69FF000000000000), "(!([abc]d)ef)" }, // 210
{ 6, 9, 11, ABC_CONST(0x9600FFFF00000000), "(!(!([abc]d)e)f)" }, // 211
{ 6, 11, 20, ABC_CONST(0x9600FFFF69FF0000), "[(!([abc]d)e)f]" }, // 212
{ 6, 11, 19, ABC_CONST(0x69FF960000000000), "([([abc]d)e]f)" }, // 213
{ 6, 13, 36, ABC_CONST(0x960069FF69FF9600), "[([abc]d)ef]" }, // 214
{ 6, 11, 18, ABC_CONST(0x6996000000000000), "([abcd]ef)" }, // 215
{ 6, 11, 18, ABC_CONST(0x9669FFFF00000000), "(!([abcd]e)f)" }, // 216
{ 6, 13, 34, ABC_CONST(0x9669FFFF69960000), "[([abcd]e)f]" }, // 217
{ 6, 13, 33, ABC_CONST(0x9669699600000000), "([abcde]f)" }, // 218
{ 6, 15, 64, ABC_CONST(0x6996966996696996), "[abcdef]" }, // 219
{ 6, 6, 7, ABC_CONST(0xCA00000000000000), "(<abc>def)" }, // 220
{ 6, 6, 7, ABC_CONST(0x35FFFFFF00000000), "(!(<abc>de)f)" }, // 221
{ 6, 8, 12, ABC_CONST(0x35FFFFFFCA000000), "[(<abc>de)f]" }, // 222
{ 6, 6, 7, ABC_CONST(0x35FF000000000000), "(!(<abc>d)ef)" }, // 223
{ 6, 6, 7, ABC_CONST(0xCA00FFFF00000000), "(!(!(<abc>d)e)f)" }, // 224
{ 6, 8, 12, ABC_CONST(0xCA00FFFF35FF0000), "[(!(<abc>d)e)f]" }, // 225
{ 6, 8, 11, ABC_CONST(0x35FFCA0000000000), "([(<abc>d)e]f)" }, // 226
{ 6, 10, 20, ABC_CONST(0xCA0035FF35FFCA00), "[(<abc>d)ef]" }, // 227
{ 6, 8, 10, ABC_CONST(0x35CA000000000000), "([<abc>d]ef)" }, // 228
{ 6, 8, 10, ABC_CONST(0xCA35FFFF00000000), "(!([<abc>d]e)f)" }, // 229
{ 6, 10, 18, ABC_CONST(0xCA35FFFF35CA0000), "[([<abc>d]e)f]" }, // 230
{ 6, 10, 17, ABC_CONST(0xCA3535CA00000000), "([<abc>de]f)" }, // 231
{ 6, 12, 32, ABC_CONST(0x35CACA35CA3535CA), "[<abc>def]" }, // 232
{ 6, 5, 8, ABC_CONST(0x0777000000000000), "(!(ab)!(cd)ef)" }, // 233
{ 6, 5, 8, ABC_CONST(0xF888FFFF00000000), "(!(!(ab)!(cd)e)f)" }, // 234
{ 6, 7, 14, ABC_CONST(0xF888FFFF07770000), "[(!(ab)!(cd)e)f]" }, // 235
{ 6, 5, 8, ABC_CONST(0xF888000000000000), "(!(!(ab)!(cd))ef)" }, // 236
{ 6, 5, 8, ABC_CONST(0x0777FFFF00000000), "(!(!(!(ab)!(cd))e)f)" }, // 237
{ 6, 7, 14, ABC_CONST(0x0777FFFFF8880000), "[(!(!(ab)!(cd))e)f]" }, // 238
{ 6, 7, 13, ABC_CONST(0xF888077700000000), "([(!(ab)!(cd))e]f)" }, // 239
{ 6, 9, 24, ABC_CONST(0x0777F888F8880777), "[(!(ab)!(cd))ef]" }, // 240
{ 6, 7, 11, ABC_CONST(0x7888000000000000), "([(ab)(cd)]ef)" }, // 241
{ 6, 7, 11, ABC_CONST(0x8777FFFF00000000), "(!([(ab)(cd)]e)f)" }, // 242
{ 6, 9, 20, ABC_CONST(0x8777FFFF78880000), "[([(ab)(cd)]e)f]" }, // 243
{ 6, 7, 11, ABC_CONST(0x8777000000000000), "(![(ab)(cd)]ef)" }, // 244
{ 6, 7, 11, ABC_CONST(0x7888FFFF00000000), "(!(![(ab)(cd)]e)f)" }, // 245
{ 6, 9, 20, ABC_CONST(0x7888FFFF87770000), "[(![(ab)(cd)]e)f]" }, // 246
{ 6, 9, 19, ABC_CONST(0x8777788800000000), "([(ab)(cd)e]f)" }, // 247
{ 6, 11, 36, ABC_CONST(0x7888877787777888), "[(ab)(cd)ef]" }, // 248
{ 6, 7, 9, ABC_CONST(0x0666000000000000), "([ab]!(cd)ef)" }, // 249
{ 6, 7, 9, ABC_CONST(0xF999FFFF00000000), "(!([ab]!(cd)e)f)" }, // 250
{ 6, 9, 16, ABC_CONST(0xF999FFFF06660000), "[([ab]!(cd)e)f]" }, // 251
{ 6, 7, 9, ABC_CONST(0xF999000000000000), "(!([ab]!(cd))ef)" }, // 252
{ 6, 7, 9, ABC_CONST(0x0666FFFF00000000), "(!(!([ab]!(cd))e)f)" }, // 253
{ 6, 9, 16, ABC_CONST(0x0666FFFFF9990000), "[(!([ab]!(cd))e)f]" }, // 254
{ 6, 9, 15, ABC_CONST(0xF999066600000000), "([([ab]!(cd))e]f)" }, // 255
{ 6, 11, 28, ABC_CONST(0x0666F999F9990666), "[([ab]!(cd))ef]" }, // 256
{ 6, 9, 10, ABC_CONST(0x0660000000000000), "([ab][cd]ef)" }, // 257
{ 6, 9, 10, ABC_CONST(0xF99FFFFF00000000), "(!([ab][cd]e)f)" }, // 258
{ 6, 11, 18, ABC_CONST(0xF99FFFFF06600000), "[([ab][cd]e)f]" }, // 259
{ 6, 9, 10, ABC_CONST(0xF99F000000000000), "(!([ab][cd])ef)" }, // 260
{ 6, 9, 10, ABC_CONST(0x0660FFFF00000000), "(!(!([ab][cd])e)f)" }, // 261
{ 6, 11, 18, ABC_CONST(0x0660FFFFF99F0000), "[(!([ab][cd])e)f]" }, // 262
{ 6, 11, 17, ABC_CONST(0xF99F066000000000), "([([ab][cd])e]f)" }, // 263
{ 6, 13, 32, ABC_CONST(0x0660F99FF99F0660), "[([ab][cd])ef]" }, // 264
{ 6, 6, 8, ABC_CONST(0xCAAA000000000000), "(<ab(cd)>ef)" }, // 265
{ 6, 6, 8, ABC_CONST(0x3555FFFF00000000), "(!(<ab(cd)>e)f)" }, // 266
{ 6, 8, 14, ABC_CONST(0x3555FFFFCAAA0000), "[(<ab(cd)>e)f]" }, // 267
{ 6, 8, 13, ABC_CONST(0x3555CAAA00000000), "([<ab(cd)>e]f)" }, // 268
{ 6, 10, 24, ABC_CONST(0xCAAA35553555CAAA), "[<ab(cd)>ef]" }, // 269
{ 6, 8, 10, ABC_CONST(0xACCA000000000000), "(<ab[cd]>ef)" }, // 270
{ 6, 8, 10, ABC_CONST(0x5335FFFF00000000), "(!(<ab[cd]>e)f)" }, // 271
{ 6, 10, 18, ABC_CONST(0x5335FFFFACCA0000), "[(<ab[cd]>e)f]" }, // 272
{ 6, 10, 17, ABC_CONST(0x5335ACCA00000000), "([<ab[cd]>e]f)" }, // 273
{ 6, 12, 32, ABC_CONST(0xACCA53355335ACCA), "[<ab[cd]>ef]" }, // 274
{ 6, 6, 7, ABC_CONST(0xF088000000000000), "(<(ab)cd>ef)" }, // 275
{ 6, 6, 7, ABC_CONST(0x0F77FFFF00000000), "(!(<(ab)cd>e)f)" }, // 276
{ 6, 8, 12, ABC_CONST(0x0F77FFFFF0880000), "[(<(ab)cd>e)f]" }, // 277
{ 6, 6, 7, ABC_CONST(0x0F77000000000000), "(!<(ab)cd>ef)" }, // 278
{ 6, 6, 7, ABC_CONST(0xF088FFFF00000000), "(!(!<(ab)cd>e)f)" }, // 279
{ 6, 8, 12, ABC_CONST(0xF088FFFF0F770000), "[(!<(ab)cd>e)f]" }, // 280
{ 6, 8, 11, ABC_CONST(0x0F77F08800000000), "([<(ab)cd>e]f)" }, // 281
{ 6, 10, 20, ABC_CONST(0xF0880F770F77F088), "[<(ab)cd>ef]" }, // 282
{ 6, 8, 8, ABC_CONST(0xF066000000000000), "(<[ab]cd>ef)" }, // 283
{ 6, 8, 8, ABC_CONST(0x0F99FFFF00000000), "(!(<[ab]cd>e)f)" }, // 284
{ 6, 10, 14, ABC_CONST(0x0F99FFFFF0660000), "[(<[ab]cd>e)f]" }, // 285
{ 6, 10, 13, ABC_CONST(0x0F99F06600000000), "([<[ab]cd>e]f)" }, // 286
{ 6, 12, 24, ABC_CONST(0xF0660F990F99F066), "[<[ab]cd>ef]" }, // 287
{ 6, 5, 9, ABC_CONST(0x007F7F7F00000000), "(!(abc)!(de)f)" }, // 288
{ 6, 5, 9, ABC_CONST(0xFF80808000000000), "(!(!(abc)!(de))f)" }, // 289
{ 6, 7, 16, ABC_CONST(0xFF808080007F7F7F), "[(!(abc)!(de))f]" }, // 290
{ 6, 7, 13, ABC_CONST(0x7F80808000000000), "([(abc)(de)]f)" }, // 291
{ 6, 7, 13, ABC_CONST(0x807F7F7F00000000), "(![(abc)(de)]f)" }, // 292
{ 6, 9, 24, ABC_CONST(0x807F7F7F7F808080), "[(abc)(de)f]" }, // 293
{ 6, 5, 8, ABC_CONST(0x008F8F8F00000000), "(!(!(ab)c)!(de)f)" }, // 294
{ 6, 5, 8, ABC_CONST(0xFF70707000000000), "(!(!(!(ab)c)!(de))f)" }, // 295
{ 6, 7, 14, ABC_CONST(0xFF707070008F8F8F), "[(!(!(ab)c)!(de))f]" }, // 296
{ 6, 7, 13, ABC_CONST(0x8F70707000000000), "([(!(ab)c)(de)]f)" }, // 297
{ 6, 7, 13, ABC_CONST(0x708F8F8F00000000), "(![(!(ab)c)(de)]f)" }, // 298
{ 6, 9, 24, ABC_CONST(0x708F8F8F8F707070), "[(!(ab)c)(de)f]" }, // 299
{ 6, 7, 11, ABC_CONST(0x0078787800000000), "([(ab)c]!(de)f)" }, // 300
{ 6, 7, 11, ABC_CONST(0xFF87878700000000), "(!([(ab)c]!(de))f)" }, // 301
{ 6, 9, 20, ABC_CONST(0xFF87878700787878), "[([(ab)c]!(de))f]" }, // 302
{ 6, 7, 10, ABC_CONST(0x009F9F9F00000000), "(!([ab]c)!(de)f)" }, // 303
{ 6, 7, 10, ABC_CONST(0xFF60606000000000), "(!(!([ab]c)!(de))f)" }, // 304
{ 6, 9, 18, ABC_CONST(0xFF606060009F9F9F), "[(!([ab]c)!(de))f]" }, // 305
{ 6, 9, 16, ABC_CONST(0x9F60606000000000), "([([ab]c)(de)]f)" }, // 306
{ 6, 9, 16, ABC_CONST(0x609F9F9F00000000), "(![([ab]c)(de)]f)" }, // 307
{ 6, 11, 30, ABC_CONST(0x609F9F9F9F606060), "[([ab]c)(de)f]" }, // 308
{ 6, 9, 14, ABC_CONST(0x0096969600000000), "([abc]!(de)f)" }, // 309
{ 6, 9, 14, ABC_CONST(0xFF69696900000000), "(!([abc]!(de))f)" }, // 310
{ 6, 11, 26, ABC_CONST(0xFF69696900969696), "[([abc]!(de))f]" }, // 311
{ 6, 6, 8, ABC_CONST(0x00CACACA00000000), "(<abc>!(de)f)" }, // 312
{ 6, 6, 8, ABC_CONST(0xFF35353500000000), "(!(<abc>!(de))f)" }, // 313
{ 6, 8, 14, ABC_CONST(0xFF35353500CACACA), "[(<abc>!(de))f]" }, // 314
{ 6, 8, 13, ABC_CONST(0x35CACACA00000000), "([<abc>(de)]f)" }, // 315
{ 6, 10, 24, ABC_CONST(0xCA35353535CACACA), "[<abc>(de)f]" }, // 316
{ 6, 7, 10, ABC_CONST(0x007F7F0000000000), "(!(abc)[de]f)" }, // 317
{ 6, 7, 10, ABC_CONST(0xFF8080FF00000000), "(!(!(abc)[de])f)" }, // 318
{ 6, 9, 18, ABC_CONST(0xFF8080FF007F7F00), "[(!(abc)[de])f]" }, // 319
{ 6, 7, 9, ABC_CONST(0x008F8F0000000000), "(!(!(ab)c)[de]f)" }, // 320
{ 6, 7, 9, ABC_CONST(0xFF7070FF00000000), "(!(!(!(ab)c)[de])f)" }, // 321
{ 6, 9, 16, ABC_CONST(0xFF7070FF008F8F00), "[(!(!(ab)c)[de])f]" }, // 322
{ 6, 9, 12, ABC_CONST(0x0078780000000000), "([(ab)c][de]f)" }, // 323
{ 6, 9, 12, ABC_CONST(0xFF8787FF00000000), "(!([(ab)c][de])f)" }, // 324
{ 6, 11, 22, ABC_CONST(0xFF8787FF00787800), "[([(ab)c][de])f]" }, // 325
{ 6, 9, 11, ABC_CONST(0x009F9F0000000000), "(!([ab]c)[de]f)" }, // 326
{ 6, 9, 11, ABC_CONST(0xFF6060FF00000000), "(!(!([ab]c)[de])f)" }, // 327
{ 6, 11, 20, ABC_CONST(0xFF6060FF009F9F00), "[(!([ab]c)[de])f]" }, // 328
{ 6, 11, 15, ABC_CONST(0x0096960000000000), "([abc][de]f)" }, // 329
{ 6, 11, 15, ABC_CONST(0xFF6969FF00000000), "(!([abc][de])f)" }, // 330
{ 6, 13, 28, ABC_CONST(0xFF6969FF00969600), "[([abc][de])f]" }, // 331
{ 6, 8, 9, ABC_CONST(0x00CACA0000000000), "(<abc>[de]f)" }, // 332
{ 6, 8, 9, ABC_CONST(0xFF3535FF00000000), "(!(<abc>[de])f)" }, // 333
{ 6, 10, 16, ABC_CONST(0xFF3535FF00CACA00), "[(<abc>[de])f]" }, // 334
{ 6, 6, 9, ABC_CONST(0xCAAAAAAA00000000), "(<ab(cde)>f)" }, // 335
{ 6, 8, 16, ABC_CONST(0x35555555CAAAAAAA), "[<ab(cde)>f]" }, // 336
{ 6, 6, 9, ABC_CONST(0xACCCAAAA00000000), "(<ab(!(cd)e)>f)" }, // 337
{ 6, 8, 16, ABC_CONST(0x53335555ACCCAAAA), "[<ab(!(cd)e)>f]" }, // 338
{ 6, 8, 13, ABC_CONST(0xACCCCAAA00000000), "(<ab[(cd)e]>f)" }, // 339
{ 6, 10, 24, ABC_CONST(0x53333555ACCCCAAA), "[<ab[(cd)e]>f]" }, // 340
{ 6, 8, 11, ABC_CONST(0xACCAAAAA00000000), "(<ab([cd]e)>f)" }, // 341
{ 6, 10, 20, ABC_CONST(0x53355555ACCAAAAA), "[<ab([cd]e)>f]" }, // 342
{ 6, 10, 17, ABC_CONST(0xCAACACCA00000000), "(<ab[cde]>f)" }, // 343
{ 6, 12, 32, ABC_CONST(0x35535335CAACACCA), "[<ab[cde]>f]" }, // 344
{ 6, 7, 9, ABC_CONST(0xCCAACACA00000000), "(<ab<cde>>f)" }, // 345
{ 6, 9, 16, ABC_CONST(0x33553535CCAACACA), "[<ab<cde>>f]" }, // 346
{ 6, 6, 8, ABC_CONST(0xC0AAAAAA00000000), "(<a(bc)(de)>f)" }, // 347
{ 6, 6, 8, ABC_CONST(0x3F55555500000000), "(!<a(bc)(de)>f)" }, // 348
{ 6, 8, 14, ABC_CONST(0x3F555555C0AAAAAA), "[<a(bc)(de)>f]" }, // 349
{ 6, 8, 9, ABC_CONST(0x3CAAAAAA00000000), "(<a[bc](de)>f)" }, // 350
{ 6, 10, 16, ABC_CONST(0xC35555553CAAAAAA), "[<a[bc](de)>f]" }, // 351
{ 6, 6, 9, ABC_CONST(0xF088888800000000), "(<(ab)c(de)>f)" }, // 352
{ 6, 6, 9, ABC_CONST(0x0F77777700000000), "(!<(ab)c(de)>f)" }, // 353
{ 6, 8, 16, ABC_CONST(0x0F777777F0888888), "[<(ab)c(de)>f]" }, // 354
{ 6, 8, 11, ABC_CONST(0x88F0F08800000000), "(<(ab)c[de]>f)" }, // 355
{ 6, 8, 11, ABC_CONST(0x770F0F7700000000), "(!<(ab)c[de]>f)" }, // 356
{ 6, 10, 20, ABC_CONST(0x770F0F7788F0F088), "[<(ab)c[de]>f]" }, // 357
{ 6, 8, 11, ABC_CONST(0xF066666600000000), "(<[ab]c(de)>f)" }, // 358
{ 6, 10, 20, ABC_CONST(0x0F999999F0666666), "[<[ab]c(de)>f]" }, // 359
{ 6, 10, 13, ABC_CONST(0x66F0F06600000000), "(<[ab]c[de]>f)" }, // 360
{ 6, 12, 24, ABC_CONST(0x990F0F9966F0F066), "[<[ab]c[de]>f]" }, // 361
{ 6, 6, 7, ABC_CONST(0xF000888800000000), "(<(ab)(cd)e>f)" }, // 362
{ 6, 6, 7, ABC_CONST(0x0FFF777700000000), "(!<(ab)(cd)e>f)" }, // 363
{ 6, 8, 12, ABC_CONST(0x0FFF7777F0008888), "[<(ab)(cd)e>f]" }, // 364
{ 6, 6, 7, ABC_CONST(0xF000777700000000), "(<!(ab)(cd)e>f)" }, // 365
{ 6, 8, 12, ABC_CONST(0x0FFF8888F0007777), "[<!(ab)(cd)e>f]" }, // 366
{ 6, 8, 8, ABC_CONST(0xF000666600000000), "(<[ab](cd)e>f)" }, // 367
{ 6, 8, 8, ABC_CONST(0x0FFF999900000000), "(!<[ab](cd)e>f)" }, // 368
{ 6, 10, 14, ABC_CONST(0x0FFF9999F0006666), "[<[ab](cd)e>f]" }, // 369
{ 6, 10, 9, ABC_CONST(0x0FF0666600000000), "(<[ab][cd]e>f)" }, // 370
{ 6, 12, 16, ABC_CONST(0xF00F99990FF06666), "[<[ab][cd]e>f]" }, // 371
{ 6, 6, 7, ABC_CONST(0xFF00808000000000), "(<(abc)de>f)" }, // 372
{ 6, 6, 7, ABC_CONST(0x00FF7F7F00000000), "(!<(abc)de>f)" }, // 373
{ 6, 8, 12, ABC_CONST(0x00FF7F7FFF008080), "[<(abc)de>f]" }, // 374
{ 6, 6, 7, ABC_CONST(0xFF00707000000000), "(<(!(ab)c)de>f)" }, // 375
{ 6, 6, 7, ABC_CONST(0x00FF8F8F00000000), "(!<(!(ab)c)de>f)" }, // 376
{ 6, 8, 12, ABC_CONST(0x00FF8F8FFF007070), "[<(!(ab)c)de>f]" }, // 377
{ 6, 8, 9, ABC_CONST(0xFF00787800000000), "(<[(ab)c]de>f)" }, // 378
{ 6, 10, 16, ABC_CONST(0x00FF8787FF007878), "[<[(ab)c]de>f]" }, // 379
{ 6, 8, 8, ABC_CONST(0xFF00606000000000), "(<([ab]c)de>f)" }, // 380
{ 6, 8, 8, ABC_CONST(0x00FF9F9F00000000), "(!<([ab]c)de>f)" }, // 381
{ 6, 10, 14, ABC_CONST(0x00FF9F9FFF006060), "[<([ab]c)de>f]" }, // 382
{ 6, 10, 11, ABC_CONST(0xFF00969600000000), "(<[abc]de>f)" }, // 383
{ 6, 12, 20, ABC_CONST(0x00FF6969FF009696), "[<[abc]de>f]" }, // 384
{ 6, 7, 7, ABC_CONST(0xFF00CACA00000000), "(<<abc>de>f)" }, // 385
{ 6, 9, 12, ABC_CONST(0x00FF3535FF00CACA), "[<<abc>de>f]" }, // 386
{ 6, 5, 10, ABC_CONST(0x00007FFF7FFF7FFF), "(!(abcd)!(ef))" }, // 387
{ 6, 7, 15, ABC_CONST(0x7FFF800080008000), "[(abcd)(ef)]" }, // 388
{ 6, 5, 8, ABC_CONST(0x000080FF80FF80FF), "(!(!(abc)d)!(ef))" }, // 389
{ 6, 7, 15, ABC_CONST(0x80FF7F007F007F00), "[(!(abc)d)(ef)]" }, // 390
{ 6, 7, 13, ABC_CONST(0x00007F807F807F80), "([(abc)d]!(ef))" }, // 391
{ 6, 5, 9, ABC_CONST(0x00008FFF8FFF8FFF), "(!(!(ab)cd)!(ef))" }, // 392
{ 6, 7, 15, ABC_CONST(0x8FFF700070007000), "[(!(ab)cd)(ef)]" }, // 393
{ 6, 5, 9, ABC_CONST(0x000070FF70FF70FF), "(!(!(!(ab)c)d)!(ef))" }, // 394
{ 6, 7, 15, ABC_CONST(0x70FF8F008F008F00), "[(!(!(ab)c)d)(ef)]" }, // 395
{ 6, 7, 13, ABC_CONST(0x00008F708F708F70), "([(!(ab)c)d]!(ef))" }, // 396
{ 6, 7, 12, ABC_CONST(0x000087FF87FF87FF), "(!([(ab)c]d)!(ef))" }, // 397
{ 6, 9, 21, ABC_CONST(0x87FF780078007800), "[([(ab)c]d)(ef)]" }, // 398
{ 6, 9, 19, ABC_CONST(0x0000877887788778), "([(ab)cd]!(ef))" }, // 399
{ 6, 7, 11, ABC_CONST(0x00009FFF9FFF9FFF), "(!([ab]cd)!(ef))" }, // 400
{ 6, 9, 18, ABC_CONST(0x9FFF600060006000), "[([ab]cd)(ef)]" }, // 401
{ 6, 7, 10, ABC_CONST(0x000060FF60FF60FF), "(!(!([ab]c)d)!(ef))" }, // 402
{ 6, 9, 18, ABC_CONST(0x60FF9F009F009F00), "[(!([ab]c)d)(ef)]" }, // 403
{ 6, 9, 16, ABC_CONST(0x00009F609F609F60), "([([ab]c)d]!(ef))" }, // 404
{ 6, 9, 15, ABC_CONST(0x000069FF69FF69FF), "(!([abc]d)!(ef))" }, // 405
{ 6, 11, 27, ABC_CONST(0x69FF960096009600), "[([abc]d)(ef)]" }, // 406
{ 6, 11, 25, ABC_CONST(0x0000699669966996), "([abcd]!(ef))" }, // 407
{ 6, 6, 9, ABC_CONST(0x000035FF35FF35FF), "(!(<abc>d)!(ef))" }, // 408
{ 6, 8, 15, ABC_CONST(0x35FFCA00CA00CA00), "[(<abc>d)(ef)]" }, // 409
{ 6, 8, 13, ABC_CONST(0x000035CA35CA35CA), "([<abc>d]!(ef))" }, // 410
{ 6, 5, 11, ABC_CONST(0x0000077707770777), "(!(ab)!(cd)!(ef))" }, // 411
{ 6, 5, 9, ABC_CONST(0x0000F888F888F888), "(!(!(ab)!(cd))!(ef))" }, // 412
{ 6, 7, 18, ABC_CONST(0xF888077707770777), "[(!(ab)!(cd))(ef)]" }, // 413
{ 6, 7, 14, ABC_CONST(0x0000788878887888), "([(ab)(cd)]!(ef))" }, // 414
{ 6, 7, 15, ABC_CONST(0x0000877787778777), "(![(ab)(cd)]!(ef))" }, // 415
{ 6, 9, 27, ABC_CONST(0x8777788878887888), "[(ab)(cd)(ef)]" }, // 416
{ 6, 7, 12, ABC_CONST(0x0000066606660666), "([ab]!(cd)!(ef))" }, // 417
{ 6, 7, 11, ABC_CONST(0x0000F999F999F999), "(!([ab]!(cd))!(ef))" }, // 418
{ 6, 9, 21, ABC_CONST(0xF999066606660666), "[([ab]!(cd))(ef)]" }, // 419
{ 6, 9, 13, ABC_CONST(0x0000066006600660), "([ab][cd]!(ef))" }, // 420
{ 6, 9, 13, ABC_CONST(0x0000F99FF99FF99F), "(!([ab][cd])!(ef))" }, // 421
{ 6, 11, 24, ABC_CONST(0xF99F066006600660), "[([ab][cd])(ef)]" }, // 422
{ 6, 6, 10, ABC_CONST(0x0000CAAACAAACAAA), "(<ab(cd)>!(ef))" }, // 423
{ 6, 8, 18, ABC_CONST(0x3555CAAACAAACAAA), "[<ab(cd)>(ef)]" }, // 424
{ 6, 8, 13, ABC_CONST(0x0000ACCAACCAACCA), "(<ab[cd]>!(ef))" }, // 425
{ 6, 10, 24, ABC_CONST(0x5335ACCAACCAACCA), "[<ab[cd]>(ef)]" }, // 426
{ 6, 6, 8, ABC_CONST(0x0000F088F088F088), "(<(ab)cd>!(ef))" }, // 427
{ 6, 6, 9, ABC_CONST(0x00000F770F770F77), "(!<(ab)cd>!(ef))" }, // 428
{ 6, 8, 15, ABC_CONST(0x0F77F088F088F088), "[<(ab)cd>(ef)]" }, // 429
{ 6, 8, 10, ABC_CONST(0x0000F066F066F066), "(<[ab]cd>!(ef))" }, // 430
{ 6, 10, 18, ABC_CONST(0x0F99F066F066F066), "[<[ab]cd>(ef)]" }, // 431
{ 6, 7, 11, ABC_CONST(0x00007FFF7FFF0000), "(!(abcd)[ef])" }, // 432
{ 6, 7, 9, ABC_CONST(0x000080FF80FF0000), "(!(!(abc)d)[ef])" }, // 433
{ 6, 9, 14, ABC_CONST(0x00007F807F800000), "([(abc)d][ef])" }, // 434
{ 6, 7, 10, ABC_CONST(0x00008FFF8FFF0000), "(!(!(ab)cd)[ef])" }, // 435
{ 6, 7, 10, ABC_CONST(0x000070FF70FF0000), "(!(!(!(ab)c)d)[ef])" }, // 436
{ 6, 9, 14, ABC_CONST(0x00008F708F700000), "([(!(ab)c)d][ef])" }, // 437
{ 6, 9, 13, ABC_CONST(0x000087FF87FF0000), "(!([(ab)c]d)[ef])" }, // 438
{ 6, 11, 20, ABC_CONST(0x0000877887780000), "([(ab)cd][ef])" }, // 439
{ 6, 9, 12, ABC_CONST(0x00009FFF9FFF0000), "(!([ab]cd)[ef])" }, // 440
{ 6, 9, 11, ABC_CONST(0x000060FF60FF0000), "(!(!([ab]c)d)[ef])" }, // 441
{ 6, 11, 17, ABC_CONST(0x00009F609F600000), "([([ab]c)d][ef])" }, // 442
{ 6, 11, 16, ABC_CONST(0x000069FF69FF0000), "(!([abc]d)[ef])" }, // 443
{ 6, 13, 26, ABC_CONST(0x0000699669960000), "([abcd][ef])" }, // 444
{ 6, 8, 10, ABC_CONST(0x000035FF35FF0000), "(!(<abc>d)[ef])" }, // 445
{ 6, 10, 14, ABC_CONST(0x000035CA35CA0000), "([<abc>d][ef])" }, // 446
{ 6, 7, 10, ABC_CONST(0x0000F888F8880000), "(!(!(ab)!(cd))[ef])" }, // 447
{ 6, 9, 15, ABC_CONST(0x0000788878880000), "([(ab)(cd)][ef])" }, // 448
{ 6, 9, 16, ABC_CONST(0x0000877787770000), "(![(ab)(cd)][ef])" }, // 449
{ 6, 9, 12, ABC_CONST(0x0000F999F9990000), "(!([ab]!(cd))[ef])" }, // 450
{ 6, 11, 14, ABC_CONST(0x0000066006600000), "([ab][cd][ef])" }, // 451
{ 6, 11, 14, ABC_CONST(0x0000F99FF99F0000), "(!([ab][cd])[ef])" }, // 452
{ 6, 8, 11, ABC_CONST(0x0000CAAACAAA0000), "(<ab(cd)>[ef])" }, // 453
{ 6, 10, 14, ABC_CONST(0x0000ACCAACCA0000), "(<ab[cd]>[ef])" }, // 454
{ 6, 8, 9, ABC_CONST(0x0000F088F0880000), "(<(ab)cd>[ef])" }, // 455
{ 6, 8, 10, ABC_CONST(0x00000F770F770000), "(!<(ab)cd>[ef])" }, // 456
{ 6, 10, 11, ABC_CONST(0x0000F066F0660000), "(<[ab]cd>[ef])" }, // 457
{ 6, 5, 11, ABC_CONST(0x007F7F7F7F7F7F7F), "(!(abc)!(def))" }, // 458
{ 6, 7, 16, ABC_CONST(0x7F80808080808080), "[(abc)(def)]" }, // 459
{ 6, 5, 9, ABC_CONST(0x008F8F8F8F8F8F8F), "(!(!(ab)c)!(def))" }, // 460
{ 6, 7, 16, ABC_CONST(0x8F70707070707070), "[(!(ab)c)(def)]" }, // 461
{ 6, 7, 13, ABC_CONST(0x0078787878787878), "([(ab)c]!(def))" }, // 462
{ 6, 7, 12, ABC_CONST(0x009F9F9F9F9F9F9F), "(!([ab]c)!(def))" }, // 463
{ 6, 9, 20, ABC_CONST(0x9F60606060606060), "[([ab]c)(def)]" }, // 464
{ 6, 9, 17, ABC_CONST(0x0096969696969696), "([abc]!(def))" }, // 465
{ 6, 6, 9, ABC_CONST(0x00CACACACACACACA), "(<abc>!(def))" }, // 466
{ 6, 8, 16, ABC_CONST(0x35CACACACACACACA), "[<abc>(def)]" }, // 467
{ 6, 5, 8, ABC_CONST(0x8F0000008F8F8F8F), "(!(!(ab)c)!(!(de)f))" }, // 468
{ 6, 7, 16, ABC_CONST(0x708F8F8F70707070), "[(!(ab)c)(!(de)f)]" }, // 469
{ 6, 7, 11, ABC_CONST(0x7800000078787878), "([(ab)c]!(!(de)f))" }, // 470
{ 6, 7, 10, ABC_CONST(0x9F0000009F9F9F9F), "(!([ab]c)!(!(de)f))" }, // 471
{ 6, 9, 20, ABC_CONST(0x609F9F9F60606060), "[([ab]c)(!(de)f)]" }, // 472
{ 6, 9, 14, ABC_CONST(0x9600000096969696), "([abc]!(!(de)f))" }, // 473
{ 6, 6, 8, ABC_CONST(0xCA000000CACACACA), "(<abc>!(!(de)f))" }, // 474
{ 6, 8, 16, ABC_CONST(0xCA353535CACACACA), "[<abc>(!(de)f)]" }, // 475
{ 6, 9, 15, ABC_CONST(0x0078787878000000), "([(ab)c][(de)f])" }, // 476
{ 6, 9, 14, ABC_CONST(0x009F9F9F9F000000), "(!([ab]c)[(de)f])" }, // 477
{ 6, 11, 19, ABC_CONST(0x0096969696000000), "([abc][(de)f])" }, // 478
{ 6, 8, 11, ABC_CONST(0x00CACACACA000000), "(<abc>[(de)f])" }, // 479
{ 6, 9, 13, ABC_CONST(0x9F00009F9F9F9F9F), "(!([ab]c)!([de]f))" }, // 480
{ 6, 11, 25, ABC_CONST(0x609F9F6060606060), "[([ab]c)([de]f)]" }, // 481
{ 6, 11, 18, ABC_CONST(0x9600009696969696), "([abc]!([de]f))" }, // 482
{ 6, 8, 10, ABC_CONST(0xCA0000CACACACACA), "(<abc>!([de]f))" }, // 483
{ 6, 10, 20, ABC_CONST(0xCA3535CACACACACA), "[<abc>([de]f)]" }, // 484
{ 6, 13, 24, ABC_CONST(0x9600009600969600), "([abc][def])" }, // 485
{ 6, 10, 14, ABC_CONST(0xCA0000CA00CACA00), "(<abc>[def])" }, // 486
{ 6, 7, 8, ABC_CONST(0xCACA0000CA00CA00), "(<abc><def>)" }, // 487
{ 6, 9, 16, ABC_CONST(0x3535CACA35CA35CA), "[<abc><def>]" }, // 488
{ 6, 6, 10, ABC_CONST(0xCAAAAAAAAAAAAAAA), "<ab(cdef)>" }, // 489
{ 6, 6, 10, ABC_CONST(0xACCCCCCCAAAAAAAA), "<ab(!(cde)f)>" }, // 490
{ 6, 8, 16, ABC_CONST(0xACCCCCCCCAAAAAAA), "<ab[(cde)f]>" }, // 491
{ 6, 6, 10, ABC_CONST(0xACCCAAAAAAAAAAAA), "<ab(!(cd)ef)>" }, // 492
{ 6, 6, 10, ABC_CONST(0xCAAACCCCAAAAAAAA), "<ab(!(!(cd)e)f)>" }, // 493
{ 6, 8, 16, ABC_CONST(0xCAAACCCCACCCAAAA), "<ab[(!(cd)e)f]>" }, // 494
{ 6, 8, 14, ABC_CONST(0xACCCCAAAAAAAAAAA), "<ab([(cd)e]f)>" }, // 495
{ 6, 10, 24, ABC_CONST(0xCAAAACCCACCCCAAA), "<ab[(cd)ef]>" }, // 496
{ 6, 8, 12, ABC_CONST(0xACCAAAAAAAAAAAAA), "<ab([cd]ef)>" }, // 497
{ 6, 8, 12, ABC_CONST(0xCAACCCCCAAAAAAAA), "<ab(!([cd]e)f)>" }, // 498
{ 6, 10, 20, ABC_CONST(0xCAACCCCCACCAAAAA), "<ab[([cd]e)f]>" }, // 499
{ 6, 10, 18, ABC_CONST(0xCAACACCAAAAAAAAA), "<ab([cde]f)>" }, // 500
{ 6, 12, 32, ABC_CONST(0xACCACAACCAACACCA), "<ab[cdef]>" }, // 501
{ 6, 7, 10, ABC_CONST(0xCCAACACAAAAAAAAA), "<ab(<cde>f)>" }, // 502
{ 6, 9, 16, ABC_CONST(0xAACCACACCCAACACA), "<ab[<cde>f]>" }, // 503
{ 6, 6, 12, ABC_CONST(0xAAAAACCCACCCACCC), "<ab(!(cd)!(ef))>" }, // 504
{ 6, 8, 18, ABC_CONST(0xACCCCAAACAAACAAA), "<ab[(cd)(ef)]>" }, // 505
{ 6, 8, 14, ABC_CONST(0xAAAAACCAACCAACCA), "<ab([cd]!(ef))>" }, // 506
{ 6, 10, 16, ABC_CONST(0xAAAAACCAACCAAAAA), "<ab([cd][ef])>" }, // 507
{ 6, 7, 12, ABC_CONST(0xCCAACACACACACACA), "<ab<cd(ef)>>" }, // 508
{ 6, 9, 16, ABC_CONST(0xCACACCAACCAACACA), "<ab<cd[ef]>>" }, // 509
{ 6, 7, 10, ABC_CONST(0xCCCCAAAACAAACAAA), "<ab<(cd)ef>>" }, // 510
{ 6, 9, 12, ABC_CONST(0xCCCCAAAAACCAACCA), "<ab<[cd]ef>>" }, // 511
{ 6, 6, 9, ABC_CONST(0xC0AAAAAAAAAAAAAA), "<a(bc)(def)>" }, // 512
{ 6, 6, 10, ABC_CONST(0xAAC0C0C0AAAAAAAA), "<a(bc)(!(de)f)>" }, // 513
{ 6, 8, 12, ABC_CONST(0xAAC0C0AAAAAAAAAA), "<a(bc)([de]f)>" }, // 514
{ 6, 8, 10, ABC_CONST(0x3CAAAAAAAAAAAAAA), "<a[bc](def)>" }, // 515
{ 6, 8, 12, ABC_CONST(0xAA3C3C3CAAAAAAAA), "<a[bc](!(de)f)>" }, // 516
{ 6, 10, 14, ABC_CONST(0xAA3C3CAAAAAAAAAA), "<a[bc]([de]f)>" }, // 517
{ 6, 6, 8, ABC_CONST(0xC000AAAAAAAAAAAA), "<a(bcd)(ef)>" }, // 518
{ 6, 6, 8, ABC_CONST(0x3F00AAAAAAAAAAAA), "<a(!(bc)d)(ef)>" }, // 519
{ 6, 8, 10, ABC_CONST(0x3FC0AAAAAAAAAAAA), "<a[(bc)d](ef)>" }, // 520
{ 6, 8, 9, ABC_CONST(0x3C00AAAAAAAAAAAA), "<a([bc]d)(ef)>" }, // 521
{ 6, 10, 12, ABC_CONST(0xC33CAAAAAAAAAAAA), "<a[bcd](ef)>" }, // 522
{ 6, 7, 8, ABC_CONST(0xF0CCAAAAAAAAAAAA), "<a<bcd>(ef)>" }, // 523
{ 6, 6, 11, ABC_CONST(0xF088888888888888), "<(ab)c(def)>" }, // 524
{ 6, 6, 10, ABC_CONST(0x88F0F0F088888888), "<(ab)c(!(de)f)>" }, // 525
{ 6, 8, 15, ABC_CONST(0x88F0F0F0F0888888), "<(ab)c[(de)f]>" }, // 526
{ 6, 8, 13, ABC_CONST(0x88F0F08888888888), "<(ab)c([de]f)>" }, // 527
{ 6, 10, 20, ABC_CONST(0xF08888F088F0F088), "<(ab)c[def]>" }, // 528
{ 6, 7, 10, ABC_CONST(0xF0F08888F088F088), "<(ab)c<def>>" }, // 529
{ 6, 8, 14, ABC_CONST(0xF066666666666666), "<[ab]c(def)>" }, // 530
{ 6, 8, 12, ABC_CONST(0x66F0F0F066666666), "<[ab]c(!(de)f)>" }, // 531
{ 6, 10, 18, ABC_CONST(0x66F0F0F0F0666666), "<[ab]c[(de)f]>" }, // 532
{ 6, 10, 16, ABC_CONST(0x66F0F06666666666), "<[ab]c([de]f)>" }, // 533
{ 6, 12, 24, ABC_CONST(0xF06666F066F0F066), "<[ab]c[def]>" }, // 534
{ 6, 9, 12, ABC_CONST(0xF0F06666F066F066), "<[ab]c<def>>" }, // 535
{ 6, 6, 9, ABC_CONST(0xF000888888888888), "<(ab)(cd)(ef)>" }, // 536
{ 6, 6, 9, ABC_CONST(0xF000777777777777), "<!(ab)(cd)(ef)>" }, // 537
{ 6, 8, 12, ABC_CONST(0x8888F000F0008888), "<(ab)(cd)[ef]>" }, // 538
{ 6, 8, 12, ABC_CONST(0x7777F000F0007777), "<!(ab)(cd)[ef]>" }, // 539
{ 6, 8, 10, ABC_CONST(0x0FF0888888888888), "<(ab)[cd](ef)>" }, // 540
{ 6, 8, 11, ABC_CONST(0xF000666666666666), "<[ab](cd)(ef)>" }, // 541
{ 6, 10, 14, ABC_CONST(0x6666F000F0006666), "<[ab](cd)[ef]>" }, // 542
{ 6, 10, 12, ABC_CONST(0x0FF0666666666666), "<[ab][cd](ef)>" }, // 543
{ 6, 12, 16, ABC_CONST(0x66660FF00FF06666), "<[ab][cd][ef]>" }, // 544
{ 6, 6, 10, ABC_CONST(0xFF00808080808080), "<(abc)d(ef)>" }, // 545
{ 6, 8, 12, ABC_CONST(0x8080FF00FF008080), "<(abc)d[ef]>" }, // 546
{ 6, 6, 10, ABC_CONST(0xFF00707070707070), "<(!(ab)c)d(ef)>" }, // 547
{ 6, 8, 12, ABC_CONST(0x7070FF00FF007070), "<(!(ab)c)d[ef]>" }, // 548
{ 6, 8, 14, ABC_CONST(0xFF00787878787878), "<[(ab)c]d(ef)>" }, // 549
{ 6, 10, 16, ABC_CONST(0x7878FF00FF007878), "<[(ab)c]d[ef]>" }, // 550
{ 6, 8, 12, ABC_CONST(0xFF00606060606060), "<([ab]c)d(ef)>" }, // 551
{ 6, 10, 14, ABC_CONST(0x6060FF00FF006060), "<([ab]c)d[ef]>" }, // 552
{ 6, 10, 18, ABC_CONST(0xFF00969696969696), "<[abc]d(ef)>" }, // 553
{ 6, 12, 20, ABC_CONST(0x9696FF00FF009696), "<[abc]d[ef]>" }, // 554
{ 6, 7, 10, ABC_CONST(0xFF00CACACACACACA), "<<abc>d(ef)>" }, // 555
{ 6, 9, 12, ABC_CONST(0xCACAFF00FF00CACA), "<<abc>d[ef]>" }, // 556
{ 6, 6, 7, ABC_CONST(0xFF00000080808080), "<(abc)(de)f>" }, // 557
{ 6, 6, 7, ABC_CONST(0xFF0000007F7F7F7F), "<!(abc)(de)f>" }, // 558
{ 6, 8, 8, ABC_CONST(0x00FFFF0080808080), "<(abc)[de]f>" }, // 559
{ 6, 6, 7, ABC_CONST(0xFF00000070707070), "<(!(ab)c)(de)f>" }, // 560
{ 6, 6, 7, ABC_CONST(0xFF0000008F8F8F8F), "<!(!(ab)c)(de)f>" }, // 561
{ 6, 8, 8, ABC_CONST(0x00FFFF0070707070), "<(!(ab)c)[de]f>" }, // 562
{ 6, 8, 9, ABC_CONST(0xFF00000078787878), "<[(ab)c](de)f>" }, // 563
{ 6, 10, 10, ABC_CONST(0x00FFFF0078787878), "<[(ab)c][de]f>" }, // 564
{ 6, 8, 8, ABC_CONST(0xFF00000060606060), "<([ab]c)(de)f>" }, // 565
{ 6, 8, 8, ABC_CONST(0xFF0000009F9F9F9F), "<!([ab]c)(de)f>" }, // 566
{ 6, 10, 9, ABC_CONST(0x00FFFF0060606060), "<([ab]c)[de]f>" }, // 567
{ 6, 10, 11, ABC_CONST(0xFF00000096969696), "<[abc](de)f>" }, // 568
{ 6, 12, 12, ABC_CONST(0x00FFFF0096969696), "<[abc][de]f>" }, // 569
{ 6, 7, 7, ABC_CONST(0xFF000000CACACACA), "<<abc>(de)f>" }, // 570
{ 6, 9, 8, ABC_CONST(0x00FFFF00CACACACA), "<<abc>[de]f>" }, // 571
{ 6, 6, 7, ABC_CONST(0xFFFF000080008000), "<(abcd)ef>" }, // 572
{ 6, 6, 7, ABC_CONST(0xFFFF00007F007F00), "<(!(abc)d)ef>" }, // 573
{ 6, 8, 10, ABC_CONST(0xFFFF00007F807F80), "<[(abc)d]ef>" }, // 574
{ 6, 6, 7, ABC_CONST(0xFFFF000070007000), "<(!(ab)cd)ef>" }, // 575
{ 6, 6, 7, ABC_CONST(0xFFFF00008F008F00), "<(!(!(ab)c)d)ef>" }, // 576
{ 6, 8, 10, ABC_CONST(0xFFFF00008F708F70), "<[(!(ab)c)d]ef>" }, // 577
{ 6, 8, 9, ABC_CONST(0xFFFF000078007800), "<([(ab)c]d)ef>" }, // 578
{ 6, 10, 14, ABC_CONST(0xFFFF000087788778), "<[(ab)cd]ef>" }, // 579
{ 6, 8, 8, ABC_CONST(0xFFFF000060006000), "<([ab]cd)ef>" }, // 580
{ 6, 8, 8, ABC_CONST(0xFFFF00009F009F00), "<(!([ab]c)d)ef>" }, // 581
{ 6, 10, 12, ABC_CONST(0xFFFF00009F609F60), "<[([ab]c)d]ef>" }, // 582
{ 6, 10, 11, ABC_CONST(0xFFFF000096009600), "<([abc]d)ef>" }, // 583
{ 6, 12, 18, ABC_CONST(0xFFFF000069966996), "<[abcd]ef>" }, // 584
{ 6, 7, 7, ABC_CONST(0xFFFF0000CA00CA00), "<(<abc>d)ef>" }, // 585
{ 6, 9, 10, ABC_CONST(0xFFFF000035CA35CA), "<[<abc>d]ef>" }, // 586
{ 6, 6, 8, ABC_CONST(0xFFFF000007770777), "<(!(ab)!(cd))ef>" }, // 587
{ 6, 8, 11, ABC_CONST(0xFFFF000078887888), "<[(ab)(cd)]ef>" }, // 588
{ 6, 8, 9, ABC_CONST(0xFFFF000006660666), "<([ab]!(cd))ef>" }, // 589
{ 6, 10, 10, ABC_CONST(0xFFFF000006600660), "<([ab][cd])ef>" }, // 590
{ 6, 7, 8, ABC_CONST(0xFFFF0000CAAACAAA), "<<ab(cd)>ef>" }, // 591
{ 6, 9, 10, ABC_CONST(0xFFFF0000ACCAACCA), "<<ab[cd]>ef>" }, // 592
{ 6, 7, 7, ABC_CONST(0xFFFF0000F088F088), "<<(ab)cd>ef>" }, // 593
{ 6, 9, 8, ABC_CONST(0xFFFF0000F066F066), "<<[ab]cd>ef>" } // 594
};
////////////////////////////////////////////////////////////////////////
......@@ -885,12 +884,13 @@ word Mpm_CutTruthFromDsd( Mpm_Man_t * pMan, Mpm_Cut_t * pCut, int iClass )
int Mpm_CutComputeDsd6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type )
{
int fVerbose = 0;
int i, Config, iClass, Entry, fCompl = 0;
int pLeavesNew[6] = { -1, -1, -1, -1, -1, -1 };
char * pPerm6;
word t = 0;
if ( pCutC == NULL )
{
int pLeavesNew[6] = { -1, -1, -1, -1, -1, -1 };
char * pPerm6;
word t0, t1, t = 0;
int i, Entry, Config, iClass, fCompl = 0;
word t0, t1;
int iClass0 = Abc_Lit2Var(pCut0->iFunc);
int iClass1 = Abc_Lit2Var(pCut1->iFunc);
word Truth0 = p->pDsd6[iClass0].uTruth;
......@@ -910,11 +910,6 @@ int Mpm_CutComputeDsd6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_
else if ( Type == 2 )
t = t0 ^ t1;
else assert( 0 );
if ( t & 1 )
{
fCompl = 1;
t = ~t;
}
if ( fVerbose )
{
......@@ -924,21 +919,56 @@ Kit_DsdPrintFromTruth( (unsigned *)&Truth1, 6 ); printf( "\n" );
Kit_DsdPrintFromTruth( (unsigned *)&Truth1p, 6 ); printf( "\n" );
Kit_DsdPrintFromTruth( (unsigned *)&t, 6 ); printf( "\n" );
}
Entry = *Hsh_IntManLookup( p->pHash, (unsigned *)&t );
if ( Entry == -1 )
}
else
{
word t0, t1, tC;
int iClass0 = Abc_Lit2Var(pCut0->iFunc);
int iClass1 = Abc_Lit2Var(pCut1->iFunc);
int iClassC = Abc_Lit2Var(pCutC->iFunc);
word Truth0 = p->pDsd6[iClass0].uTruth;
word Truth1 = p->pDsd6[iClass1].uTruth;
word TruthC = p->pDsd6[iClassC].uTruth;
int Perm1 = Vec_IntEntry( p->vMap2Perm, p->uPermMask[1] );
int PermC = Vec_IntEntry( p->vMap2Perm, p->uPermMask[2] );
word Truth1p = Vec_WrdEntry( p->vPerm6, iClass1 * 720 + Perm1 );
word TruthCp = Vec_WrdEntry( p->vPerm6, iClassC * 720 + PermC );
if ( p->uComplMask[1] )
{
for ( i = 0; i < 6; i++ )
if ( (p->uComplMask[1] >> i) & 1 )
Truth1p = Abc_Tt6Flip( Truth1p, i );
}
if ( p->uComplMask[2] )
{
p->nNonDsd++;
return 0;
for ( i = 0; i < 6; i++ )
if ( (p->uComplMask[2] >> i) & 1 )
TruthCp = Abc_Tt6Flip( TruthCp, i );
}
Config = Vec_IntEntry( p->vConfgRes, Entry );
if ( Config & (1 << 16) )
fCompl ^= 1;
iClass = Config >> 17;
pCut->iFunc = Abc_Var2Lit( iClass, fCompl );
Config &= 0xFFFF;
assert( (Config >> 6) < 720 );
pPerm6 = p->Perm6[Config >> 6];
t0 = (fCompl0 ^ pCut0->fCompl ^ Abc_LitIsCompl(pCut0->iFunc)) ? ~Truth0 : Truth0;
t1 = (fCompl1 ^ pCut1->fCompl ^ Abc_LitIsCompl(pCut1->iFunc)) ? ~Truth1p : Truth1p;
tC = (fComplC ^ pCutC->fCompl ^ Abc_LitIsCompl(pCutC->iFunc)) ? ~TruthCp : TruthCp;
t = (tC & t1) | (~tC & t0);
}
if ( t & 1 )
{
fCompl = 1; t = ~t;
}
Entry = *Hsh_IntManLookup( p->pHash, (unsigned *)&t );
if ( Entry == -1 )
{
p->nNonDsd++;
return 0;
}
Config = Vec_IntEntry( p->vConfgRes, Entry );
if ( Config & (1 << 16) )
fCompl ^= 1;
iClass = Config >> 17;
pCut->iFunc = Abc_Var2Lit( iClass, fCompl );
Config &= 0xFFFF;
assert( (Config >> 6) < 720 );
pPerm6 = p->Perm6[Config >> 6];
if ( fVerbose )
{
......@@ -947,16 +977,15 @@ Mpm_CutPrint( pCut1 );
Mpm_CutPrint( pCut );
}
for ( i = 0; i < (int)pCut->nLeaves; i++ )
pLeavesNew[pPerm6[i]] = Abc_LitNotCond( pCut->pLeaves[i], (Config >> i) & 1 );
pCut->nLeaves = p->pDsd6[iClass].nVars;
// for ( i = 0; i < (int)pCut->nLeaves; i++ )
// assert( pLeavesNew[i] != -1 );
for ( i = 0; i < (int)pCut->nLeaves; i++ )
pCut->pLeaves[i] = pLeavesNew[i];
p->nCountDsd[iClass]++;
p->nSmallSupp += (int)(pCut->nLeaves < 2);
for ( i = 0; i < (int)pCut->nLeaves; i++ )
pLeavesNew[pPerm6[i]] = Abc_LitNotCond( pCut->pLeaves[i], (Config >> i) & 1 );
pCut->nLeaves = p->pDsd6[iClass].nVars;
for ( i = 0; i < (int)pCut->nLeaves; i++ )
assert( pLeavesNew[i] != -1 );
for ( i = 0; i < (int)pCut->nLeaves; i++ )
pCut->pLeaves[i] = pLeavesNew[i];
p->nCountDsd[iClass]++;
p->nSmallSupp += (int)(pCut->nLeaves < 2);
if ( fVerbose )
{
......@@ -964,11 +993,6 @@ printf( "Computed " );
Mpm_CutPrint( pCut );
printf( "\n" );
}
}
else
{
assert( 0 );
}
return 1;
}
......
......@@ -32,10 +32,11 @@
#include <assert.h>
//#include "misc/tim/tim.h"
#include "misc/mem/mem2.h"
#include "misc/vec/vec.h"
#include "misc/vec/vecMem.h"
#include "misc/vec/vecHsh.h"
#include "misc/mem/mem2.h"
#include "misc/util/utilTruth.h"
#include "mpmMig.h"
#include "mpm.h"
......@@ -83,6 +84,8 @@ typedef struct Mpm_Dsd_t_ Mpm_Dsd_t;
struct Mpm_Dsd_t_
{
int nVars; // support size
int nAnds; // the number of AND gates
int nClauses; // the number of CNF clauses
word uTruth; // truth table
char * pStr; // description
};
......@@ -124,6 +127,10 @@ struct Mpm_Man_t_
Vec_Mem_t * vTtMem; // truth table memory and hash table
int funcCst0; // constant 0
int funcVar0; // variable 0
word Truth0[1024];
word Truth1[1024];
word TruthC[1024];
word Truth[1024];
// DSD
Mpm_Dsd_t * pDsd6; // NPN class information
Hsh_IntMan_t * pHash; // maps DSD functions into NPN classes
......@@ -242,7 +249,7 @@ extern void Mpm_CutPrint( Mpm_Cut_t * pCut );
extern void Mpm_ManPrepare( Mpm_Man_t * p );
extern void Mpm_ManPerform( Mpm_Man_t * p );
/*=== mpmTruth.c ===========================================================*/
extern int Mpm_CutComputeTruth6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type );
extern int Mpm_CutComputeTruth( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type );
extern void Kit_DsdPrintFromTruth( unsigned * pTruth, int nVars );
......
......@@ -48,6 +48,8 @@ Mpm_Man_t * Mpm_ManStart( Mig_Man_t * pMig, Mpm_Par_t * pPars )
int i;
assert( sizeof(Mpm_Uni_t) % sizeof(word) == 0 ); // aligned info to word boundary
assert( pPars->nNumCuts <= MPM_CUT_MAX );
assert( !pPars->fUseTruth || pPars->pLib->LutMax <= 16 );
assert( !pPars->fUseDsd || pPars->pLib->LutMax <= 6 );
Mig_ManSetRefs( pMig, 1 );
// alloc
p = ABC_CALLOC( Mpm_Man_t, 1 );
......@@ -81,12 +83,11 @@ Mpm_Man_t * Mpm_ManStart( Mig_Man_t * pMig, Mpm_Par_t * pPars )
assert( !p->pPars->fUseTruth || !p->pPars->fUseDsd );
if ( p->pPars->fUseTruth )
{
word Truth = 0;
p->vTtMem = Vec_MemAlloc( p->nTruWords, 12 ); // 32 KB/page for 6-var functions
Vec_MemHashAlloc( p->vTtMem, 10000 );
p->funcCst0 = Vec_MemHashInsert( p->vTtMem, &Truth );
Truth = ABC_CONST(0xAAAAAAAAAAAAAAAA);
p->funcVar0 = Vec_MemHashInsert( p->vTtMem, &Truth );
p->funcCst0 = Vec_MemHashInsert( p->vTtMem, p->Truth );
Abc_TtUnit( p->Truth, p->nTruWords );
p->funcVar0 = Vec_MemHashInsert( p->vTtMem, p->Truth );
}
else if ( p->pPars->fUseDsd )
{
......@@ -112,6 +113,16 @@ Mpm_Man_t * Mpm_ManStart( Mig_Man_t * pMig, Mpm_Par_t * pPars )
***********************************************************************/
void Mpm_ManStop( Mpm_Man_t * p )
{
if ( p->pPars->fUseTruth )
{
char * pFileName = "truths.txt";
FILE * pFile = fopen( pFileName, "wb" );
Vec_MemDump( pFile, p->vTtMem );
fclose( pFile );
printf( "Dumpted %d %d-var truth tables into file \"%s\" (%.2f MB).\n",
Vec_MemEntryNum(p->vTtMem), p->nLutSize, pFileName,
(16.0 * p->nTruWords + 1.0) * Vec_MemEntryNum(p->vTtMem) / (1 << 20) );
}
if ( p->pPars->fUseDsd )
Mpm_ManPrintDsdStats( p );
if ( p->vTtMem )
......
......@@ -19,7 +19,6 @@
***********************************************************************/
#include "mpmInt.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
......@@ -167,6 +166,14 @@ static inline int Mpm_ManSetIsBigger( Mpm_Man_t * p, Mpm_Cut_t * pCut, int nTota
SeeAlso []
***********************************************************************/
static inline int Mpm_CutGetArea( Mpm_Man_t * p, Mpm_Cut_t * pCut )
{
if ( p->pPars->fMap4Cnf )
return MPM_UNIT_AREA * p->pDsd6[Abc_Lit2Var(pCut->iFunc)].nClauses;
if ( p->pPars->fMap4Aig )
return MPM_UNIT_AREA * p->pDsd6[Abc_Lit2Var(pCut->iFunc)].nAnds;
return p->pLibLut->pLutAreas[pCut->nLeaves];
}
static inline word Mpm_CutGetSign( Mpm_Cut_t * pCut )
{
int i, iLeaf;
......@@ -204,7 +211,7 @@ static inline Mpm_Uni_t * Mpm_CutSetupInfo( Mpm_Man_t * p, Mpm_Cut_t * pCut, int
}
pUnit->mTime = ArrTime;
pUnit->mArea = p->pLibLut->pLutAreas[pCut->nLeaves];
pUnit->mArea = Mpm_CutGetArea( p, pCut );
pUnit->mEdge = MPM_UNIT_EDGE * pCut->nLeaves;
pUnit->mAveRefs = 0;
pUnit->Cost = 0;
......@@ -444,7 +451,7 @@ static inline void Mpm_ObjPrepareFanins( Mpm_Man_t * p, Mig_Obj_t * pObj )
***********************************************************************/
static inline int Mpm_ObjDeriveCut( Mpm_Man_t * p, Mpm_Cut_t ** pCuts, Mpm_Cut_t * pCut )
{
int i, c, iObj;
int i, c, iObj, fDisj = 1;
// clean present objects
// Vec_IntForEachEntry( &p->vObjPresUsed, iObj, i )
// p->pObjPres[iObj] = (unsigned char)0xFF;
......@@ -488,6 +495,8 @@ static inline int Mpm_ObjDeriveCut( Mpm_Man_t * p, Mpm_Cut_t ** pCuts, Mpm_Cut_t
p->pObjPres[iObj] = pCut->nLeaves;
pCut->pLeaves[pCut->nLeaves++] = pCuts[c]->pLeaves[i];
}
else
fDisj = 0;
p->uPermMask[c] ^= (((i & 7) ^ 7) << (3*p->pObjPres[iObj]));
assert( Abc_Lit2Var(pCuts[c]->pLeaves[i]) == Abc_Lit2Var(pCut->pLeaves[p->pObjPres[iObj]]) );
if ( pCuts[c]->pLeaves[i] != pCut->pLeaves[p->pObjPres[iObj]] )
......@@ -495,6 +504,7 @@ static inline int Mpm_ObjDeriveCut( Mpm_Man_t * p, Mpm_Cut_t ** pCuts, Mpm_Cut_t
}
// Mpm_ManPrintPerm( p->uPermMask[c] ); printf( "\n" );
}
// printf( "%d", fDisj );
pCut->hNext = 0;
pCut->iFunc = 0; pCut->iFunc = ~pCut->iFunc;
pCut->fUseless = 0;
......@@ -525,7 +535,7 @@ p->timeMerge += clock() - clk;
// derive truth table
if ( p->pPars->fUseTruth )
Mpm_CutComputeTruth6( p, pCut, pCuts[0], pCuts[1], pCuts[2], Mig_ObjFaninC0(pObj), Mig_ObjFaninC1(pObj), Mig_ObjFaninC2(pObj), Mig_ObjNodeType(pObj) );
Mpm_CutComputeTruth( p, pCut, pCuts[0], pCuts[1], pCuts[2], Mig_ObjFaninC0(pObj), Mig_ObjFaninC1(pObj), Mig_ObjFaninC2(pObj), Mig_ObjNodeType(pObj) );
else if ( p->pPars->fUseDsd )
{
if ( !Mpm_CutComputeDsd6( p, pCut, pCuts[0], pCuts[1], pCuts[2], Mig_ObjFaninC0(pObj), Mig_ObjFaninC1(pObj), Mig_ObjFaninC2(pObj), Mig_ObjNodeType(pObj) ) )
......@@ -694,6 +704,8 @@ static inline void Mpm_ManFinalizeRound( Mpm_Man_t * p )
p->GloArea = 0;
p->GloEdge = 0;
p->GloRequired = Mpm_ManFindArrivalMax(p);
if ( p->pPars->DelayTarget != -1 )
p->GloRequired = Abc_MaxInt( p->GloRequired, p->pPars->DelayTarget );
Mpm_ManCleanMapRefs( p );
Mpm_ManCleanRequired( p );
Mig_ManForEachObjReverse( p->pMig, pObj )
......@@ -716,7 +728,7 @@ static inline void Mpm_ManFinalizeRound( Mpm_Man_t * p )
pRequired[iLeaf] = Abc_MinInt( pRequired[iLeaf], Required - pDelays[i] );
pMapRefs [iLeaf]++;
}
p->GloArea += p->pLibLut->pLutAreas[pCut->nLeaves];
p->GloArea += Mpm_CutGetArea( p, pCut );
p->GloEdge += pCut->nLeaves;
}
}
......@@ -816,7 +828,7 @@ void Mpm_ManPerformRound( Mpm_Man_t * p )
Mig_ManForEachNode( p->pMig, pObj )
Mpm_ManDeriveCuts( p, pObj );
Mpm_ManFinalizeRound( p );
printf( "Del =%5d. Ar =%8d. Edge =%8d. Cut =%10d. Max =%10d. Tru =%6d. Small =%5d. ",
printf( "Del =%5d. Ar =%8d. Edge =%8d. Cut =%10d. Max =%8d. Tru =%8d. Small =%6d. ",
p->GloRequired, p->GloArea, p->GloEdge,
p->nCutsMerged, p->pManCuts->nEntriesMax,
p->vTtMem ? p->vTtMem->nEntries : 0, p->nSmallSupp );
......@@ -824,24 +836,34 @@ void Mpm_ManPerformRound( Mpm_Man_t * p )
}
void Mpm_ManPerform( Mpm_Man_t * p )
{
p->pCutCmp = Mpm_CutCompareDelay;
Mpm_ManPerformRound( p );
if ( p->pPars->fMap4Cnf )
{
p->pCutCmp = Mpm_CutCompareArea;
Mpm_ManPerformRound( p );
}
else
{
p->pCutCmp = Mpm_CutCompareDelay;
Mpm_ManPerformRound( p );
if ( p->pPars->fOneRound )
return;
p->pCutCmp = Mpm_CutCompareDelay2;
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareDelay2;
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareArea;
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareArea;
Mpm_ManPerformRound( p );
p->fMainRun = 1;
p->fMainRun = 1;
p->pCutCmp = Mpm_CutCompareArea;
Mpm_ManComputeEstRefs( p );
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareArea;
Mpm_ManComputeEstRefs( p );
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareArea2;
Mpm_ManComputeEstRefs( p );
Mpm_ManPerformRound( p );
p->pCutCmp = Mpm_CutCompareArea2;
Mpm_ManComputeEstRefs( p );
Mpm_ManPerformRound( p );
}
}
......
......@@ -26,6 +26,7 @@
#include "misc/vec/vec.h"
#include "misc/vec/vecHsh.h"
#include "misc/extra/extra.h"
#include "bool/kit/kit.h"
ABC_NAMESPACE_IMPL_START
......@@ -37,7 +38,8 @@ ABC_NAMESPACE_IMPL_START
typedef struct Ifd_Obj_t_ Ifd_Obj_t;
struct Ifd_Obj_t_
{
unsigned nFreq : 24; // frequency
unsigned nFreq : 18; // frequency
unsigned nAnds : 6; // number of AND gates
unsigned nSupp : 5; // support size
unsigned Type : 2; // type
unsigned fWay : 1; // transparent edge
......@@ -53,11 +55,10 @@ struct Ifd_Man_t_
// hashing operations
Vec_Int_t * vArgs; // iDsd1 op iDsdC
Vec_Int_t * vRes; // result of operation
Vec_Int_t * vOffs; // offsets in the array of permutations
Vec_Str_t * vPerms; // storage for permutations
Hsh_IntMan_t * vHash; // hash table
Vec_Int_t * vMarks; // marks where given N begins
Vec_Wrd_t * vTruths; // truth tables
Vec_Int_t * vClauses; // truth tables
// other data
Vec_Int_t * vSuper;
......@@ -72,6 +73,7 @@ static inline Ifd_Obj_t * Ifd_ManObj( Ifd_Man_t * p, int i ) { assert(
static inline Ifd_Obj_t * Ifd_ManObjFromLit( Ifd_Man_t * p, int iLit ) { return Ifd_ManObj( p, Abc_Lit2Var(iLit) ); }
static inline int Ifd_ObjId( Ifd_Man_t * p, Ifd_Obj_t * pObj ) { assert( pObj - p->pObjs >= 0 && pObj - p->pObjs < p->nObjs ); return pObj - p->pObjs; }
static inline int Ifd_LitSuppSize( Ifd_Man_t * p, int iLit ) { return iLit > 0 ? Ifd_ManObjFromLit(p, iLit)->nSupp : 0; }
static inline int Ifd_LitNumAnds( Ifd_Man_t * p, int iLit ) { return iLit > 0 ? Ifd_ManObjFromLit(p, iLit)->nAnds : 0; }
#define Ifd_ManForEachNodeWithSupp( p, nVars, pLeaf, i ) \
for ( i = Vec_IntEntry(p->vMarks, nVars); (i < Vec_IntEntry(p->vMarks, nVars+1)) && (pLeaf = Ifd_ManObj(p, i)); i++ )
......@@ -105,8 +107,6 @@ Ifd_Man_t * Ifd_ManStart()
// hashing operations
p->vArgs = Vec_IntAlloc( 4000 );
p->vRes = Vec_IntAlloc( 1000 );
// p->vOffs = Vec_IntAlloc( 1000 );
// p->vPerms = Vec_StrAlloc( 1000 );
p->vHash = Hsh_IntManStart( p->vArgs, 4, 1000 );
p->vMarks = Vec_IntAlloc( 100 );
Vec_IntPush( p->vMarks, 0 );
......@@ -115,6 +115,7 @@ Ifd_Man_t * Ifd_ManStart()
// other data
p->vSuper = Vec_IntAlloc( 1000 );
p->vTruths = Vec_WrdAlloc( 1000 );
p->vClauses = Vec_IntAlloc( 1000 );
return p;
}
void Ifd_ManStop( Ifd_Man_t * p )
......@@ -129,9 +130,8 @@ void Ifd_ManStop( Ifd_Man_t * p )
Vec_IntFreeP( &p->vArgs );
Vec_IntFreeP( &p->vRes );
// Vec_IntFree( p->vOffs );
// Vec_StrFree( p->vPerms );
Vec_WrdFreeP( &p->vTruths );
Vec_IntFreeP( &p->vClauses );
Vec_IntFreeP( &p->vMarks );
Hsh_IntManStop( p->vHash );
Vec_IntFreeP( &p->vSuper );
......@@ -193,7 +193,11 @@ void Ifd_ManPrint( Ifd_Man_t * p )
for ( i = 0; i < p->nObjs; i++ )
{
word Fun = Vec_WrdEntry( p->vTruths, i );
printf( " { %d, ABC_CONST(", Extra_TruthSupportSize((unsigned *)&Fun, 6) );
printf( " { " );
printf( "%d, ", Extra_TruthSupportSize((unsigned *)&Fun, 6) );
printf( "%2d, ", Ifd_LitNumAnds(p, Abc_Var2Lit(i, 0)) );
printf( "%2d, ", Vec_IntEntry(p->vClauses, i) );
printf( "ABC_CONST(" );
Extra_PrintHex( stdout, (unsigned *)&Fun, 6 );
printf( "), \"" );
Ifd_ObjPrint( p, Abc_Var2Lit( i, 0 ) );
......@@ -276,6 +280,69 @@ void Ifd_ManTruthAll( Ifd_Man_t * p )
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Mpm_ComputeCnfSizeOne( word Truth, int nVars, Vec_Int_t * vCover, Vec_Str_t * vCnf )
{
Vec_StrClear( vCnf );
if ( Truth == 0 || ~Truth == 0 )
{
// assert( nVars == 0 );
Vec_StrPush( vCnf, (char)(Truth == 0) );
Vec_StrPush( vCnf, (char)-1 );
return 1;
}
else
{
int i, k, c, RetValue, Literal, Cube, nCubes = 0;
assert( nVars > 0 );
for ( c = 0; c < 2; c ++ )
{
Truth = c ? ~Truth : Truth;
RetValue = Kit_TruthIsop( (unsigned *)&Truth, nVars, vCover, 0 );
assert( RetValue == 0 );
nCubes += Vec_IntSize( vCover );
Vec_IntForEachEntry( vCover, Cube, i )
{
for ( k = 0; k < nVars; k++ )
{
Literal = 3 & (Cube >> (k << 1));
if ( Literal == 1 ) // '0' -> pos lit
Vec_StrPush( vCnf, (char)Abc_Var2Lit(k, 0) );
else if ( Literal == 2 ) // '1' -> neg lit
Vec_StrPush( vCnf, (char)Abc_Var2Lit(k, 1) );
else if ( Literal != 0 )
assert( 0 );
}
Vec_StrPush( vCnf, (char)Abc_Var2Lit(nVars, c) );
Vec_StrPush( vCnf, (char)-1 );
}
}
return nCubes;
}
}
void Mpm_ComputeCnfSizeAll( Ifd_Man_t * p )
{
Vec_Int_t * vCover = Vec_IntAlloc( 1 << 16 );
Vec_Str_t * vCnf = Vec_StrAlloc( 1000 );
word Truth;
int i;
assert( Vec_IntSize(p->vClauses) == 0 );
Vec_WrdForEachEntry( p->vTruths, Truth, i )
Vec_IntPush( p->vClauses, Mpm_ComputeCnfSizeOne(Truth, 6, vCover, vCnf) );
Vec_IntFree( vCover );
Vec_StrFree( vCnf );
}
/**Function*************************************************************
Synopsis [Canonicizing DSD structures.]
Description []
......@@ -326,7 +393,7 @@ int Ifd_ManHashFindOrAdd( Ifd_Man_t * p, int iDsd0, int iDsd1, int iDsdC, int Ty
iObj = Vec_IntEntry(p->vRes, Value);
Vec_IntShrink( p->vArgs, Vec_IntSize(p->vArgs) - 4 );
pObj = Ifd_ManObj( p, iObj );
pObj->nFreq++;
// pObj->nFreq++;
assert( (int)pObj->Type == Type );
assert( (int)pObj->nSupp == Ifd_LitSuppSize(p, iDsd0) + Ifd_LitSuppSize(p, iDsd1) + Ifd_LitSuppSize(p, iDsdC) );
}
......@@ -337,8 +404,9 @@ int Ifd_ManHashFindOrAdd( Ifd_Man_t * p, int iDsd0, int iDsd1, int iDsdC, int Ty
assert( p->nObjs < p->nObjsAlloc );
iObj = p->nObjs;
pObj = Ifd_ManObj( p, p->nObjs++ );
pObj->nFreq = 1;
// pObj->nFreq = 1;
pObj->nSupp = Ifd_LitSuppSize(p, iDsd0) + Ifd_LitSuppSize(p, iDsd1) + Ifd_LitSuppSize(p, iDsdC);
pObj->nAnds = Ifd_LitNumAnds(p, iDsd0) + Ifd_LitNumAnds(p, iDsd1) + Ifd_LitNumAnds(p, iDsdC) + ((Type == 1) ? 1 : 3);
pObj->Type = Type;
if ( Type == 1 )
pObj->fWay = 0;
......@@ -615,6 +683,7 @@ Vec_Wrd_t * Ifd_ManDsdTruths( int nVars )
Vec_IntPush( pMan->vMarks, pMan->nObjs );
}
Ifd_ManTruthAll( pMan );
Mpm_ComputeCnfSizeAll( pMan );
// Ifd_ManPrint( pMan );
vTruths = pMan->vTruths; pMan->vTruths = NULL;
Ifd_ManStop( pMan );
......
......@@ -19,7 +19,6 @@
***********************************************************************/
#include "mpmInt.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
......@@ -28,13 +27,40 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
//#define MPM_TRY_NEW
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis [Performs truth table computation.]
Synopsis [Unifies variable order.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline void Mpm_TruthStretch( word * pTruth, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, int nLimit )
{
int i, k;
for ( i = (int)pCut->nLeaves - 1, k = (int)pCut0->nLeaves - 1; i >= 0 && k >= 0; i-- )
{
if ( pCut0->pLeaves[k] < pCut->pLeaves[i] )
continue;
assert( pCut0->pLeaves[k] == pCut->pLeaves[i] );
if ( k < i )
Abc_TtSwapVars( pTruth, nLimit, k, i );
k--;
}
}
/**Function*************************************************************
Synopsis [Performs truth table support minimization.]
Description []
......@@ -80,22 +106,57 @@ static inline int Mpm_CutTruthMinimize6( Mpm_Man_t * p, Mpm_Cut_t * pCut )
pCut->iFunc = Abc_Var2Lit( Vec_MemHashInsert(p->vTtMem, &t), Abc_LitIsCompl(pCut->iFunc) );
return 1;
}
static inline word Mpm_TruthStretch6( word Truth, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, int nLimit )
static inline int Mpm_CutTruthMinimize7( Mpm_Man_t * p, Mpm_Cut_t * pCut )
{
int i, k;
for ( i = (int)pCut->nLeaves - 1, k = (int)pCut0->nLeaves - 1; i >= 0 && k >= 0; i-- )
unsigned uSupport;
int i, k, nSuppSize;
// compute the support of the cut's function
word * pTruth = Mpm_CutTruth( p, Abc_Lit2Var(pCut->iFunc) );
uSupport = Abc_TtSupportAndSize( pTruth, Mpm_CutLeafNum(pCut), &nSuppSize );
if ( nSuppSize == Mpm_CutLeafNum(pCut) )
return 0;
p->nSmallSupp += (int)(nSuppSize < 2);
// update leaves and signature
Abc_TtCopy( p->Truth, pTruth, p->nTruWords, 0 );
for ( i = k = 0; i < Mpm_CutLeafNum(pCut); i++ )
{
if ( pCut0->pLeaves[k] < pCut->pLeaves[i] )
continue;
assert( pCut0->pLeaves[k] == pCut->pLeaves[i] );
if ( k < i )
Abc_TtSwapVars( &Truth, nLimit, k, i );
k--;
if ( ((uSupport >> i) & 1) )
{
if ( k < i )
{
pCut->pLeaves[k] = pCut->pLeaves[i];
Abc_TtSwapVars( p->Truth, p->nLutSize, k, i );
}
k++;
}
else
{
int iObj = Abc_Lit2Var( pCut->pLeaves[i] );
int Res = Vec_IntRemove( &p->vObjPresUsed, iObj );
assert( Res == 1 );
p->pObjPres[iObj] = (unsigned char)0xFF;
}
}
return Truth;
assert( k == nSuppSize );
pCut->nLeaves = nSuppSize;
assert( nSuppSize == Abc_TtSupportSize(p->Truth, 6) );
// save the result
pCut->iFunc = Abc_Var2Lit( Vec_MemHashInsert(p->vTtMem, p->Truth), Abc_LitIsCompl(pCut->iFunc) );
return 1;
}
//#define MPM_TRY_NEW
int Mpm_CutComputeTruth6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type )
/**Function*************************************************************
Synopsis [Performs truth table computation.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline int Mpm_CutComputeTruth6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type )
{
word * pTruth0 = Mpm_CutTruth( p, Abc_Lit2Var(pCut0->iFunc) );
word * pTruth1 = Mpm_CutTruth( p, Abc_Lit2Var(pCut1->iFunc) );
......@@ -103,13 +164,13 @@ int Mpm_CutComputeTruth6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mp
word t0 = (fCompl0 ^ pCut0->fCompl ^ Abc_LitIsCompl(pCut0->iFunc)) ? ~*pTruth0 : *pTruth0;
word t1 = (fCompl1 ^ pCut1->fCompl ^ Abc_LitIsCompl(pCut1->iFunc)) ? ~*pTruth1 : *pTruth1;
word tC = 0, t = 0;
t0 = Mpm_TruthStretch6( t0, pCut, pCut0, p->nLutSize );
t1 = Mpm_TruthStretch6( t1, pCut, pCut1, p->nLutSize );
Mpm_TruthStretch( &t0, pCut, pCut0, p->nLutSize );
Mpm_TruthStretch( &t1, pCut, pCut1, p->nLutSize );
if ( pCutC )
{
pTruthC = Mpm_CutTruth( p, Abc_Lit2Var(pCutC->iFunc) );
tC = (fComplC ^ pCutC->fCompl ^ Abc_LitIsCompl(pCutC->iFunc)) ? ~*pTruthC : *pTruthC;
tC = Mpm_TruthStretch6( tC, pCut, pCutC, p->nLutSize );
Mpm_TruthStretch( &tC, pCut, pCutC, p->nLutSize );
}
assert( p->nLutSize <= 6 );
if ( Type == 1 )
......@@ -127,19 +188,60 @@ int Mpm_CutComputeTruth6( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mp
}
else
pCut->iFunc = Abc_Var2Lit( Vec_MemHashInsert( p->vTtMem, &t ), 0 );
if ( p->pPars->fCutMin )
return Mpm_CutTruthMinimize6( p, pCut );
return 1;
}
static inline int Mpm_CutComputeTruth7( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type )
{
word * pTruth0 = Mpm_CutTruth( p, Abc_Lit2Var(pCut0->iFunc) );
word * pTruth1 = Mpm_CutTruth( p, Abc_Lit2Var(pCut1->iFunc) );
word * pTruthC = NULL;
Abc_TtCopy( p->Truth0, pTruth0, p->nTruWords, fCompl0 ^ pCut0->fCompl ^ Abc_LitIsCompl(pCut0->iFunc) );
Abc_TtCopy( p->Truth1, pTruth1, p->nTruWords, fCompl1 ^ pCut1->fCompl ^ Abc_LitIsCompl(pCut1->iFunc) );
Mpm_TruthStretch( p->Truth0, pCut, pCut0, p->nLutSize );
Mpm_TruthStretch( p->Truth1, pCut, pCut1, p->nLutSize );
if ( pCutC )
{
pTruthC = Mpm_CutTruth( p, Abc_Lit2Var(pCutC->iFunc) );
Abc_TtCopy( p->TruthC, pTruthC, p->nTruWords, fComplC ^ pCutC->fCompl ^ Abc_LitIsCompl(pCutC->iFunc) );
Mpm_TruthStretch( p->TruthC, pCut, pCutC, p->nLutSize );
}
if ( Type == 1 )
Abc_TtAnd( p->Truth, p->Truth0, p->Truth1, p->nTruWords, 0 );
else if ( Type == 2 )
Abc_TtXor( p->Truth, p->Truth0, p->Truth1, p->nTruWords, 0 );
else if ( Type == 3 )
Abc_TtMux( p->Truth, p->TruthC, p->Truth1, p->Truth0, p->nTruWords );
else assert( 0 );
// save the result
if ( p->Truth[0] & 1 )
{
Abc_TtNot( p->Truth, p->nTruWords );
pCut->iFunc = Abc_Var2Lit( Vec_MemHashInsert( p->vTtMem, p->Truth ), 1 );
}
else
pCut->iFunc = Abc_Var2Lit( Vec_MemHashInsert( p->vTtMem, p->Truth ), 0 );
if ( p->pPars->fCutMin )
return Mpm_CutTruthMinimize7( p, pCut );
return 1;
}
int Mpm_CutComputeTruth( Mpm_Man_t * p, Mpm_Cut_t * pCut, Mpm_Cut_t * pCut0, Mpm_Cut_t * pCut1, Mpm_Cut_t * pCutC, int fCompl0, int fCompl1, int fComplC, int Type )
{
int RetValue;
if ( p->nLutSize <= 6 )
RetValue = Mpm_CutComputeTruth6( p, pCut, pCut0, pCut1, pCutC, fCompl0, fCompl1, fComplC, Type );
else
RetValue = Mpm_CutComputeTruth7( p, pCut, pCut0, pCut1, pCutC, fCompl0, fCompl1, fComplC, Type );
#ifdef MPM_TRY_NEW
{
extern unsigned Abc_TtCanonicize( word * pTruth, int nVars, char * pCanonPerm );
word tCopy = t;
extern unsigned Abc_TtCanonicize( word * pTruth, int nVars, char * pCanonPerm );
char pCanonPerm[16];
Abc_TtCanonicize( &tCopy, p->nLutSize, pCanonPerm );
memcpy( p->Truth0, p->Truth, sizeof(word) * p->nTruWords );
Abc_TtCanonicize( p->Truth0, pCut->nLimit, pCanonPerm );
}
#endif
if ( p->pPars->fCutMin )
return Mpm_CutTruthMinimize6( p, pCut );
return 0;
return RetValue;
}
////////////////////////////////////////////////////////////////////////
......
......@@ -128,6 +128,12 @@ static inline void Abc_TtFill( word * pOut, int nWords )
for ( w = 0; w < nWords; w++ )
pOut[w] = ~(word)0;
}
static inline void Abc_TtUnit( word * pOut, int nWords )
{
int w;
for ( w = 0; w < nWords; w++ )
pOut[w] = s_Truths6[0];
}
static inline void Abc_TtNot( word * pOut, int nWords )
{
int w;
......
......@@ -268,16 +268,26 @@ static inline void Vec_MemShrink( Vec_Mem_t * p, int nEntriesNew )
SeeAlso []
***********************************************************************/
static inline void Vec_MemPrint( Vec_Mem_t * p )
static inline void Vec_MemDumpDigit( FILE * pFile, int HexDigit )
{
assert( HexDigit >= 0 && HexDigit < 16 );
if ( HexDigit < 10 )
fprintf( pFile, "%d", HexDigit );
else
fprintf( pFile, "%c", 'A' + HexDigit-10 );
}
static inline void Vec_MemDump( FILE * pFile, Vec_Mem_t * pVec )
{
word * pEntry;
int i;
printf( "Memory vector has %d entries: ", Vec_MemEntryNum(p) );
Vec_MemForEachEntry( p, pEntry, i )
int i, w, d;
if ( pFile == stdout )
printf( "Memory vector has %d entries: ", Vec_MemEntryNum(pVec) );
Vec_MemForEachEntry( pVec, pEntry, i )
{
printf( "%3d : ", i );
// add printout here
printf( "\n" );
for ( w = pVec->nEntrySize - 1; w >= 0; w-- )
for ( d = 15; d >= 0; d-- )
Vec_MemDumpDigit( pFile, (int)(pEntry[w] >> (d<<2)) & 15 );
fprintf( pFile, "\n" );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment