#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*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main(void) {
  int my_int = 924;
  unsigned int result;
  result = ((my_int * 2 + 4) - 8U) / 2;
  if (result != 922U)
    abort();
  result = ((my_int * 2 - 4U) + 2) / 2;
  if (result != 923U)
    abort();
  result = (((my_int + 2) * 2) - 8U - 4) / 2;
  if (result != 920U)
    abort();
  result = (((my_int + 2) * 2) - (8U + 4)) / 2;
  if (result != 920U)
    abort();
  result = ((my_int * 4 + 2U) - 4U) / 2;
  if (result != 1847U)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x39c,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
add    $0x4,%eax
sub    $0x8,%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x39a,-0xc(%rbp)
je     115c <main+0x3c>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    $0x4,%eax
add    $0x2,%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x39b,-0xc(%rbp)
je     1182 <main+0x62>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
shl    $0x1,%eax
sub    $0x8,%eax
sub    $0x4,%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x398,-0xc(%rbp)
je     11ab <main+0x8b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
shl    $0x1,%eax
sub    $0xc,%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x398,-0xc(%rbp)
je     11d1 <main+0xb1>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
add    $0x2,%eax
sub    $0x4,%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x737,-0xc(%rbp)
je     11f7 <main+0xd7>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 924, i32* %2
%4 = load i32, i32* %2
%5 = mul nsw i32 %4, 2
%6 = add nsw i32 %5, 4
%7 = sub i32 %6, 8
%8 = udiv i32 %7, 2
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = icmp ne i32 %9, 922
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (...) @abort()
unreachable
13: ; preds = %0
%14 = load i32, i32* %2
%15 = mul nsw i32 %14, 2
%16 = sub i32 %15, 4
%17 = add i32 %16, 2
%18 = udiv i32 %17, 2
store i32 %18, i32* %3
%19 = load i32, i32* %3
%20 = icmp ne i32 %19, 923
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %13
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 2
%26 = mul nsw i32 %25, 2
%27 = sub i32 %26, 8
%28 = sub i32 %27, 4
%29 = udiv i32 %28, 2
store i32 %29, i32* %3
%30 = load i32, i32* %3
%31 = icmp ne i32 %30, 920
br i1 %31, label %32, label %34
32: ; preds = %23
%33 = call i32 (...) @abort()
unreachable
34: ; preds = %23
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 2
%37 = mul nsw i32 %36, 2
%38 = sub i32 %37, 12
%39 = udiv i32 %38, 2
store i32 %39, i32* %3
%40 = load i32, i32* %3
%41 = icmp ne i32 %40, 920
br i1 %41, label %42, label %44
42: ; preds = %34
%43 = call i32 (...) @abort()
unreachable
44: ; preds = %34
%45 = load i32, i32* %2
%46 = mul nsw i32 %45, 4
%47 = add i32 %46, 2
%48 = sub i32 %47, 4
%49 = udiv i32 %48, 2
store i32 %49, i32* %3
%50 = load i32, i32* %3
%51 = icmp ne i32 %50, 1847
br i1 %51, label %52, label %54
52: ; preds = %44
%53 = call i32 (...) @abort()
unreachable
54: ; preds = %44
%55 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @exit(i32 0)
unreachable
}