/media/sda-magnetic/david/Extern-Magnetic-2022-06-29/Extern01/Dokumente-11-2021-07-05/informatik-math/informatik2/quine-mc-cluskey-asm-2021-04-16/auf17.c


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

#define and &&
#define or ||
#define not !

int main (void) {
    int x0, x1, x2, x3;
    time_t t;
    int i;

    
    srand((unsigned) time(&t));
    
    for (i = 0, x3 = 0;  x3 <= 1;  x3++) {
        for (x2 = 0;  x2 <= 1;  x2++) {
            for (x1 = 0;  x1 <= 1;  x1++) {
                for (x0 = 0;  x0 <= 1;  x0++, i++) {
                    printf( "%2i %i %i %i %i    %d\n", i, x3, x2, x1, x0, (x3 and not x2 and not x1) or (x3 and not x2 and not x0) or (not x3 and x1 and x0) or (x3 and not x1 and x0) or (not x3 and not x1 and not x0) or (not x2 and not x1 and not x0));                    
                }
            }
        }
    }
}