#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 */
char prompt_bread();
char prompt_double();
char prompt_manual();
int /*<<< orphan*/ sweet_bread_main(char, char);
int /*<<< orphan*/ white_bread_main(char, char);
int main(void) {
  char bread_type = '\0', double_size = '\0', manual_bake = '\0';
  bread_type = prompt_bread();
  double_size = prompt_double();
  manual_bake = prompt_manual();
  if (bread_type == 'w') {
    white_bread_main(double_size, manual_bake);
  } else {
    sweet_bread_main(double_size, manual_bake);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
movb   $0x0,-0x6(%rbp)
movb   $0x0,-0x7(%rbp)
mov    $0x0,%al
call   1030 <prompt_bread@plt>
mov    %al,-0x5(%rbp)
mov    $0x0,%al
call   1070 <prompt_double@plt>
mov    %al,-0x6(%rbp)
mov    $0x0,%al
call   1050 <prompt_manual@plt>
mov    %al,-0x7(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x77,%eax
jne    11aa <main+0x5a>
mov    -0x6(%rbp),%al
movsbl %al,%edi
movsbl -0x7(%rbp),%esi
call   1040 <white_bread_main@plt>
jmp    11b9 <main+0x69>
mov    -0x6(%rbp),%al
movsbl %al,%edi
movsbl -0x7(%rbp),%esi
call   1060 <sweet_bread_main@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <prompt_bread@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <prompt_double@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <prompt_manual@plt>
movsbl %bpl,%edi
movsbl %al,%esi
cmp    $0x77,%bl
jne    117f <main+0x2f>
call   1040 <white_bread_main@plt>
jmp    1184 <main+0x34>
call   1060 <sweet_bread_main@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i32 0, i32* %1
store i8 0, i8* %2
store i8 0, i8* %3
store i8 0, i8* %4
%5 = call signext i8 (...) @prompt_bread()
store i8 %5, i8* %2
%6 = call signext i8 (...) @prompt_double()
store i8 %6, i8* %3
%7 = call signext i8 (...) @prompt_manual()
store i8 %7, i8* %4
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 119
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i8, i8* %3
%13 = load i8, i8* %4
%14 = call i32 @white_bread_main(i8 signext %12, i8 signext %13)
br label %19
15: ; preds = %0
%16 = load i8, i8* %3
%17 = load i8, i8* %4
%18 = call i32 @sweet_bread_main(i8 signext %16, i8 signext %17)
br label %19
19: ; preds = %15, %11
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call signext i8 (...) @prompt_bread()
%2 = tail call signext i8 (...) @prompt_double()
%3 = tail call signext i8 (...) @prompt_manual()
%4 = icmp eq i8 %1, 119
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @white_bread_main(i8 signext %2, i8 signext %3)
br label %9
7: ; preds = %0
%8 = tail call i32 @sweet_bread_main(i8 signext %2, i8 signext %3)
br label %9
9: ; preds = %7, %5
ret i32 0
}