#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 __VERIFIER_nondet_int();
int main() {
  int a = __VERIFIER_nondet_int();
  int b = a;
  a = a + 10;
  b = b + 10;
  if (a != b) {
    goto ERROR;
  }
  b = b - 10;
  if (b != a - 10) {
    goto ERROR;
  } else {
    a = a - 10;
  }
  b = (b * 10 / 2) % 7;
  a *= 10;
  a = (a / 2) % 7;
  if (a != b) {
    goto ERROR;
  }
  a = -a;
  b = -b;
  a = ~b;
  b = ~a;
  if (~a == b) {
    return 0;
  } else {
  ERROR:
    return -1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1152 <main+0x42>
jmp    1201 <main+0xf1>
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0xa,%ecx
cmp    %ecx,%eax
je     1171 <main+0x61>
jmp    1201 <main+0xf1>
mov    -0x8(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0x8(%rbp)
imul   $0xa,-0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
imul   $0xa,-0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     11bf <main+0xaf>
jmp    1201 <main+0xf1>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    $0xffffffff,%eax
cmp    -0xc(%rbp),%eax
jne    11fc <main+0xec>
movl   $0x0,-0x4(%rbp)
jmp    1208 <main+0xf8>
jmp    1201 <main+0xf1>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}