#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 algorithm(int, int);
int main() {
  int t1, t2, t3, value, a, b;
  if (a > -513) {
    if (a < 513) {
      if (b > -1025) {
        if (b < 1025) {
          t1 = a * b;
          t2 = t1 >> 3;
          t3 = (t2 + 1024) >> 4;
          value = algorithm(a, b);
          if (value == t3)
            goto EXIT;
          else {
            int inputA = a;
            int inputB = b;
            goto ERROR;
          }
        }
      }
    }
  }
  goto EXIT;
ERROR:;
EXIT:;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0xfffffdff,-0x18(%rbp)
jle    11b3 <main+0xa3>
cmpl   $0x201,-0x18(%rbp)
jge    11ae <main+0x9e>
cmpl   $0xfffffbff,-0x1c(%rbp)
jle    11a9 <main+0x99>
cmpl   $0x401,-0x1c(%rbp)
jge    11a4 <main+0x94>
mov    -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x3,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x400,%eax
sar    $0x4,%eax
mov    %eax,-0x10(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1030 <algorithm@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1193 <main+0x83>
jmp    11bd <main+0xad>
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    11b8 <main+0xa8>
jmp    11a9 <main+0x99>
jmp    11ae <main+0x9e>
jmp    11b3 <main+0xa3>
jmp    11bd <main+0xad>
jmp    11bd <main+0xad>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
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
store i32 0, i32* %1
%10 = load i32, i32* %6
%11 = icmp sgt i32 %10, -513
br i1 %11, label %12, label %43
12: ; preds = %0
%13 = load i32, i32* %6
%14 = icmp slt i32 %13, 513
br i1 %14, label %15, label %42
15: ; preds = %12
%16 = load i32, i32* %7
%17 = icmp sgt i32 %16, -1025
br i1 %17, label %18, label %41
18: ; preds = %15
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 1025
br i1 %20, label %21, label %40
21: ; preds = %18
%22 = load i32, i32* %6
%23 = load i32, i32* %7
%24 = mul nsw i32 %22, %23
store i32 %24, i32* %2
%25 = load i32, i32* %2
%26 = ashr i32 %25, 3
store i32 %26, i32* %3
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1024
%29 = ashr i32 %28, 4
store i32 %29, i32* %4
%30 = load i32, i32* %6
%31 = load i32, i32* %7
%32 = call i32 @algorithm(i32 %30, i32 %31)
store i32 %32, i32* %5
%33 = load i32, i32* %5
%34 = load i32, i32* %4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %21
br label %45
37: ; preds = %21
%38 = load i32, i32* %6
store i32 %38, i32* %8
%39 = load i32, i32* %7
store i32 %39, i32* %9
br label %44
40: ; preds = %18
br label %41
41: ; preds = %40, %15
br label %42
42: ; preds = %41, %12
br label %43
43: ; preds = %42, %0
br label %45
44: ; preds = %37
br label %45
45: ; preds = %44, %43, %36
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}