/media/sda-magnetic/david/Dok-15-2023-11-27/fernuni-hagen/cs-i-ii/old-cs-2-03/fsm-21-06-09/automat3.c


#include <stdio.h>
#include <time.h>
#include <stdlib.h>

#define and &&
#define or ||
#define not !
#define a   z0
#define b   z1
#define c   z2

int main (void) {
        int x, z2, z1, z0;
        time_t t;
        
        srand((unsigned) time(&t));
        
        
            for (z2 = 0;  z2 <= 1;  z2++) {
                for (z1 = 0;  z1 <= 1;  z1++) {
                    for (z0 = 0;  z0 <= 1;  z0++) {
                        printf ("%i %i %i   %i %i %i\n", c, b, a, ((not c and b) or (c and not b)), not((not c and a) or (c and not a)), ((not b and a) or (b and not a)));
                    }
                }
            }
    
return 0;
}