#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 /*<<< orphan*/ assert(int /*<<< orphan*/);
int main_test() {
  int n0 = __VERIFIER_nondet_int();
  int n1 = __VERIFIER_nondet_int();
  int n2 = __VERIFIER_nondet_int();
  int i = 0;
  int k = 0;
  while (i < n0) {
    i++;
    k++;
    assert(0);
  }
  assert(0);
  i = 0;
  while (i < n1) {
    i++;
    k++;
    assert(0);
  }
  assert(0);
  i = 0;
  while (i < n2) {
    i++;
    k++;
    assert(0);
  }
  assert(0);
  i = 0;
  while (i < n2) {
    i++;
    k--;
    assert(0);
  }
  assert(0);
  i = 0;
  while (i < n1) {
    i++;
    k--;
    assert(0);
  }
  assert(0);
  i = 0;
  while (i < n0) {
    i++;
    k--;
    assert(0);
  }
  assert(0);
  return 0;
}


x86 assembly (clang, -O0):
<main_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    117e <main_test+0x5e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    1154 <main_test+0x34>
xor    %edi,%edi
call   1030 <assert@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11b6 <main_test+0x96>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    118c <main_test+0x6c>
xor    %edi,%edi
call   1030 <assert@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ee <main_test+0xce>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    11c4 <main_test+0xa4>
xor    %edi,%edi
call   1030 <assert@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1226 <main_test+0x106>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    11fc <main_test+0xdc>
xor    %edi,%edi
call   1030 <assert@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    125e <main_test+0x13e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    1234 <main_test+0x114>
xor    %edi,%edi
call   1030 <assert@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1296 <main_test+0x176>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
jmp    126c <main_test+0x14c>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main_test>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%r14d
test   %r15d,%r15d
jle    115c <main_test+0x3c>
mov    %r15d,%ebx
nopl   0x0(%rax)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%ebx
jne    1150 <main_test+0x30>
xor    %edi,%edi
call   1030 <assert@plt>
test   %ebp,%ebp
jle    117c <main_test+0x5c>
mov    %ebp,%ebx
nopl   0x0(%rax)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%ebx
jne    1170 <main_test+0x50>
xor    %edi,%edi
call   1030 <assert@plt>
test   %r14d,%r14d
jle    11bf <main_test+0x9f>
mov    %r14d,%ebx
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%ebx
jne    1190 <main_test+0x70>
xor    %edi,%edi
call   1030 <assert@plt>
test   %r14d,%r14d
jle    11c6 <main_test+0xa6>
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%r14d
jne    11b0 <main_test+0x90>
jmp    11c6 <main_test+0xa6>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %edi,%edi
call   1030 <assert@plt>
test   %ebp,%ebp
jle    11ec <main_test+0xcc>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%ebp
jne    11e0 <main_test+0xc0>
xor    %edi,%edi
call   1030 <assert@plt>
test   %r15d,%r15d
jle    120d <main_test+0xed>
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1030 <assert@plt>
add    $0xffffffff,%r15d
jne    1200 <main_test+0xe0>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main_test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %1
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, i32* %2
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %9
9: ; preds = %13, %0
%10 = load i32, i32* %4
%11 = load i32, i32* %1
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i32, i32* %4
%15 = add nsw i32 %14, 1
store i32 %15, i32* %4
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
store i32 %17, i32* %5
%18 = call i32 @assert(i32 0)
br label %9
19: ; preds = %9
%20 = call i32 @assert(i32 0)
store i32 0, i32* %4
br label %21
21: ; preds = %25, %19
%22 = load i32, i32* %4
%23 = load i32, i32* %2
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %31
25: ; preds = %21
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
%28 = load i32, i32* %5
%29 = add nsw i32 %28, 1
store i32 %29, i32* %5
%30 = call i32 @assert(i32 0)
br label %21
31: ; preds = %21
%32 = call i32 @assert(i32 0)
store i32 0, i32* %4
br label %33
33: ; preds = %37, %31
%34 = load i32, i32* %4
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %43
37: ; preds = %33
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 1
store i32 %39, i32* %4
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
%42 = call i32 @assert(i32 0)
br label %33
43: ; preds = %33
%44 = call i32 @assert(i32 0)
store i32 0, i32* %4
br label %45
45: ; preds = %49, %43
%46 = load i32, i32* %4
%47 = load i32, i32* %3
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, i32* %4
%51 = add nsw i32 %50, 1
store i32 %51, i32* %4
%52 = load i32, i32* %5
%53 = add nsw i32 %52, -1
store i32 %53, i32* %5
%54 = call i32 @assert(i32 0)
br label %45
55: ; preds = %45
%56 = call i32 @assert(i32 0)
store i32 0, i32* %4
br label %57
57: ; preds = %61, %55
%58 = load i32, i32* %4
%59 = load i32, i32* %2
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load i32, i32* %4
%63 = add nsw i32 %62, 1
store i32 %63, i32* %4
%64 = load i32, i32* %5
%65 = add nsw i32 %64, -1
store i32 %65, i32* %5
%66 = call i32 @assert(i32 0)
br label %57
67: ; preds = %57
%68 = call i32 @assert(i32 0)
store i32 0, i32* %4
br label %69
69: ; preds = %73, %67
%70 = load i32, i32* %4
%71 = load i32, i32* %1
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %79
73: ; preds = %69
%74 = load i32, i32* %4
%75 = add nsw i32 %74, 1
store i32 %75, i32* %4
%76 = load i32, i32* %5
%77 = add nsw i32 %76, -1
store i32 %77, i32* %5
%78 = call i32 @assert(i32 0)
br label %69
79: ; preds = %69
%80 = call i32 @assert(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main_test() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %10
5: ; preds = %0, %5
%6 = phi i32 [ %7, %5 ], [ 0, %0 ]
%7 = add nuw nsw i32 %6, 1
%8 = tail call i32 @assert(i32 0)
%9 = icmp eq i32 %7, %1
br i1 %9, label %10, label %5
10: ; preds = %5, %0
%11 = tail call i32 @assert(i32 0)
%12 = icmp sgt i32 %2, 0
br i1 %12, label %13, label %18
13: ; preds = %10, %13
%14 = phi i32 [ %15, %13 ], [ 0, %10 ]
%15 = add nuw nsw i32 %14, 1
%16 = tail call i32 @assert(i32 0)
%17 = icmp eq i32 %15, %2
br i1 %17, label %18, label %13
18: ; preds = %13, %10
%19 = tail call i32 @assert(i32 0)
%20 = icmp sgt i32 %3, 0
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = tail call i32 @assert(i32 0)
br label %35
23: ; preds = %18, %23
%24 = phi i32 [ %25, %23 ], [ 0, %18 ]
%25 = add nuw nsw i32 %24, 1
%26 = tail call i32 @assert(i32 0)
%27 = icmp eq i32 %25, %3
br i1 %27, label %28, label %23
28: ; preds = %23
%29 = tail call i32 @assert(i32 0)
br i1 %20, label %30, label %35
30: ; preds = %28, %30
%31 = phi i32 [ %32, %30 ], [ 0, %28 ]
%32 = add nuw nsw i32 %31, 1
%33 = tail call i32 @assert(i32 0)
%34 = icmp eq i32 %32, %3
br i1 %34, label %35, label %30
35: ; preds = %30, %21, %28
%36 = tail call i32 @assert(i32 0)
br i1 %12, label %37, label %42
37: ; preds = %35, %37
%38 = phi i32 [ %39, %37 ], [ 0, %35 ]
%39 = add nuw nsw i32 %38, 1
%40 = tail call i32 @assert(i32 0)
%41 = icmp eq i32 %39, %2
br i1 %41, label %42, label %37
42: ; preds = %37, %35
%43 = tail call i32 @assert(i32 0)
br i1 %4, label %44, label %49
44: ; preds = %42, %44
%45 = phi i32 [ %46, %44 ], [ 0, %42 ]
%46 = add nuw nsw i32 %45, 1
%47 = tail call i32 @assert(i32 0)
%48 = icmp eq i32 %46, %1
br i1 %48, label %49, label %44
49: ; preds = %44, %42
%50 = tail call i32 @assert(i32 0)
ret i32 0
}