#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);
scalar_t__ __VERIFIER_nondet_int();
void main() {
  int j, k, l, t;
  __VERIFIER_assume(j != k);
  __VERIFIER_assume(j != l);
  __VERIFIER_assume(k != l);
  while (__VERIFIER_nondet_int()) {
    t = j;
    j = k;
    k = l;
    l = t;
  }
  __VERIFIER_assert(j != k);
  __VERIFIER_assert(j != l);
  __VERIFIER_assert(k != l);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     119f <main+0x6f>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1171 <main+0x41>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1050 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1050 <__VERIFIER_assume@plt>
xor    %edi,%edi
call   1050 <__VERIFIER_assume@plt>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %rax,%rax
jne    1150 <main+0x20>
xor    %edi,%edi
call   1040 <__VERIFIER_assert@plt>
xor    %edi,%edi
call   1040 <__VERIFIER_assert@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <__VERIFIER_assert@plt>

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = icmp ne i32 %5, %6
%8 = zext i1 %7 to i32
%9 = call i32 @__VERIFIER_assume(i32 %8)
%10 = load i32, i32* %1
%11 = load i32, i32* %3
%12 = icmp ne i32 %10, %11
%13 = zext i1 %12 to i32
%14 = call i32 @__VERIFIER_assume(i32 %13)
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = icmp ne i32 %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @__VERIFIER_assume(i32 %18)
br label %20
20: ; preds = %23, %0
%21 = call i64 (...) @__VERIFIER_nondet_int()
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, i32* %1
store i32 %24, i32* %4
%25 = load i32, i32* %2
store i32 %25, i32* %1
%26 = load i32, i32* %3
store i32 %26, i32* %2
%27 = load i32, i32* %4
store i32 %27, i32* %3
br label %20
28: ; preds = %20
%29 = load i32, i32* %1
%30 = load i32, i32* %2
%31 = icmp ne i32 %29, %30
%32 = zext i1 %31 to i32
%33 = call i32 @__VERIFIER_assert(i32 %32)
%34 = load i32, i32* %1
%35 = load i32, i32* %3
%36 = icmp ne i32 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @__VERIFIER_assert(i32 %37)
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = icmp ne i32 %39, %40
%42 = zext i1 %41 to i32
%43 = call i32 @__VERIFIER_assert(i32 %42)
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)
br label %4
4: ; preds = %4, %0
%5 = tail call i64 (...) @__VERIFIER_nondet_int()
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %4
7: ; preds = %4
%8 = tail call i32 @__VERIFIER_assert(i32 0)
%9 = tail call i32 @__VERIFIER_assert(i32 0)
%10 = tail call i32 @__VERIFIER_assert(i32 0)
ret void
}