#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*/ expecti(int, int);
void test() {
  int a = 100;
  int b = 100;
  int c = a + b;
  expecti(c, 200);
  a = 10;
  b = 10;
  c = a * b;
  expecti(c, 100);
  c = a - b;
  expecti(c, 0);
  a = 100;
  c = a / b;
  expecti(c, 10);
  a = 1;
  b = 4;
  c = a << b;
  expecti(c, 16);
  c = b >> a;
  expecti(c, 2);
  a = 32;
  b = 96;
  c = (a & b);
  expecti(c, 32);
  a = 32;
  b = 64;
  c = a | b;
  expecti(c, 96);
  a = ~0;
  b = 0 - 1;
  expecti(a, b);
  a = -1;
  b = 0 - 1;
  expecti(a, b);
  a = 1024;
  b = 4096;
  c = a ^ b;
  expecti(c, 5120);
  a = 100;
  b = 200;
  a--;
  b++;
  expecti(a, 99);
  expecti(b, 201);
  expecti(a++, 99);
  expecti(b++, 201);
  expecti(a--, 100);
  expecti(b--, 202);
  expecti(++a, 100);
  expecti(++b, 202);
  expecti(--a, 99);
  expecti(--b, 201);
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x64,-0x4(%rbp)
movl   $0x64,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0xc8,%esi
call   1030 <expecti@plt>
movl   $0xa,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x64,%esi
call   1030 <expecti@plt>
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
xor    %esi,%esi
call   1030 <expecti@plt>
movl   $0x64,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0xa,%esi
call   1030 <expecti@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x10,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
sar    %cl,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x2,%esi
call   1030 <expecti@plt>
movl   $0x20,-0x4(%rbp)
movl   $0x60,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x20,%esi
call   1030 <expecti@plt>
movl   $0x20,-0x4(%rbp)
movl   $0x40,-0x8(%rbp)
mov    -0x4(%rbp),%eax
or     -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x60,%esi
call   1030 <expecti@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <expecti@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <expecti@plt>
movl   $0x400,-0x4(%rbp)
movl   $0x1000,-0x8(%rbp)
mov    -0x4(%rbp),%eax
xor    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x1400,%esi
call   1030 <expecti@plt>
movl   $0x64,-0x4(%rbp)
movl   $0xc8,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%edi
mov    $0xc9,%esi
call   1030 <expecti@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0xc9,%esi
call   1030 <expecti@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    $0x64,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    $0xca,%esi
call   1030 <expecti@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x4(%rbp)
mov    $0x64,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    $0xca,%esi
call   1030 <expecti@plt>
mov    -0x4(%rbp),%edi
add    $0xffffffff,%edi
mov    %edi,-0x4(%rbp)
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    -0x8(%rbp),%edi
add    $0xffffffff,%edi
mov    %edi,-0x8(%rbp)
mov    $0xc9,%esi
call   1030 <expecti@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1030 <expecti@plt>
mov    $0x64,%edi
mov    $0x64,%esi
call   1030 <expecti@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <expecti@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1030 <expecti@plt>
mov    $0x10,%edi
mov    $0x10,%esi
call   1030 <expecti@plt>
mov    $0x2,%edi
mov    $0x2,%esi
call   1030 <expecti@plt>
mov    $0x20,%edi
mov    $0x20,%esi
call   1030 <expecti@plt>
mov    $0x60,%edi
mov    $0x60,%esi
call   1030 <expecti@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1030 <expecti@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1030 <expecti@plt>
mov    $0x1400,%edi
mov    $0x1400,%esi
call   1030 <expecti@plt>
mov    $0x63,%edi
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    $0xc9,%edi
mov    $0xc9,%esi
call   1030 <expecti@plt>
mov    $0x63,%edi
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    $0xc9,%edi
mov    $0xc9,%esi
call   1030 <expecti@plt>
mov    $0x64,%edi
mov    $0x64,%esi
call   1030 <expecti@plt>
mov    $0xca,%edi
mov    $0xca,%esi
call   1030 <expecti@plt>
mov    $0x64,%edi
mov    $0x64,%esi
call   1030 <expecti@plt>
mov    $0xca,%edi
mov    $0xca,%esi
call   1030 <expecti@plt>
mov    $0x63,%edi
mov    $0x63,%esi
call   1030 <expecti@plt>
mov    $0xc9,%edi
mov    $0xc9,%esi
pop    %rax
jmp    1030 <expecti@plt>

LLVM IR (-O0):
define void @test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 100, i32* %1
store i32 100, i32* %2
%4 = load i32, i32* %1
%5 = load i32, i32* %2
%6 = add nsw i32 %4, %5
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = call i32 @expecti(i32 %7, i32 200)
store i32 10, i32* %1
store i32 10, i32* %2
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = mul nsw i32 %9, %10
store i32 %11, i32* %3
%12 = load i32, i32* %3
%13 = call i32 @expecti(i32 %12, i32 100)
%14 = load i32, i32* %1
%15 = load i32, i32* %2
%16 = sub nsw i32 %14, %15
store i32 %16, i32* %3
%17 = load i32, i32* %3
%18 = call i32 @expecti(i32 %17, i32 0)
store i32 100, i32* %1
%19 = load i32, i32* %1
%20 = load i32, i32* %2
%21 = sdiv i32 %19, %20
store i32 %21, i32* %3
%22 = load i32, i32* %3
%23 = call i32 @expecti(i32 %22, i32 10)
store i32 1, i32* %1
store i32 4, i32* %2
%24 = load i32, i32* %1
%25 = load i32, i32* %2
%26 = shl i32 %24, %25
store i32 %26, i32* %3
%27 = load i32, i32* %3
%28 = call i32 @expecti(i32 %27, i32 16)
%29 = load i32, i32* %2
%30 = load i32, i32* %1
%31 = ashr i32 %29, %30
store i32 %31, i32* %3
%32 = load i32, i32* %3
%33 = call i32 @expecti(i32 %32, i32 2)
store i32 32, i32* %1
store i32 96, i32* %2
%34 = load i32, i32* %1
%35 = load i32, i32* %2
%36 = and i32 %34, %35
store i32 %36, i32* %3
%37 = load i32, i32* %3
%38 = call i32 @expecti(i32 %37, i32 32)
store i32 32, i32* %1
store i32 64, i32* %2
%39 = load i32, i32* %1
%40 = load i32, i32* %2
%41 = or i32 %39, %40
store i32 %41, i32* %3
%42 = load i32, i32* %3
%43 = call i32 @expecti(i32 %42, i32 96)
store i32 -1, i32* %1
store i32 -1, i32* %2
%44 = load i32, i32* %1
%45 = load i32, i32* %2
%46 = call i32 @expecti(i32 %44, i32 %45)
store i32 -1, i32* %1
store i32 -1, i32* %2
%47 = load i32, i32* %1
%48 = load i32, i32* %2
%49 = call i32 @expecti(i32 %47, i32 %48)
store i32 1024, i32* %1
store i32 4096, i32* %2
%50 = load i32, i32* %1
%51 = load i32, i32* %2
%52 = xor i32 %50, %51
store i32 %52, i32* %3
%53 = load i32, i32* %3
%54 = call i32 @expecti(i32 %53, i32 5120)
store i32 100, i32* %1
store i32 200, i32* %2
%55 = load i32, i32* %1
%56 = add nsw i32 %55, -1
store i32 %56, i32* %1
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 1
store i32 %58, i32* %2
%59 = load i32, i32* %1
%60 = call i32 @expecti(i32 %59, i32 99)
%61 = load i32, i32* %2
%62 = call i32 @expecti(i32 %61, i32 201)
%63 = load i32, i32* %1
%64 = add nsw i32 %63, 1
store i32 %64, i32* %1
%65 = call i32 @expecti(i32 %63, i32 99)
%66 = load i32, i32* %2
%67 = add nsw i32 %66, 1
store i32 %67, i32* %2
%68 = call i32 @expecti(i32 %66, i32 201)
%69 = load i32, i32* %1
%70 = add nsw i32 %69, -1
store i32 %70, i32* %1
%71 = call i32 @expecti(i32 %69, i32 100)
%72 = load i32, i32* %2
%73 = add nsw i32 %72, -1
store i32 %73, i32* %2
%74 = call i32 @expecti(i32 %72, i32 202)
%75 = load i32, i32* %1
%76 = add nsw i32 %75, 1
store i32 %76, i32* %1
%77 = call i32 @expecti(i32 %76, i32 100)
%78 = load i32, i32* %2
%79 = add nsw i32 %78, 1
store i32 %79, i32* %2
%80 = call i32 @expecti(i32 %79, i32 202)
%81 = load i32, i32* %1
%82 = add nsw i32 %81, -1
store i32 %82, i32* %1
%83 = call i32 @expecti(i32 %82, i32 99)
%84 = load i32, i32* %2
%85 = add nsw i32 %84, -1
store i32 %85, i32* %2
%86 = call i32 @expecti(i32 %85, i32 201)
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call i32 @expecti(i32 200, i32 200)
%2 = tail call i32 @expecti(i32 100, i32 100)
%3 = tail call i32 @expecti(i32 0, i32 0)
%4 = tail call i32 @expecti(i32 10, i32 10)
%5 = tail call i32 @expecti(i32 16, i32 16)
%6 = tail call i32 @expecti(i32 2, i32 2)
%7 = tail call i32 @expecti(i32 32, i32 32)
%8 = tail call i32 @expecti(i32 96, i32 96)
%9 = tail call i32 @expecti(i32 -1, i32 -1)
%10 = tail call i32 @expecti(i32 -1, i32 -1)
%11 = tail call i32 @expecti(i32 5120, i32 5120)
%12 = tail call i32 @expecti(i32 99, i32 99)
%13 = tail call i32 @expecti(i32 201, i32 201)
%14 = tail call i32 @expecti(i32 99, i32 99)
%15 = tail call i32 @expecti(i32 201, i32 201)
%16 = tail call i32 @expecti(i32 100, i32 100)
%17 = tail call i32 @expecti(i32 202, i32 202)
%18 = tail call i32 @expecti(i32 100, i32 100)
%19 = tail call i32 @expecti(i32 202, i32 202)
%20 = tail call i32 @expecti(i32 99, i32 99)
%21 = tail call i32 @expecti(i32 201, i32 201)
ret void
}