#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 iabsv(int);
int iaddv(int, int);
int imulv(int, int);
int inegv(int);
int isubv(int, int);
long labsv(long);
long laddv(long, long);
long lmulv(long, long);
long lnegv(long);
long lsubv(long, long);
int main(void) {
  if (iabsv(-1) != 1)
    abort();
  if (iaddv(2, -3) != -1)
    abort();
  if (isubv(2, 3) != -1)
    abort();
  if (imulv(-2, 3) != -6)
    abort();
  if (inegv(-1) != 1)
    abort();
  if (labsv(-1L) != 1L)
    abort();
  if (laddv(2L, -3L) != -1L)
    abort();
  if (lsubv(2L, 3L) != -1L)
    abort();
  if (lmulv(-2L, 3L) != -6L)
    abort();
  if (lnegv(-1L) != 1L)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xffffffff,%edi
call   1080 <iabsv@plt>
cmp    $0x1,%eax
je     11d9 <main+0x29>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0x2,%edi
mov    $0xfffffffd,%esi
call   1060 <iaddv@plt>
cmp    $0xffffffff,%eax
je     11f8 <main+0x48>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0x2,%edi
mov    $0x3,%esi
call   10d0 <isubv@plt>
cmp    $0xffffffff,%eax
je     1217 <main+0x67>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xfffffffe,%edi
mov    $0x3,%esi
call   1070 <imulv@plt>
cmp    $0xfffffffa,%eax
je     1236 <main+0x86>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xffffffff,%edi
call   1090 <inegv@plt>
cmp    $0x1,%eax
je     1250 <main+0xa0>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xffffffffffffffff,%rdi
call   1030 <labsv@plt>
cmp    $0x1,%rax
je     126d <main+0xbd>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0x2,%edi
mov    $0xfffffffffffffffd,%rsi
call   10b0 <laddv@plt>
cmp    $0xffffffffffffffff,%rax
je     128f <main+0xdf>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0x2,%edi
mov    $0x3,%esi
call   1050 <lsubv@plt>
cmp    $0xffffffffffffffff,%rax
je     12af <main+0xff>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xfffffffffffffffe,%rdi
mov    $0x3,%esi
call   10c0 <lmulv@plt>
cmp    $0xfffffffffffffffa,%rax
je     12d1 <main+0x121>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xffffffffffffffff,%rdi
call   10a0 <lnegv@plt>
cmp    $0x1,%rax
je     12ee <main+0x13e>
mov    $0x0,%al
call   1040 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
call   1080 <iabsv@plt>
cmp    $0x1,%eax
jne    1282 <main+0xd2>
mov    $0x2,%edi
mov    $0xfffffffd,%esi
call   1060 <iaddv@plt>
cmp    $0xffffffff,%eax
jne    1282 <main+0xd2>
mov    $0x2,%edi
mov    $0x3,%esi
call   10d0 <isubv@plt>
cmp    $0xffffffff,%eax
jne    1282 <main+0xd2>
mov    $0xfffffffe,%edi
mov    $0x3,%esi
call   1070 <imulv@plt>
cmp    $0xfffffffa,%eax
jne    1282 <main+0xd2>
mov    $0xffffffff,%edi
call   1090 <inegv@plt>
cmp    $0x1,%eax
jne    1282 <main+0xd2>
mov    $0xffffffffffffffff,%rdi
call   1030 <labsv@plt>
cmp    $0x1,%rax
jne    1282 <main+0xd2>
mov    $0x2,%edi
mov    $0xfffffffffffffffd,%rsi
call   10b0 <laddv@plt>
cmp    $0xffffffffffffffff,%rax
jne    1282 <main+0xd2>
mov    $0x2,%edi
mov    $0x3,%esi
call   1050 <lsubv@plt>
cmp    $0xffffffffffffffff,%rax
jne    1282 <main+0xd2>
mov    $0x3,%esi
mov    $0xfffffffffffffffe,%rdi
call   10c0 <lmulv@plt>
cmp    $0xfffffffffffffffa,%rax
jne    1282 <main+0xd2>
mov    $0xffffffffffffffff,%rdi
call   10a0 <lnegv@plt>
cmp    $0x1,%rax
jne    1282 <main+0xd2>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @iabsv(i32 -1)
%3 = icmp ne i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
%7 = call i32 @iaddv(i32 2, i32 -3)
%8 = icmp ne i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 (...) @abort()
unreachable
11: ; preds = %6
%12 = call i32 @isubv(i32 2, i32 3)
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @abort()
unreachable
16: ; preds = %11
%17 = call i32 @imulv(i32 -2, i32 3)
%18 = icmp ne i32 %17, -6
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @abort()
unreachable
21: ; preds = %16
%22 = call i32 @inegv(i32 -1)
%23 = icmp ne i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (...) @abort()
unreachable
26: ; preds = %21
%27 = call i64 @labsv(i64 -1)
%28 = icmp ne i64 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @abort()
unreachable
31: ; preds = %26
%32 = call i64 @laddv(i64 2, i64 -3)
%33 = icmp ne i64 %32, -1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (...) @abort()
unreachable
36: ; preds = %31
%37 = call i64 @lsubv(i64 2, i64 3)
%38 = icmp ne i64 %37, -1
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (...) @abort()
unreachable
41: ; preds = %36
%42 = call i64 @lmulv(i64 -2, i64 3)
%43 = icmp ne i64 %42, -6
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 (...) @abort()
unreachable
46: ; preds = %41
%47 = call i64 @lnegv(i64 -1)
%48 = icmp ne i64 %47, 1
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 (...) @abort()
unreachable
51: ; preds = %46
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @iabsv(i32 -1)
%2 = icmp eq i32 %1, 1
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @iaddv(i32 2, i32 -3)
%7 = icmp eq i32 %6, -1
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %5
%11 = tail call i32 @isubv(i32 2, i32 3)
%12 = icmp eq i32 %11, -1
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = tail call i32 @imulv(i32 -2, i32 3)
%17 = icmp eq i32 %16, -6
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
%21 = tail call i32 @inegv(i32 -1)
%22 = icmp eq i32 %21, 1
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 (...) @abort()
unreachable
25: ; preds = %20
%26 = tail call i64 @labsv(i64 -1)
%27 = icmp eq i64 %26, 1
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (...) @abort()
unreachable
30: ; preds = %25
%31 = tail call i64 @laddv(i64 2, i64 -3)
%32 = icmp eq i64 %31, -1
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 (...) @abort()
unreachable
35: ; preds = %30
%36 = tail call i64 @lsubv(i64 2, i64 3)
%37 = icmp eq i64 %36, -1
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 (...) @abort()
unreachable
40: ; preds = %35
%41 = tail call i64 @lmulv(i64 -2, i64 3)
%42 = icmp eq i64 %41, -6
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 (...) @abort()
unreachable
45: ; preds = %40
%46 = tail call i64 @lnegv(i64 -1)
%47 = icmp eq i64 %46, 1
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 (...) @abort()
unreachable
50: ; preds = %45
ret i32 0
}