#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int liefer, vollst, bon;
  printf("Lieferfaehigkeit: ");
  scanf("%d", &liefer);
  printf("Angaben vollstaendig: ");
  scanf("%d", &vollst);
  printf("Bonitaet in Ordnung: ");
  scanf("%d", &bon);
  if (!liefer) {
    printf("nicht lieferbar\n");
  } else {
    if (bon)
      printf("Lieferung mit Rechnung\n");
    else
      printf("Lieferung als Nachname\n");
    if (!vollst)
      printf("Angaben vervollstaendigen\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    119e <main+0x7e>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
jmp    11e0 <main+0xc0>
cmpl   $0x0,-0x10(%rbp)
je     11b9 <main+0x99>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
jmp    11c5 <main+0xa5>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11db <main+0xbb>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    11e0 <main+0xc0>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
call   1040 <printf@plt>
lea    0xecb(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
je     11ba <main+0x8a>
cmpl   $0x0,0x4(%rsp)
lea    0xeb9(%rip),%rax
lea    0xee3(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jne    11c6 <main+0x96>
lea    0xeb2(%rip),%rdi
jmp    11c1 <main+0x91>
lea    0xe82(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Lieferfaehigkeit: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Angaben vollstaendig: \00"
@.str.3 = [22 x i8] c"Bonitaet in Ordnung: \00"
@.str.4 = [17 x i8] c"nicht lieferbar\0A\00"
@.str.5 = [24 x i8] c"Lieferung mit Rechnung\0A\00"
@.str.6 = [24 x i8] c"Lieferung als Nachname\0A\00"
@.str.7 = [27 x i8] c"Angaben vervollstaendigen\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%7 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %28
15: ; preds = %0
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = load i32, i32* %3
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
br label %27
27: ; preds = %25, %22
br label %28
28: ; preds = %27, %13
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Lieferfaehigkeit: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Angaben vollstaendig: \00"
@.str.3 = [22 x i8] c"Bonitaet in Ordnung: \00"
@str = [16 x i8] c"nicht lieferbar\00"
@str.8 = [23 x i8] c"Lieferung als Nachname\00"
@str.9 = [26 x i8] c"Angaben vervollstaendigen\00"
@str.10 = [23 x i8] c"Lieferung mit Rechnung\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %0
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 0
%18 = select i1 %17, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @str.8, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @str.10, i64 0, i64 0)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
%20 = load i32, i32* %2
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15, %0
%23 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0), %0 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.9, i64 0, i64 0), %15 ]
%24 = call i32 @puts(i8* dereferenceable(1) %23)
br label %25
25: ; preds = %22, %15
ret i32 0
}