#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*/ __fail(char *, char *, char *, int);
void testLeftRightXor(void) {
  volatile int left, right;
  left = 0x123;
  right = 0x8101;
  if (left ^ right) {
  } else {
    __fail("Failure", "\"Failure\"",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/atsidaev/sdcc-z80-gas/refs/heads/master/"
           "cpctelera/tools/sdcc-3.6.8-r9946/src/support/regression/tests/"
           "bug-460444.c",
           57);
  }
  if (left & right) {
  } else {
    __fail("Failure", "\"Failure\"",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/atsidaev/sdcc-z80-gas/refs/heads/master/"
           "cpctelera/tools/sdcc-3.6.8-r9946/src/support/regression/tests/"
           "bug-460444.c",
           64);
  }
  if (left | right) {
  } else {
    __fail("Failure", "\"Failure\"",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/atsidaev/sdcc-z80-gas/refs/heads/master/"
           "cpctelera/tools/sdcc-3.6.8-r9946/src/support/regression/tests/"
           "bug-460444.c",
           71);
  }
}


x86 assembly (clang, -O0):
<testLeftRightXor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x123,-0x4(%rbp)
movl   $0x8101,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
xor    %ecx,%eax
cmp    $0x0,%eax
je     113c <testLeftRightXor+0x2c>
jmp    115b <testLeftRightXor+0x4b>
lea    0xebd(%rip),%rdi
lea    0xebe(%rip),%rsi
lea    0xec1(%rip),%rdx
mov    $0x39,%ecx
call   1030 <__fail@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1171 <testLeftRightXor+0x61>
jmp    1190 <testLeftRightXor+0x80>
lea    0xe88(%rip),%rdi
lea    0xe89(%rip),%rsi
lea    0xe8c(%rip),%rdx
mov    $0x40,%ecx
call   1030 <__fail@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
or     %ecx,%eax
cmp    $0x0,%eax
je     11a6 <testLeftRightXor+0x96>
jmp    11c5 <testLeftRightXor+0xb5>
lea    0xe53(%rip),%rdi
lea    0xe54(%rip),%rsi
lea    0xe57(%rip),%rdx
mov    $0x47,%ecx
call   1030 <__fail@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testLeftRightXor>:
push   %rax
movl   $0x123,0x4(%rsp)
movl   $0x8101,(%rsp)
mov    0x4(%rsp),%eax
cmp    (%rsp),%eax
jne    1148 <testLeftRightXor+0x38>
lea    0xed0(%rip),%rdi
lea    0xed1(%rip),%rsi
lea    0xed4(%rip),%rdx
mov    $0x39,%ecx
call   1030 <__fail@plt>
mov    0x4(%rsp),%eax
and    (%rsp),%eax
jne    1170 <testLeftRightXor+0x60>
lea    0xea8(%rip),%rdi
lea    0xea9(%rip),%rsi
lea    0xeac(%rip),%rdx
mov    $0x40,%ecx
call   1030 <__fail@plt>
mov    0x4(%rsp),%eax
or     (%rsp),%eax
je     117b <testLeftRightXor+0x6b>
pop    %rax
ret
lea    0xe7e(%rip),%rdi
lea    0xe7f(%rip),%rsi
lea    0xe82(%rip),%rdx
mov    $0x47,%ecx
pop    %rax
jmp    1030 <__fail@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Failure\00"
@.str.1 = [10 x i8] c"\22Failure\22\00"
@.str.2 = [205 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/atsidaev/sdcc-z80-gas/refs/heads/master/cpctelera/tools/sdcc-3.6.8-r9946/src/support/regression/tests/bug-460444.c\00"
define void @testLeftRightXor() {
%1 = alloca i32
%2 = alloca i32
store volatile i32 291, i32* %1
store volatile i32 33025, i32* %2
%3 = load volatile i32, i32* %1
%4 = load volatile i32, i32* %2
%5 = xor i32 %3, %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
br label %10
8: ; preds = %0
%9 = call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 57)
br label %10
10: ; preds = %8, %7
%11 = load volatile i32, i32* %1
%12 = load volatile i32, i32* %2
%13 = and i32 %11, %12
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %18
16: ; preds = %10
%17 = call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 64)
br label %18
18: ; preds = %16, %15
%19 = load volatile i32, i32* %1
%20 = load volatile i32, i32* %2
%21 = or i32 %19, %20
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
br label %26
24: ; preds = %18
%25 = call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 71)
br label %26
26: ; preds = %24, %23
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Failure\00"
@.str.1 = [10 x i8] c"\22Failure\22\00"
@.str.2 = [205 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/atsidaev/sdcc-z80-gas/refs/heads/master/cpctelera/tools/sdcc-3.6.8-r9946/src/support/regression/tests/bug-460444.c\00"
define void @testLeftRightXor() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
store volatile i32 291, i32* %1
store volatile i32 33025, i32* %2
%5 = load volatile i32, i32* %1
%6 = load volatile i32, i32* %2
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = tail call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 57)
br label %10
10: ; preds = %0, %8
%11 = load volatile i32, i32* %1
%12 = load volatile i32, i32* %2
%13 = and i32 %12, %11
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = tail call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 64)
br label %17
17: ; preds = %10, %15
%18 = load volatile i32, i32* %1
%19 = load volatile i32, i32* %2
%20 = or i32 %19, %18
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = tail call i32 @__fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.2, i64 0, i64 0), i32 71)
br label %24
24: ; preds = %17, %22
ret void
}