#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 */
scalar_t__ __VERIFIER_nondet_int();
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int main_test() {
  int x = 0;
  int y = 0;
  int z = 0;
  int w = 0;
  while (0) {
    if (__VERIFIER_nondet_int()) {
      x++;
      y = y + 100;
      assert(0);
    } else if (__VERIFIER_nondet_int()) {
      if (x >= 4) {
        x = x + 1;
        y = y + 1;
        assert(0);
      }
      assert(0);
    } else if (y > 10 * w)
      if (z >= 100 * x) {
        y = -y;
        assert(0);
      }
    w = w + 1;
    z = z + 10;
    assert(0);
  }
  assert(0);
  return 1;
}


x86 assembly (clang, -O0):
<main_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    1153 <main_test+0x33>
jmp    121c <main_test+0xfc>
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     1182 <main_test+0x62>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    11fe <main_test+0xde>
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     11c2 <main_test+0xa2>
cmpl   $0x4,-0x4(%rbp)
jl     11b6 <main_test+0x96>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
xor    %edi,%edi
call   1030 <assert@plt>
jmp    11f9 <main_test+0xd9>
mov    -0x8(%rbp),%eax
imul   $0xa,-0x10(%rbp),%ecx
cmp    %ecx,%eax
jle    11f4 <main_test+0xd4>
mov    -0xc(%rbp),%eax
imul   $0x64,-0x4(%rbp),%ecx
cmp    %ecx,%eax
jl     11ef <main_test+0xcf>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    11f4 <main_test+0xd4>
jmp    11f9 <main_test+0xd9>
jmp    11fe <main_test+0xde>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0xc(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    1144 <main_test+0x24>
xor    %edi,%edi
call   1030 <assert@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main_test>:
push   %rax
xor    %edi,%edi
call   1030 <assert@plt>
mov    $0x1,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main_test() {
%1 = tail call i32 @assert(i32 0)
ret i32 1
}