#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ stdin;
int main(void) {
  int wert;
  int a, b, x, y, z, jahr, zaehler;
  char antwort;
  a = -15;
  wert = a >= -20 && a <= 100;
  printf("1. Wert: %d\n", wert);
  x = 1;
  y = 7;
  wert = x < 0 && y >= 5 && y <= 30;
  printf("2. Wert: %d\n", wert);
  z = 15;
  wert = 0;
  wert = z % 2 != 0 && z % 3 == 0 && z % 5 == 0;
  printf("3. Wert: %d\n", wert);
  jahr = 2100;
  wert = 0;
  wert = (jahr % 4 == 0) && (jahr % 100 != 0);
  printf("4. Wert: %d\n", wert);
  a = 25;
  b = 10;
  wert = 0;
  wert = a * b <= 255;
  printf("5. Wert: %d\n", wert);
  antwort = 'A';
  wert = 0;
  wert = antwort != 'j' || antwort != 'J';
  printf("6. Wert: %d\n", wert);
  zaehler = 30;
  wert = 1;
  wert = zaehler < 5 || zaehler > 25;
  printf("7. Wert: %d\n", wert);
  fflush(stdin);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xfffffff1,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0xffffffec,-0xc(%rbp)
mov    %al,-0x26(%rbp)
jl     115f <main+0x2f>
cmpl   $0x64,-0xc(%rbp)
setle  %al
mov    %al,-0x26(%rbp)
mov    -0x26(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
movl   $0x7,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x27(%rbp)
jge    11af <main+0x7f>
xor    %eax,%eax
cmpl   $0x5,-0x18(%rbp)
mov    %al,-0x27(%rbp)
jl     11af <main+0x7f>
cmpl   $0x1e,-0x18(%rbp)
setle  %al
mov    %al,-0x27(%rbp)
mov    -0x27(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
movl   $0xf,-0x1c(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x28(%rbp)
je     121d <main+0xed>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x28(%rbp)
jne    121d <main+0xed>
mov    -0x1c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0x28(%rbp)
mov    -0x28(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xde8(%rip),%rdi
call   1030 <printf@plt>
movl   $0x834,-0x20(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x20(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x29(%rbp)
jne    1272 <main+0x142>
mov    -0x20(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xda0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x19,-0xc(%rbp)
movl   $0xa,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
cmp    $0xff,%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xd72(%rip),%rdi
call   1030 <printf@plt>
movb   $0x41,-0x25(%rbp)
movl   $0x0,-0x8(%rbp)
movsbl -0x25(%rbp),%ecx
mov    $0x1,%al
cmp    $0x6a,%ecx
mov    %al,-0x2a(%rbp)
jne    12f1 <main+0x1c1>
movsbl -0x25(%rbp),%eax
cmp    $0x4a,%eax
setne  %al
mov    %al,-0x2a(%rbp)
mov    -0x2a(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xd3b(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1e,-0x24(%rbp)
movl   $0x1,-0x8(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0x24(%rbp)
mov    %al,-0x2b(%rbp)
jl     1332 <main+0x202>
cmpl   $0x19,-0x24(%rbp)
setg   %al
mov    %al,-0x2b(%rbp)
mov    -0x2b(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xd07(%rip),%rdi
call   1030 <printf@plt>
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"1. Wert: %d\0A\00"
@.str.1 = [13 x i8] c"2. Wert: %d\0A\00"
@.str.2 = [13 x i8] c"3. Wert: %d\0A\00"
@.str.3 = [13 x i8] c"4. Wert: %d\0A\00"
@.str.4 = [13 x i8] c"5. Wert: %d\0A\00"
@.str.5 = [13 x i8] c"6. Wert: %d\0A\00"
@.str.6 = [13 x i8] c"7. Wert: %d\0A\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
store i32 0, i32* %1
store i32 -15, i32* %3
%11 = load i32, i32* %3
%12 = icmp sge i32 %11, -20
br i1 %12, label %13, label %16
13: ; preds = %0
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 100
br label %16
16: ; preds = %13, %0
%17 = phi i1 [ false, %0 ], [ %15, %13 ]
%18 = zext i1 %17 to i32
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %19)
store i32 1, i32* %5
store i32 7, i32* %6
%21 = load i32, i32* %5
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %16
%24 = load i32, i32* %6
%25 = icmp sge i32 %24, 5
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, i32* %6
%28 = icmp sle i32 %27, 30
br label %29
29: ; preds = %26, %23, %16
%30 = phi i1 [ false, %23 ], [ false, %16 ], [ %28, %26 ]
%31 = zext i1 %30 to i32
store i32 %31, i32* %2
%32 = load i32, i32* %2
%33 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %32)
store i32 15, i32* %7
store i32 0, i32* %2
%34 = load i32, i32* %7
%35 = srem i32 %34, 2
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %29
%38 = load i32, i32* %7
%39 = srem i32 %38, 3
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i32, i32* %7
%43 = srem i32 %42, 5
%44 = icmp eq i32 %43, 0
br label %45
45: ; preds = %41, %37, %29
%46 = phi i1 [ false, %37 ], [ false, %29 ], [ %44, %41 ]
%47 = zext i1 %46 to i32
store i32 %47, i32* %2
%48 = load i32, i32* %2
%49 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %48)
store i32 2100, i32* %8
store i32 0, i32* %2
%50 = load i32, i32* %8
%51 = srem i32 %50, 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %45
%54 = load i32, i32* %8
%55 = srem i32 %54, 100
%56 = icmp ne i32 %55, 0
br label %57
57: ; preds = %53, %45
%58 = phi i1 [ false, %45 ], [ %56, %53 ]
%59 = zext i1 %58 to i32
store i32 %59, i32* %2
%60 = load i32, i32* %2
%61 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %60)
store i32 25, i32* %3
store i32 10, i32* %4
store i32 0, i32* %2
%62 = load i32, i32* %3
%63 = load i32, i32* %4
%64 = mul nsw i32 %62, %63
%65 = icmp sle i32 %64, 255
%66 = zext i1 %65 to i32
store i32 %66, i32* %2
%67 = load i32, i32* %2
%68 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %67)
store i8 65, i8* %10
store i32 0, i32* %2
%69 = load i8, i8* %10
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %70, 106
br i1 %71, label %76, label %72
72: ; preds = %57
%73 = load i8, i8* %10
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, 74
br label %76
76: ; preds = %72, %57
%77 = phi i1 [ true, %57 ], [ %75, %72 ]
%78 = zext i1 %77 to i32
store i32 %78, i32* %2
%79 = load i32, i32* %2
%80 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %79)
store i32 30, i32* %9
store i32 1, i32* %2
%81 = load i32, i32* %9
%82 = icmp slt i32 %81, 5
br i1 %82, label %86, label %83
83: ; preds = %76
%84 = load i32, i32* %9
%85 = icmp sgt i32 %84, 25
br label %86
86: ; preds = %83, %76
%87 = phi i1 [ true, %76 ], [ %85, %83 ]
%88 = zext i1 %87 to i32
store i32 %88, i32* %2
%89 = load i32, i32* %2
%90 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %89)
%91 = load i32, i32* @stdin
%92 = call i32 @fflush(i32 %91)
%93 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"1. Wert: %d\0A\00"
@.str.1 = [13 x i8] c"2. Wert: %d\0A\00"
@.str.2 = [13 x i8] c"3. Wert: %d\0A\00"
@.str.3 = [13 x i8] c"4. Wert: %d\0A\00"
@.str.4 = [13 x i8] c"5. Wert: %d\0A\00"
@.str.5 = [13 x i8] c"6. Wert: %d\0A\00"
@.str.6 = [13 x i8] c"7. Wert: %d\0A\00"
@stdin = global i32 0
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 1)
%8 = load i32, i32* @stdin
%9 = tail call i32 @fflush(i32 %8)
%10 = tail call i32 (...) @getchar()
ret i32 0
}