#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*/ printf(char *, int, char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  int diff = a - b;
  if (a < b)
    printf("Dr. Chaz will have %d %s of chicken left over!", -diff,
           diff == -1 ? "piece" : "pieces");
  else
    printf("Dr. Chaz needs %d more %s of chicken!", diff,
           diff == 1 ? "piece" : "pieces");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1186 <main+0x66>
xor    %esi,%esi
sub    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xed4(%rip),%rdx
lea    0xec7(%rip),%rax
cmp    $0xffffffff,%ecx
cmove  %rax,%rdx
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x8d>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xea8(%rip),%rdx
lea    0xe9b(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
sub    (%rsp),%esi
jge    1162 <main+0x42>
mov    %esi,%eax
neg    %eax
cmp    $0xffffffff,%esi
lea    0xee9(%rip),%rcx
lea    0xee8(%rip),%rdx
cmove  %rcx,%rdx
lea    0xea8(%rip),%rdi
mov    %eax,%esi
jmp    117e <main+0x5e>
cmp    $0x1,%esi
lea    0xec9(%rip),%rax
lea    0xec8(%rip),%rdx
cmove  %rax,%rdx
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [47 x i8] c"Dr. Chaz will have %d %s of chicken left over!\00"
@.str.2 = [6 x i8] c"piece\00"
@.str.3 = [7 x i8] c"pieces\00"
@.str.4 = [38 x i8] c"Dr. Chaz needs %d more %s of chicken!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = sub nsw i32 %6, %7
store i32 %8, i32* %4
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %0
%13 = load i32, i32* %4
%14 = sub nsw i32 0, %13
%15 = load i32, i32* %4
%16 = icmp eq i32 %15, -1
%17 = zext i1 %16 to i64
%18 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%19 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 %14, i8* %18)
br label %27
20: ; preds = %0
%21 = load i32, i32* %4
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 1
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%26 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %21, i8* %25)
br label %27
27: ; preds = %20, %12
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [47 x i8] c"Dr. Chaz will have %d %s of chicken left over!\00"
@.str.2 = [6 x i8] c"piece\00"
@.str.3 = [7 x i8] c"pieces\00"
@.str.4 = [38 x i8] c"Dr. Chaz needs %d more %s of chicken!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = sub nsw i32 %6, %7
%9 = icmp slt i32 %6, %7
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = sub nsw i32 0, %8
%12 = icmp eq i32 %8, -1
%13 = select i1 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%14 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 %11, i8* %13)
br label %19
15: ; preds = %0
%16 = icmp eq i32 %8, 1
%17 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%18 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %8, i8* %17)
br label %19
19: ; preds = %15, %10
ret i32 0
}