#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 EXIT_SUCCESS;
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdout;
int main() {
  setbuf(stdout, NULL);
  char z1;
  z1 = 'A';
  putchar('-');
  putchar(z1);
  putchar('-');
  putchar(171);
  putchar('-');
  putchar('b');
  putchar('-');
  putchar(145);
  putchar('-');
  putchar(210);
  putchar('-');
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <setbuf@plt>
movb   $0x41,-0x5(%rbp)
mov    $0x2d,%edi
call   1030 <putchar@plt>
movsbl -0x5(%rbp),%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffffab,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffff91,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffffd2,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <setbuf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffffab,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffff91,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xffffffd2,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = load i32, i32* @stdout
%4 = call i32 @setbuf(i32 %3, i32* null)
store i8 65, i8* %2
%5 = call i32 @putchar(i8 signext 45)
%6 = load i8, i8* %2
%7 = call i32 @putchar(i8 signext %6)
%8 = call i32 @putchar(i8 signext 45)
%9 = call i32 @putchar(i8 signext -85)
%10 = call i32 @putchar(i8 signext 45)
%11 = call i32 @putchar(i8 signext 98)
%12 = call i32 @putchar(i8 signext 45)
%13 = call i32 @putchar(i8 signext -111)
%14 = call i32 @putchar(i8 signext 45)
%15 = call i32 @putchar(i8 signext -46)
%16 = call i32 @putchar(i8 signext 45)
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}

LLVM IR (-O2):
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @setbuf(i32 %1, i32* null)
%3 = tail call i32 @putchar(i8 signext 45)
%4 = tail call i32 @putchar(i8 signext 65)
%5 = tail call i32 @putchar(i8 signext 45)
%6 = tail call i32 @putchar(i8 signext -85)
%7 = tail call i32 @putchar(i8 signext 45)
%8 = tail call i32 @putchar(i8 signext 98)
%9 = tail call i32 @putchar(i8 signext 45)
%10 = tail call i32 @putchar(i8 signext -111)
%11 = tail call i32 @putchar(i8 signext 45)
%12 = tail call i32 @putchar(i8 signext -46)
%13 = tail call i32 @putchar(i8 signext 45)
%14 = load i32, i32* @EXIT_SUCCESS
ret i32 %14
}