#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*/ LC_ALL;
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ one_char_buffer_ioctl();
int /*<<< orphan*/ printf(char *);
char *setlocale(int /*<<< orphan*/, char *);
scalar_t__ strcmp(char *, char const *);
int main() {
  one_char_buffer_ioctl();
  const char DE[] = "de_DE.utf8";
  char *locale = setlocale(LC_ALL, "");
  if (strcmp(locale, DE)) {
    printf("Dr\u00FCcken Sie eine beliebige Taste . . . ");
  } else {
    printf("Press any key to continue . . . ");
  }
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <one_char_buffer_ioctl@plt>
mov    0xe93(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xe90(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xe88(%rip),%al
mov    %al,-0x5(%rbp)
mov    0x2e54(%rip),%rax
mov    (%rax),%edi
lea    0xe9e(%rip),%rsi
call   1070 <setlocale@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0xf(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11c6 <main+0x76>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    11d2 <main+0x82>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
xor    %eax,%eax
call   1060 <one_char_buffer_ioctl@plt>
movabs $0x74752e45445f6564,%rax
2e 75 74
mov    %rax,0x8(%rsp)
movl   $0x386674,0xf(%rsp)
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
lea    0xeb1(%rip),%rsi
call   1070 <setlocale@plt>
lea    0x8(%rsp),%rsi
mov    %rax,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xe96(%rip),%rax
lea    0xe66(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.DE = [11 x i8] c"de_DE.utf8\00"
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [41 x i8] c"Dr\C3\BCcken Sie eine beliebige Taste . . . \00"
@.str.2 = [33 x i8] c"Press any key to continue . . . \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca i8*
store i32 0, i32* %1
%4 = call i32 (...) @one_char_buffer_ioctl()
%5 = bitcast [11 x i8]* %2 to i8*
%6 = load i32, i32* @LC_ALL
%7 = call i8* @setlocale(i32 %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
store i8* %7, i8** %3
%8 = load i8*, i8** %3
%9 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%10 = call i64 @strcmp(i8* %8, i8* %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %16
14: ; preds = %0
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %12
%17 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@__const.main.DE = [11 x i8] c"de_DE.utf8\00"
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [41 x i8] c"Dr\C3\BCcken Sie eine beliebige Taste . . . \00"
@.str.2 = [33 x i8] c"Press any key to continue . . . \00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = tail call i32 (...) @one_char_buffer_ioctl()
%3 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%4 = load i32, i32* @LC_ALL
%5 = tail call i8* @setlocale(i32 %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = call i64 @strcmp(i8* %5, i8* %3)
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0)
%9 = call i32 @printf(i8* dereferenceable(1) %8)
%10 = call i32 (...) @getchar()
ret i32 0
}