#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*/ __VERIFIER_assert(int);
int /*<<< orphan*/ __VERIFIER_assume(int);
void main() {
  int f11, f12, n1, k1, l1;
  int f21, f22, n2, k2, l2;
  __VERIFIER_assume(f11 == f21);
  __VERIFIER_assume(f12 == f22);
  __VERIFIER_assume(n1 == n2);
  __VERIFIER_assume(k1 == k2);
  __VERIFIER_assume(l1 == l2);
  while (n1 > 0) {
    f11 = f11 + f12;
    f12 = f11 - f12;
    n1--;
  }
  if (f11 > k1) {
    l1 = 1;
  } else {
    l1 = 0;
  }
  while (n2 > 0) {
    f21 = f21 + f22;
    f22 = f21 - f22;
    n2--;
  }
  if (f21 > k2) {
    l2 = 1;
  } else {
    l2 = 0;
  }
  __VERIFIER_assert(l1 == l2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    -0x4(%rbp),%eax
cmp    -0x18(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assume@plt>
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assume@plt>
mov    -0xc(%rbp),%eax
cmp    -0x20(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assume@plt>
mov    -0x10(%rbp),%eax
cmp    -0x24(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assume@plt>
mov    -0x14(%rbp),%eax
cmp    -0x28(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assume@plt>
cmpl   $0x0,-0xc(%rbp)
jle    11b1 <main+0x91>
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1187 <main+0x67>
mov    -0x4(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11c9 <main+0xa9>
movl   $0x1,-0x14(%rbp)
jmp    11d0 <main+0xb0>
movl   $0x0,-0x14(%rbp)
jmp    11d5 <main+0xb5>
cmpl   $0x0,-0x20(%rbp)
jle    11ff <main+0xdf>
mov    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    11d5 <main+0xb5>
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    1217 <main+0xf7>
movl   $0x1,-0x28(%rbp)
jmp    121e <main+0xfe>
movl   $0x0,-0x28(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x28(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1040 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1040 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1040 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1040 <__VERIFIER_assume@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <__VERIFIER_assert@plt>

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

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @__VERIFIER_assume(i32 0)
%2 = tail call i32 @__VERIFIER_assume(i32 0)
%3 = tail call i32 @__VERIFIER_assume(i32 0)
%4 = tail call i32 @__VERIFIER_assume(i32 0)
%5 = tail call i32 @__VERIFIER_assume(i32 0)
%6 = tail call i32 @__VERIFIER_assert(i32 1)
ret void
}