#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*/ print_char(char);
int /*<<< orphan*/ print_int(int);
int main() {
  int i = 0;
  int j = 0;
  int k = 0;
  i = i + 10;
  print_int(i);
  print_char('\n');
  i = i - 2;
  print_int(i);
  print_char('\n');
  i = i * 2;
  print_int(i);
  print_char('\n');
  i = i / 4;
  print_int(i);
  print_char('\n');
  i = i % 3;
  print_int(i);
  print_char('\n');
  print_char('\n');
  j = i++;
  print_int(j);
  print_char(' ');
  print_int(i);
  print_char('\n');
  j = ++i;
  print_int(j);
  print_char(' ');
  print_int(i);
  print_char('\n');
  print_char('\n');
  j = i--;
  print_int(j);
  print_char(' ');
  print_int(i);
  print_char('\n');
  j = --i;
  print_int(j);
  print_char(' ');
  print_int(i);
  print_char('\n');
  print_char('\n');
  j += i;
  print_int(j);
  print_char('\n');
  j -= i;
  print_int(j);
  print_char('\n');
  print_char('\n');
  k = i = j;
  print_int(k);
  print_char(' ');
  print_int(i);
  print_char(' ');
  print_int(j);
  print_char('\n');
  print_char('\n');
  i = i && 0;
  print_int(i);
  print_char('\n');
  i = 1 && 1;
  print_int(i);
  print_char('\n');
  print_char('\n');
  j = i || 5;
  print_int(j);
  print_char('\n');
  j = 0 || 1;
  print_int(j);
  print_char('\n');
  j = 0 ^ 1;
  print_int(j);
  print_char('\n');
  j = 3 & 2;
  print_int(j);
  print_char('\n');
  j = 2 | 1;
  print_int(j);
  print_char('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
je     135b <main+0x23b>
xor    %eax,%eax
mov    %al,-0x11(%rbp)
jmp    135b <main+0x23b>
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x12(%rbp)
jne    13b4 <main+0x294>
mov    $0x1,%al
mov    %al,-0x12(%rbp)
jmp    13b4 <main+0x294>
mov    -0x12(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
movl   $0x3,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x8,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x10,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x4,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x2,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x3,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x3,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x3,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x2,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x2,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
xor    %edi,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x1,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x2,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    $0x3,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 10
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @print_int(i32 %7)
%9 = call i32 @print_char(i8 signext 10)
%10 = load i32, i32* %2
%11 = sub nsw i32 %10, 2
store i32 %11, i32* %2
%12 = load i32, i32* %2
%13 = call i32 @print_int(i32 %12)
%14 = call i32 @print_char(i8 signext 10)
%15 = load i32, i32* %2
%16 = mul nsw i32 %15, 2
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = call i32 @print_int(i32 %17)
%19 = call i32 @print_char(i8 signext 10)
%20 = load i32, i32* %2
%21 = sdiv i32 %20, 4
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = call i32 @print_int(i32 %22)
%24 = call i32 @print_char(i8 signext 10)
%25 = load i32, i32* %2
%26 = srem i32 %25, 3
store i32 %26, i32* %2
%27 = load i32, i32* %2
%28 = call i32 @print_int(i32 %27)
%29 = call i32 @print_char(i8 signext 10)
%30 = call i32 @print_char(i8 signext 10)
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %2
store i32 %31, i32* %3
%33 = load i32, i32* %3
%34 = call i32 @print_int(i32 %33)
%35 = call i32 @print_char(i8 signext 32)
%36 = load i32, i32* %2
%37 = call i32 @print_int(i32 %36)
%38 = call i32 @print_char(i8 signext 10)
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
store i32 %40, i32* %3
%41 = load i32, i32* %3
%42 = call i32 @print_int(i32 %41)
%43 = call i32 @print_char(i8 signext 32)
%44 = load i32, i32* %2
%45 = call i32 @print_int(i32 %44)
%46 = call i32 @print_char(i8 signext 10)
%47 = call i32 @print_char(i8 signext 10)
%48 = load i32, i32* %2
%49 = add nsw i32 %48, -1
store i32 %49, i32* %2
store i32 %48, i32* %3
%50 = load i32, i32* %3
%51 = call i32 @print_int(i32 %50)
%52 = call i32 @print_char(i8 signext 32)
%53 = load i32, i32* %2
%54 = call i32 @print_int(i32 %53)
%55 = call i32 @print_char(i8 signext 10)
%56 = load i32, i32* %2
%57 = add nsw i32 %56, -1
store i32 %57, i32* %2
store i32 %57, i32* %3
%58 = load i32, i32* %3
%59 = call i32 @print_int(i32 %58)
%60 = call i32 @print_char(i8 signext 32)
%61 = load i32, i32* %2
%62 = call i32 @print_int(i32 %61)
%63 = call i32 @print_char(i8 signext 10)
%64 = call i32 @print_char(i8 signext 10)
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = add nsw i32 %66, %65
store i32 %67, i32* %3
%68 = load i32, i32* %3
%69 = call i32 @print_int(i32 %68)
%70 = call i32 @print_char(i8 signext 10)
%71 = load i32, i32* %2
%72 = load i32, i32* %3
%73 = sub nsw i32 %72, %71
store i32 %73, i32* %3
%74 = load i32, i32* %3
%75 = call i32 @print_int(i32 %74)
%76 = call i32 @print_char(i8 signext 10)
%77 = call i32 @print_char(i8 signext 10)
%78 = load i32, i32* %3
store i32 %78, i32* %2
store i32 %78, i32* %4
%79 = load i32, i32* %4
%80 = call i32 @print_int(i32 %79)
%81 = call i32 @print_char(i8 signext 32)
%82 = load i32, i32* %2
%83 = call i32 @print_int(i32 %82)
%84 = call i32 @print_char(i8 signext 32)
%85 = load i32, i32* %3
%86 = call i32 @print_int(i32 %85)
%87 = call i32 @print_char(i8 signext 10)
%88 = call i32 @print_char(i8 signext 10)
%89 = load i32, i32* %2
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %0
br label %92
92: ; preds = %91, %0
%93 = phi i1 [ false, %0 ], [ false, %91 ]
%94 = zext i1 %93 to i32
store i32 %94, i32* %2
%95 = load i32, i32* %2
%96 = call i32 @print_int(i32 %95)
%97 = call i32 @print_char(i8 signext 10)
store i32 1, i32* %2
%98 = load i32, i32* %2
%99 = call i32 @print_int(i32 %98)
%100 = call i32 @print_char(i8 signext 10)
%101 = call i32 @print_char(i8 signext 10)
%102 = load i32, i32* %2
%103 = icmp ne i32 %102, 0
br i1 %103, label %105, label %104
104: ; preds = %92
br label %105
105: ; preds = %104, %92
%106 = phi i1 [ true, %92 ], [ true, %104 ]
%107 = zext i1 %106 to i32
store i32 %107, i32* %3
%108 = load i32, i32* %3
%109 = call i32 @print_int(i32 %108)
%110 = call i32 @print_char(i8 signext 10)
store i32 1, i32* %3
%111 = load i32, i32* %3
%112 = call i32 @print_int(i32 %111)
%113 = call i32 @print_char(i8 signext 10)
store i32 1, i32* %3
%114 = load i32, i32* %3
%115 = call i32 @print_int(i32 %114)
%116 = call i32 @print_char(i8 signext 10)
store i32 2, i32* %3
%117 = load i32, i32* %3
%118 = call i32 @print_int(i32 %117)
%119 = call i32 @print_char(i8 signext 10)
store i32 3, i32* %3
%120 = load i32, i32* %3
%121 = call i32 @print_int(i32 %120)
%122 = call i32 @print_char(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @print_int(i32 10)
%2 = tail call i32 @print_char(i8 signext 10)
%3 = tail call i32 @print_int(i32 8)
%4 = tail call i32 @print_char(i8 signext 10)
%5 = tail call i32 @print_int(i32 16)
%6 = tail call i32 @print_char(i8 signext 10)
%7 = tail call i32 @print_int(i32 4)
%8 = tail call i32 @print_char(i8 signext 10)
%9 = tail call i32 @print_int(i32 1)
%10 = tail call i32 @print_char(i8 signext 10)
%11 = tail call i32 @print_char(i8 signext 10)
%12 = tail call i32 @print_int(i32 1)
%13 = tail call i32 @print_char(i8 signext 32)
%14 = tail call i32 @print_int(i32 2)
%15 = tail call i32 @print_char(i8 signext 10)
%16 = tail call i32 @print_int(i32 3)
%17 = tail call i32 @print_char(i8 signext 32)
%18 = tail call i32 @print_int(i32 3)
%19 = tail call i32 @print_char(i8 signext 10)
%20 = tail call i32 @print_char(i8 signext 10)
%21 = tail call i32 @print_int(i32 3)
%22 = tail call i32 @print_char(i8 signext 32)
%23 = tail call i32 @print_int(i32 2)
%24 = tail call i32 @print_char(i8 signext 10)
%25 = tail call i32 @print_int(i32 1)
%26 = tail call i32 @print_char(i8 signext 32)
%27 = tail call i32 @print_int(i32 1)
%28 = tail call i32 @print_char(i8 signext 10)
%29 = tail call i32 @print_char(i8 signext 10)
%30 = tail call i32 @print_int(i32 2)
%31 = tail call i32 @print_char(i8 signext 10)
%32 = tail call i32 @print_int(i32 1)
%33 = tail call i32 @print_char(i8 signext 10)
%34 = tail call i32 @print_char(i8 signext 10)
%35 = tail call i32 @print_int(i32 1)
%36 = tail call i32 @print_char(i8 signext 32)
%37 = tail call i32 @print_int(i32 1)
%38 = tail call i32 @print_char(i8 signext 32)
%39 = tail call i32 @print_int(i32 1)
%40 = tail call i32 @print_char(i8 signext 10)
%41 = tail call i32 @print_char(i8 signext 10)
%42 = tail call i32 @print_int(i32 0)
%43 = tail call i32 @print_char(i8 signext 10)
%44 = tail call i32 @print_int(i32 1)
%45 = tail call i32 @print_char(i8 signext 10)
%46 = tail call i32 @print_char(i8 signext 10)
%47 = tail call i32 @print_int(i32 1)
%48 = tail call i32 @print_char(i8 signext 10)
%49 = tail call i32 @print_int(i32 1)
%50 = tail call i32 @print_char(i8 signext 10)
%51 = tail call i32 @print_int(i32 1)
%52 = tail call i32 @print_char(i8 signext 10)
%53 = tail call i32 @print_int(i32 2)
%54 = tail call i32 @print_char(i8 signext 10)
%55 = tail call i32 @print_int(i32 3)
%56 = tail call i32 @print_char(i8 signext 10)
ret i32 0
}