#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int a, b, c, d;
  int e;
  printf("Familie geht wenn:\n\n");
  printf("A  B  C  D\n");
  for (a = 0; a <= 1; a++) {
    for (b = 0; b <= 1; b++) {
      for (c = 0; c <= 1; c++) {
        for (d = 0; d <= 1; d++) {
          if ((a || b || c || d) && !(a && d) && (!b || c) &&
              (!a || !c || !b) && (a || (d != c)))
            printf("%d  %d  %d  %d\n", a, b, c, d);
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     126a <main+0x15a>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jg     1257 <main+0x147>
movl   $0x0,-0x10(%rbp)
cmpl   $0x1,-0x10(%rbp)
jg     1244 <main+0x134>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jg     1231 <main+0x121>
cmpl   $0x0,-0x8(%rbp)
jne    11a7 <main+0x97>
cmpl   $0x0,-0xc(%rbp)
jne    11a7 <main+0x97>
cmpl   $0x0,-0x10(%rbp)
jne    11a7 <main+0x97>
cmpl   $0x0,-0x14(%rbp)
je     121e <main+0x10e>
cmpl   $0x0,-0x8(%rbp)
je     11bb <main+0xab>
cmpl   $0x0,-0x14(%rbp)
jne    121e <main+0x10e>
cmpl   $0x0,-0xc(%rbp)
je     11cf <main+0xbf>
cmpl   $0x0,-0x10(%rbp)
je     121e <main+0x10e>
cmpl   $0x0,-0x8(%rbp)
je     11ed <main+0xdd>
cmpl   $0x0,-0x10(%rbp)
je     11ed <main+0xdd>
cmpl   $0x0,-0xc(%rbp)
jne    121e <main+0x10e>
cmpl   $0x0,-0x8(%rbp)
jne    1203 <main+0xf3>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     121e <main+0x10e>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1223 <main+0x113>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1175 <main+0x65>
jmp    1236 <main+0x126>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1164 <main+0x54>
jmp    1249 <main+0x139>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1153 <main+0x43>
jmp    125c <main+0x14c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1142 <main+0x32>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Familie geht wenn:\0A\0A\00"
@.str.1 = [12 x i8] c"A B C D\0A\00"
@.str.2 = [16 x i8] c"%d %d %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %9
9: ; preds = %83, %0
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 1
br i1 %11, label %12, label %86
12: ; preds = %9
store i32 0, i32* %3
br label %13
13: ; preds = %79, %12
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 1
br i1 %15, label %16, label %82
16: ; preds = %13
store i32 0, i32* %4
br label %17
17: ; preds = %75, %16
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 1
br i1 %19, label %20, label %78
20: ; preds = %17
store i32 0, i32* %5
br label %21
21: ; preds = %71, %20
%22 = load i32, i32* %5
%23 = icmp sle i32 %22, 1
br i1 %23, label %24, label %74
24: ; preds = %21
%25 = load i32, i32* %2
%26 = icmp ne i32 %25, 0
br i1 %26, label %36, label %27
27: ; preds = %24
%28 = load i32, i32* %3
%29 = icmp ne i32 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %27
%31 = load i32, i32* %4
%32 = icmp ne i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, i32* %5
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %70
36: ; preds = %33, %30, %27, %24
%37 = load i32, i32* %2
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, i32* %5
%41 = icmp ne i32 %40, 0
br i1 %41, label %70, label %42
42: ; preds = %39, %36
%43 = load i32, i32* %3
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, i32* %4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %70
48: ; preds = %45, %42
%49 = load i32, i32* %2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load i32, i32* %4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, i32* %3
%56 = icmp ne i32 %55, 0
br i1 %56, label %70, label %57
57: ; preds = %54, %51, %48
%58 = load i32, i32* %2
%59 = icmp ne i32 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %57
%61 = load i32, i32* %5
%62 = load i32, i32* %4
%63 = icmp ne i32 %61, %62
br i1 %63, label %64, label %70
64: ; preds = %60, %57
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = load i32, i32* %4
%68 = load i32, i32* %5
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %65, i32 %66, i32 %67, i32 %68)
br label %70
70: ; preds = %64, %60, %54, %45, %39, %33
br label %71
71: ; preds = %70
%72 = load i32, i32* %5
%73 = add nsw i32 %72, 1
store i32 %73, i32* %5
br label %21
74: ; preds = %21
br label %75
75: ; preds = %74
%76 = load i32, i32* %4
%77 = add nsw i32 %76, 1
store i32 %77, i32* %4
br label %17
78: ; preds = %17
br label %79
79: ; preds = %78
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
store i32 %81, i32* %3
br label %13
82: ; preds = %13
br label %83
83: ; preds = %82
%84 = load i32, i32* %2
%85 = add nsw i32 %84, 1
store i32 %85, i32* %2
br label %9
86: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [16 x i8] c"%d %d %d %d\0A\00"
@str = [20 x i8] c"Familie geht wenn:\0A\00"
@str.3 = [11 x i8] c"A B C D\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 1)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 1, i32 0)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1, i32 1, i32 0)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, i32 0, i32 0)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, i32 1, i32 0)
ret i32 0
}