#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*/ putint(int);
int /*<<< orphan*/ putstring(char *);
int main(void) {
  char cr[1];
  int x;
  int y;
  cr[0] = '\n';
  cr[1] = 0;
  putint(42);
  putstring(cr);
  putint(35 + 7);
  putstring(cr);
  putint(6 * 7);
  putstring(cr);
  putint(3 * 4 + 5 * 6);
  putstring(cr);
  putint(7 * 8 - 3 * 4 - 2);
  putstring(cr);
  putint((-6) * (-7));
  putstring(cr);
  putint(((9 + 9 + 9) * ((9 + 9) / 9) * (9 * 9 - (9 + 9)) +
          (9 + 9) * (9 + 9 + 9)) /
             (9 * 9 + 9) -
         9 / 9);
  putstring(cr);
  x = y = 6;
  putint(x * (y + 1));
  putstring(cr);
  x = (y = 5) + 3;
  putint(x * y + 2);
  putstring(cr);
  putint((3 * 113 + ((2 * 2) * (2 * 2))) * 1000000 / 113);
  putstring(cr);
  putint(1 > 0);
  putint(1 >= 0);
  putint(1 == 0);
  putint(1 < 0);
  putint(1 <= 0);
  putint(0 < 1 && 0 < 1);
  putint(0 < 1 && 1 < 0);
  putint(1 < 0 && 0 < 1);
  putint(1 < 0 && 1 < 0);
  putstring(cr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0xa,-0x1(%rbp)
movb   $0x0,0x0(%rbp)
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
movl   $0x6,-0xc(%rbp)
movl   $0x6,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%eax
add    $0x1,%eax
imul   %eax,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
movl   $0x5,-0xc(%rbp)
movl   $0x8,-0x8(%rbp)
mov    -0x8(%rbp),%edi
imul   -0xc(%rbp),%edi
add    $0x2,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x2fefd8,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
lea    -0x1(%rbp),%rdi
call   1040 <putstring@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movb   $0x0,0x10(%rsp)
mov    $0x2a,%edi
call   1030 <putint@plt>
lea    0xf(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2a,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x2fefd8,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
mov    $0x1,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
xor    %edi,%edi
call   1030 <putint@plt>
mov    %rbx,%rdi
call   1040 <putstring@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca [1 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
store i8 10, i8* %4
%5 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 1
store i8 0, i8* %5
%6 = call i32 @putint(i32 42)
%7 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%8 = call i32 @putstring(i8* %7)
%9 = call i32 @putint(i32 42)
%10 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%11 = call i32 @putstring(i8* %10)
%12 = call i32 @putint(i32 42)
%13 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%14 = call i32 @putstring(i8* %13)
%15 = call i32 @putint(i32 42)
%16 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%17 = call i32 @putstring(i8* %16)
%18 = call i32 @putint(i32 42)
%19 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%20 = call i32 @putstring(i8* %19)
%21 = call i32 @putint(i32 42)
%22 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%23 = call i32 @putstring(i8* %22)
%24 = call i32 @putint(i32 42)
%25 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%26 = call i32 @putstring(i8* %25)
store i32 6, i32* %3
store i32 6, i32* %2
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
%30 = mul nsw i32 %27, %29
%31 = call i32 @putint(i32 %30)
%32 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%33 = call i32 @putstring(i8* %32)
store i32 5, i32* %3
store i32 8, i32* %2
%34 = load i32, i32* %2
%35 = load i32, i32* %3
%36 = mul nsw i32 %34, %35
%37 = add nsw i32 %36, 2
%38 = call i32 @putint(i32 %37)
%39 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%40 = call i32 @putstring(i8* %39)
%41 = call i32 @putint(i32 3141592)
%42 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%43 = call i32 @putstring(i8* %42)
%44 = call i32 @putint(i32 1)
%45 = call i32 @putint(i32 1)
%46 = call i32 @putint(i32 0)
%47 = call i32 @putint(i32 0)
%48 = call i32 @putint(i32 0)
%49 = call i32 @putint(i32 1)
%50 = call i32 @putint(i32 0)
%51 = call i32 @putint(i32 0)
%52 = call i32 @putint(i32 0)
%53 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%54 = call i32 @putstring(i8* %53)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [1 x i8]
%2 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%3 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 1
store i8 0, i8* %3
%4 = tail call i32 @putint(i32 42)
%5 = call i32 @putstring(i8* %2)
%6 = call i32 @putint(i32 42)
%7 = call i32 @putstring(i8* %2)
%8 = call i32 @putint(i32 42)
%9 = call i32 @putstring(i8* %2)
%10 = call i32 @putint(i32 42)
%11 = call i32 @putstring(i8* %2)
%12 = call i32 @putint(i32 42)
%13 = call i32 @putstring(i8* %2)
%14 = call i32 @putint(i32 42)
%15 = call i32 @putstring(i8* %2)
%16 = call i32 @putint(i32 42)
%17 = call i32 @putstring(i8* %2)
%18 = call i32 @putint(i32 42)
%19 = call i32 @putstring(i8* %2)
%20 = call i32 @putint(i32 42)
%21 = call i32 @putstring(i8* %2)
%22 = call i32 @putint(i32 3141592)
%23 = call i32 @putstring(i8* %2)
%24 = call i32 @putint(i32 1)
%25 = call i32 @putint(i32 1)
%26 = call i32 @putint(i32 0)
%27 = call i32 @putint(i32 0)
%28 = call i32 @putint(i32 0)
%29 = call i32 @putint(i32 1)
%30 = call i32 @putint(i32 0)
%31 = call i32 @putint(i32 0)
%32 = call i32 @putint(i32 0)
%33 = call i32 @putstring(i8* %2)
ret i32 0
}