#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*/ __goblint_assert(int);
int /*<<< orphan*/ __goblint_check(int);
int /*<<< orphan*/ __goblint_commit(int);
int /*<<< orphan*/ __goblint_unknown(int *);
int main() {
  int i, j, k, n;
  n = 0;
  __goblint_assert(n == 0);
  __goblint_unknown(&i);
  __goblint_assert(i == 8);
  __goblint_assert(i == 8);
  j = 3;
  __goblint_check(j == 3);
  __goblint_unknown(&j);
  __goblint_check(j == 6);
  __goblint_check(j == 6);
  __goblint_unknown(&k);
  __goblint_commit(k == 4);
  __goblint_check(k == 4);
  __goblint_unknown(&k);
  __goblint_commit(k + 1 == n);
  __goblint_commit(n == 5);
  __goblint_assert(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__goblint_assert@plt>
lea    -0x8(%rbp),%rdi
call   1060 <__goblint_unknown@plt>
cmpl   $0x8,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__goblint_assert@plt>
cmpl   $0x8,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__goblint_assert@plt>
movl   $0x3,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__goblint_check@plt>
lea    -0xc(%rbp),%rdi
call   1060 <__goblint_unknown@plt>
cmpl   $0x6,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__goblint_check@plt>
cmpl   $0x6,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__goblint_check@plt>
lea    -0x10(%rbp),%rdi
call   1060 <__goblint_unknown@plt>
cmpl   $0x4,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__goblint_commit@plt>
cmpl   $0x4,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__goblint_check@plt>
lea    -0x10(%rbp),%rdi
call   1060 <__goblint_unknown@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
cmp    -0x14(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__goblint_commit@plt>
cmpl   $0x5,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__goblint_commit@plt>
xor    %edi,%edi
call   1030 <__goblint_assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    $0x1,%edi
call   1030 <__goblint_assert@plt>
lea    0xc(%rsp),%rdi
call   1060 <__goblint_unknown@plt>
xor    %edi,%edi
cmpl   $0x8,0xc(%rsp)
sete   %dil
call   1030 <__goblint_assert@plt>
xor    %edi,%edi
cmpl   $0x8,0xc(%rsp)
sete   %dil
call   1030 <__goblint_assert@plt>
movl   $0x3,0x8(%rsp)
mov    $0x1,%edi
call   1050 <__goblint_check@plt>
lea    0x8(%rsp),%rdi
call   1060 <__goblint_unknown@plt>
xor    %edi,%edi
cmpl   $0x6,0x8(%rsp)
sete   %dil
call   1050 <__goblint_check@plt>
xor    %edi,%edi
cmpl   $0x6,0x8(%rsp)
sete   %dil
call   1050 <__goblint_check@plt>
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <__goblint_unknown@plt>
xor    %edi,%edi
cmpl   $0x4,0x4(%rsp)
sete   %dil
call   1040 <__goblint_commit@plt>
xor    %edi,%edi
cmpl   $0x4,0x4(%rsp)
sete   %dil
call   1050 <__goblint_check@plt>
mov    %rbx,%rdi
call   1060 <__goblint_unknown@plt>
xor    %edi,%edi
cmpl   $0xffffffff,0x4(%rsp)
sete   %dil
call   1040 <__goblint_commit@plt>
xor    %edi,%edi
call   1040 <__goblint_commit@plt>
xor    %edi,%edi
call   1030 <__goblint_assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
%6 = load i32, i32* %5
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @__goblint_assert(i32 %8)
%10 = call i32 @__goblint_unknown(i32* %2)
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 8
%13 = zext i1 %12 to i32
%14 = call i32 @__goblint_assert(i32 %13)
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 8
%17 = zext i1 %16 to i32
%18 = call i32 @__goblint_assert(i32 %17)
store i32 3, i32* %3
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 3
%21 = zext i1 %20 to i32
%22 = call i32 @__goblint_check(i32 %21)
%23 = call i32 @__goblint_unknown(i32* %3)
%24 = load i32, i32* %3
%25 = icmp eq i32 %24, 6
%26 = zext i1 %25 to i32
%27 = call i32 @__goblint_check(i32 %26)
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 6
%30 = zext i1 %29 to i32
%31 = call i32 @__goblint_check(i32 %30)
%32 = call i32 @__goblint_unknown(i32* %4)
%33 = load i32, i32* %4
%34 = icmp eq i32 %33, 4
%35 = zext i1 %34 to i32
%36 = call i32 @__goblint_commit(i32 %35)
%37 = load i32, i32* %4
%38 = icmp eq i32 %37, 4
%39 = zext i1 %38 to i32
%40 = call i32 @__goblint_check(i32 %39)
%41 = call i32 @__goblint_unknown(i32* %4)
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
%44 = load i32, i32* %5
%45 = icmp eq i32 %43, %44
%46 = zext i1 %45 to i32
%47 = call i32 @__goblint_commit(i32 %46)
%48 = load i32, i32* %5
%49 = icmp eq i32 %48, 5
%50 = zext i1 %49 to i32
%51 = call i32 @__goblint_commit(i32 %50)
%52 = call i32 @__goblint_assert(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @__goblint_assert(i32 1)
%8 = call i32 @__goblint_unknown(i32* %1)
%9 = load i32, i32* %1
%10 = icmp eq i32 %9, 8
%11 = zext i1 %10 to i32
%12 = call i32 @__goblint_assert(i32 %11)
%13 = load i32, i32* %1
%14 = icmp eq i32 %13, 8
%15 = zext i1 %14 to i32
%16 = call i32 @__goblint_assert(i32 %15)
store i32 3, i32* %2
%17 = call i32 @__goblint_check(i32 1)
%18 = call i32 @__goblint_unknown(i32* %2)
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 6
%21 = zext i1 %20 to i32
%22 = call i32 @__goblint_check(i32 %21)
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, 6
%25 = zext i1 %24 to i32
%26 = call i32 @__goblint_check(i32 %25)
%27 = call i32 @__goblint_unknown(i32* %3)
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 4
%30 = zext i1 %29 to i32
%31 = call i32 @__goblint_commit(i32 %30)
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 4
%34 = zext i1 %33 to i32
%35 = call i32 @__goblint_check(i32 %34)
%36 = call i32 @__goblint_unknown(i32* %3)
%37 = load i32, i32* %3
%38 = icmp eq i32 %37, -1
%39 = zext i1 %38 to i32
%40 = call i32 @__goblint_commit(i32 %39)
%41 = call i32 @__goblint_commit(i32 0)
%42 = call i32 @__goblint_assert(i32 0)
ret i32 0
}