This commit is contained in:
Rose Apollo 2024-11-30 22:13:38 +00:00
parent 5becfbd0ce
commit 3fce97aa4a
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -50,3 +50,4 @@ modules.order
Module.symvers Module.symvers
Mkfile.old Mkfile.old
dkms.conf dkms.conf
src/logic

View File

@ -1,4 +1,4 @@
echo "BUILDING LOGIC" echo "BUILDING LOGIC"
clang ./logic.c ./logic_symb.c ./logic_run.c ./logic_ops.c ./logic_karn.c -o ./logic clang ./logic.c ./logic_symb.c ./logic_run.c ./logic_ops.c ./logic_karn.c -o ./logic.elf
echo "LOGIC HAS BEEN BUILT - NOW WE GONNA RUN IT" echo "LOGIC HAS BEEN BUILT - NOW WE GONNA RUN IT"
./logic ./logic

View File

@ -7,9 +7,9 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
int x, y; int x, y;
char d[] = "(Bo((-A^-C)o(A^C)))v(A^B^C)"; char d[] = "((Bo((-A^-C)o(A^C)))v(A^B^C))^((DvA)o(-D^C))";
bool* c = logic_karn_run(d, 3, &x, &y); bool* c = logic_karn_run(d, 4, &x, &y);
logic_karn_render(c, x, y); logic_karn_render(c, x, y);
return 0; return 0;