#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);
scalar_t__ __VERIFIER_nondet();
void rotate(float x, float y) {
  while (__VERIFIER_nondet()) {
    float xp, yp;
    xp = 0.68 * (x - y);
    yp = 0.68 * (x + y);
    x = xp;
    y = yp;
  }
  __VERIFIER_assert(-2 <= x && x <= 2);
  __VERIFIER_assert(-2 <= y && y <= 2);
}


x86 assembly (clang, -O0):
<rotate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet@plt>
cmp    $0x0,%rax
je     11a2 <rotate+0x82>
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeaf(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe8c(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1132 <rotate+0x12>
movss  -0x4(%rbp),%xmm0
xor    %eax,%eax
movss  0xe4f(%rip),%xmm1
ucomiss %xmm1,%xmm0
mov    %al,-0x11(%rbp)
jb     11cf <rotate+0xaf>
movss  0xe3f(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
setae  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
movss  -0x8(%rbp),%xmm0
xor    %eax,%eax
movss  0xe15(%rip),%xmm1
ucomiss %xmm1,%xmm0
mov    %al,-0x12(%rbp)
jb     1209 <rotate+0xe9>
movss  0xe05(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
setae  %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate>:
push   %rax
movss  %xmm1,0x4(%rsp)
movss  %xmm0,(%rsp)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet@plt>
test   %rax,%rax
je     1195 <rotate+0x75>
movss  (%rsp),%xmm2
nopl   (%rax)
movaps %xmm2,%xmm0
movss  0x4(%rsp),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea7(%rip),%xmm3
mulsd  %xmm3,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rsp)
addss  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet@plt>
movss  (%rsp),%xmm0
movaps %xmm0,%xmm2
test   %rax,%rax
jne    1140 <rotate+0x20>
jmp    119a <rotate+0x7a>
movss  (%rsp),%xmm0
ucomiss 0xe67(%rip),%xmm0
setae  %al
movss  0xe60(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1040 <__VERIFIER_assert@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe3f(%rip),%xmm0
setae  %al
movss  0xe38(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %cl
and    %al,%cl
movzbl %cl,%edi
pop    %rax
jmp    1040 <__VERIFIER_assert@plt>

LLVM IR (-O0):
define void @rotate(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %3
store float %1, float* %4
br label %7
7: ; preds = %10, %2
%8 = call i64 (...) @__VERIFIER_nondet()
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load float, float* %3
%12 = load float, float* %4
%13 = fsub float %11, %12
%14 = fpext float %13 to double
%15 = fmul double 6.800000e-01, %14
%16 = fptrunc double %15 to float
store float %16, float* %5
%17 = load float, float* %3
%18 = load float, float* %4
%19 = fadd float %17, %18
%20 = fpext float %19 to double
%21 = fmul double 6.800000e-01, %20
%22 = fptrunc double %21 to float
store float %22, float* %6
%23 = load float, float* %5
store float %23, float* %3
%24 = load float, float* %6
store float %24, float* %4
br label %7
25: ; preds = %7
%26 = load float, float* %3
%27 = fcmp ole float -2.000000e+00, %26
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load float, float* %3
%30 = fcmp ole float %29, 2.000000e+00
br label %31
31: ; preds = %28, %25
%32 = phi i1 [ false, %25 ], [ %30, %28 ]
%33 = zext i1 %32 to i32
%34 = call i32 @__VERIFIER_assert(i32 %33)
%35 = load float, float* %4
%36 = fcmp ole float -2.000000e+00, %35
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load float, float* %4
%39 = fcmp ole float %38, 2.000000e+00
br label %40
40: ; preds = %37, %31
%41 = phi i1 [ false, %31 ], [ %39, %37 ]
%42 = zext i1 %41 to i32
%43 = call i32 @__VERIFIER_assert(i32 %42)
ret void
}

LLVM IR (-O2):
define void @rotate(float %0, float %1) {
%3 = tail call i64 (...) @__VERIFIER_nondet()
%4 = icmp eq i64 %3, 0
br i1 %4, label %18, label %5
5: ; preds = %2, %5
%6 = phi float [ %11, %5 ], [ %0, %2 ]
%7 = phi float [ %15, %5 ], [ %1, %2 ]
%8 = fsub float %6, %7
%9 = fpext float %8 to double
%10 = fmul double %9, 6.800000e-01
%11 = fptrunc double %10 to float
%12 = fadd float %7, %6
%13 = fpext float %12 to double
%14 = fmul double %13, 6.800000e-01
%15 = fptrunc double %14 to float
%16 = tail call i64 (...) @__VERIFIER_nondet()
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %5
18: ; preds = %5, %2
%19 = phi float [ %1, %2 ], [ %15, %5 ]
%20 = phi float [ %0, %2 ], [ %11, %5 ]
%21 = fcmp oge float %20, -2.000000e+00
%22 = fcmp ole float %20, 2.000000e+00
%23 = and i1 %21, %22
%24 = zext i1 %23 to i32
%25 = tail call i32 @__VERIFIER_assert(i32 %24)
%26 = fcmp oge float %19, -2.000000e+00
%27 = fcmp ole float %19, 2.000000e+00
%28 = and i1 %26, %27
%29 = zext i1 %28 to i32
%30 = tail call i32 @__VERIFIER_assert(i32 %29)
ret void
}