#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*/ assert(int);
int main() {
  int a = 1;
  int b = 0;
  assert((a = 2) || (b = 1));
  assert(a == 2);
  assert(b == 0);
  assert((a = 0) || (b = 1));
  assert(a == 0);
  assert(b == 1);
  assert((a = 1) || (b = 0));
  assert(a == 1);
  assert(b == 1);
  assert(!((a = 0) || (b = 0)));
  assert(a == 0);
  assert(b == 0);
  a = 1;
  b = 0;
  assert((a = 2) && (b = 1));
  assert(a == 2);
  assert(b == 1);
  assert(!((a = 0) && (b = 2)));
  assert(a == 0);
  assert(b == 1);
  assert(!((a = 2) && (b = 0)));
  assert(a == 2);
  assert(b == 0);
  b = 1;
  assert(!((a = 0) && (b = 0)));
  assert(a == 0);
  assert(b == 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x2,-0x8(%rbp)
mov    $0x1,%al
test   $0x1,%al
mov    %al,-0xd(%rbp)
jne    114d <main+0x3d>
movl   $0x1,-0xc(%rbp)
mov    $0x1,%al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x8(%rbp)
mov    $0x1,%al
xor    %ecx,%ecx
test   $0x1,%cl
mov    %al,-0xe(%rbp)
jne    119f <main+0x8f>
movl   $0x1,-0xc(%rbp)
mov    $0x1,%al
mov    %al,-0xe(%rbp)
mov    -0xe(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1,-0x8(%rbp)
mov    $0x1,%al
test   $0x1,%al
mov    %al,-0xf(%rbp)
jne    11ee <main+0xde>
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
mov    %al,-0xf(%rbp)
mov    -0xf(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x8(%rbp)
mov    $0x1,%al
xor    %ecx,%ecx
test   $0x1,%cl
mov    %al,-0x10(%rbp)
jne    1240 <main+0x130>
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
mov    %al,-0x10(%rbp)
mov    -0x10(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x2,-0x8(%rbp)
xor    %eax,%eax
mov    $0x1,%cl
test   $0x1,%cl
mov    %al,-0x11(%rbp)
jne    129b <main+0x18b>
jmp    12a7 <main+0x197>
movl   $0x1,-0xc(%rbp)
mov    $0x1,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x8(%rbp)
xor    %eax,%eax
test   $0x1,%al
mov    %al,-0x12(%rbp)
jne    12ef <main+0x1df>
jmp    12fb <main+0x1eb>
movl   $0x2,-0xc(%rbp)
mov    $0x1,%al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x2,-0x8(%rbp)
xor    %eax,%eax
mov    $0x1,%cl
test   $0x1,%cl
mov    %al,-0x13(%rbp)
jne    1348 <main+0x238>
jmp    1354 <main+0x244>
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
xor    %eax,%eax
test   $0x1,%al
mov    %al,-0x14(%rbp)
jne    13a5 <main+0x295>
jmp    13b1 <main+0x2a1>
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
mov    %al,-0x14(%rbp)
mov    -0x14(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 0, i32* %3
store i32 2, i32* %2
br i1 true, label %5, label %4
4: ; preds = %0
store i32 1, i32* %3
br label %5
5: ; preds = %4, %0
%6 = phi i1 [ true, %0 ], [ true, %4 ]
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 2
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
store i32 0, i32* %2
br i1 false, label %18, label %17
17: ; preds = %5
store i32 1, i32* %3
br label %18
18: ; preds = %17, %5
%19 = phi i1 [ true, %5 ], [ true, %17 ]
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load i32, i32* %2
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = load i32, i32* %3
%27 = icmp eq i32 %26, 1
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
store i32 1, i32* %2
br i1 true, label %31, label %30
30: ; preds = %18
store i32 0, i32* %3
br label %31
31: ; preds = %30, %18
%32 = phi i1 [ true, %18 ], [ false, %30 ]
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load i32, i32* %2
%36 = icmp eq i32 %35, 1
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = load i32, i32* %3
%40 = icmp eq i32 %39, 1
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
store i32 0, i32* %2
br i1 false, label %44, label %43
43: ; preds = %31
store i32 0, i32* %3
br label %44
44: ; preds = %43, %31
%45 = phi i1 [ true, %31 ], [ false, %43 ]
%46 = xor i1 %45, true
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = load i32, i32* %2
%50 = icmp eq i32 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = load i32, i32* %3
%54 = icmp eq i32 %53, 0
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
store i32 1, i32* %2
store i32 0, i32* %3
store i32 2, i32* %2
br i1 true, label %57, label %58
57: ; preds = %44
store i32 1, i32* %3
br label %58
58: ; preds = %57, %44
%59 = phi i1 [ false, %44 ], [ true, %57 ]
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 %60)
%62 = load i32, i32* %2
%63 = icmp eq i32 %62, 2
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i32, i32* %3
%67 = icmp eq i32 %66, 1
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
store i32 0, i32* %2
br i1 false, label %70, label %71
70: ; preds = %58
store i32 2, i32* %3
br label %71
71: ; preds = %70, %58
%72 = phi i1 [ false, %58 ], [ true, %70 ]
%73 = xor i1 %72, true
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = load i32, i32* %2
%77 = icmp eq i32 %76, 0
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = load i32, i32* %3
%81 = icmp eq i32 %80, 1
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
store i32 2, i32* %2
br i1 true, label %84, label %85
84: ; preds = %71
store i32 0, i32* %3
br label %85
85: ; preds = %84, %71
%86 = phi i1 [ false, %71 ], [ false, %84 ]
%87 = xor i1 %86, true
%88 = zext i1 %87 to i32
%89 = call i32 @assert(i32 %88)
%90 = load i32, i32* %2
%91 = icmp eq i32 %90, 2
%92 = zext i1 %91 to i32
%93 = call i32 @assert(i32 %92)
%94 = load i32, i32* %3
%95 = icmp eq i32 %94, 0
%96 = zext i1 %95 to i32
%97 = call i32 @assert(i32 %96)
store i32 1, i32* %3
store i32 0, i32* %2
br i1 false, label %98, label %99
98: ; preds = %85
store i32 0, i32* %3
br label %99
99: ; preds = %98, %85
%100 = phi i1 [ false, %85 ], [ false, %98 ]
%101 = xor i1 %100, true
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 %102)
%104 = load i32, i32* %2
%105 = icmp eq i32 %104, 0
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = load i32, i32* %3
%109 = icmp eq i32 %108, 1
%110 = zext i1 %109 to i32
%111 = call i32 @assert(i32 %110)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @assert(i32 1)
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @assert(i32 1)
%5 = tail call i32 @assert(i32 1)
%6 = tail call i32 @assert(i32 1)
%7 = tail call i32 @assert(i32 1)
%8 = tail call i32 @assert(i32 1)
%9 = tail call i32 @assert(i32 1)
%10 = tail call i32 @assert(i32 1)
%11 = tail call i32 @assert(i32 1)
%12 = tail call i32 @assert(i32 1)
%13 = tail call i32 @assert(i32 1)
%14 = tail call i32 @assert(i32 1)
%15 = tail call i32 @assert(i32 1)
%16 = tail call i32 @assert(i32 1)
%17 = tail call i32 @assert(i32 1)
%18 = tail call i32 @assert(i32 1)
%19 = tail call i32 @assert(i32 1)
%20 = tail call i32 @assert(i32 1)
%21 = tail call i32 @assert(i32 1)
%22 = tail call i32 @assert(i32 1)
%23 = tail call i32 @assert(i32 1)
%24 = tail call i32 @assert(i32 1)
ret i32 0
}