@x @*Intro. This program finds the prime implicants of a given self-dual threshold function. It outputs them in a format that can be used as input to Mathematica to find ``optimum'' weights. @y @*Intro. This program finds the prime implicants of a given self-dual threshold function. It outputs them in a format that can be used as input to the {\mc LP} program. @z @x int going; /* have we printed any constraints yet? */ @y int going; /* have we printed any constraints yet? */ int impl[1000][100]; /* linear constraints to be transposed */ @z @x register int j,l,n,t; @; @; @y register int j,l,n,t,m=0; @; @z @x @ @= if (!going) going=1; else printf("\n && "); for (j=0;j=1"); @ @= printf("},\n "); for (j=0;j= for (j=0;j= for (l=0;l