.
This commit is contained in:
parent
aeb00e1b8d
commit
a320cdba33
1 changed files with 11 additions and 5 deletions
16
main.c
16
main.c
|
|
@ -62,6 +62,11 @@ static void parse_args(int argc, char* const* argv)
|
|||
// fallthrough
|
||||
|
||||
case 'e':
|
||||
{
|
||||
use_operators.not = true;
|
||||
use_operators.or = true;
|
||||
use_operators.and = true;
|
||||
|
||||
use_operators.orn = true;
|
||||
use_operators.nor = true;
|
||||
|
||||
|
|
@ -73,7 +78,8 @@ static void parse_args(int argc, char* const* argv)
|
|||
|
||||
unset_operators = false;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
case 'o':
|
||||
{
|
||||
unset_operators = false;
|
||||
|
|
@ -336,10 +342,10 @@ void calculate_simplifications(void)
|
|||
costs[truthtable] = cost;
|
||||
}
|
||||
|
||||
append(W, 0), lookup[W].kind = ek_W;
|
||||
append(X, 0), lookup[X].kind = ek_X;
|
||||
append(Y, 0), lookup[Y].kind = ek_Y;
|
||||
append(Z, 0), lookup[Z].kind = ek_Z;
|
||||
append(W, 1), lookup[W].kind = ek_W;
|
||||
append(X, 1), lookup[X].kind = ek_X;
|
||||
append(Y, 1), lookup[Y].kind = ek_Y;
|
||||
append(Z, 1), lookup[Z].kind = ek_Z;
|
||||
|
||||
append(0, 1), lookup[0].kind = ek_0;
|
||||
append(M, 1), lookup[M].kind = ek_1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue