#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*/ MON_1;
int /*<<< orphan*/ MON_10;
int /*<<< orphan*/ MON_11;
int /*<<< orphan*/ MON_12;
int /*<<< orphan*/ MON_2;
int /*<<< orphan*/ MON_3;
int /*<<< orphan*/ MON_4;
int /*<<< orphan*/ MON_5;
int /*<<< orphan*/ MON_6;
int /*<<< orphan*/ MON_7;
int /*<<< orphan*/ MON_8;
int /*<<< orphan*/ MON_9;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
char *nl_langinfo(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int main() {
  setlocale(LC_ALL, "");
  printf("%s\n", nl_langinfo(MON_1));
  printf("%s\n", nl_langinfo(MON_2));
  printf("%s\n", nl_langinfo(MON_3));
  printf("%s\n", nl_langinfo(MON_4));
  printf("%s\n", nl_langinfo(MON_5));
  printf("%s\n", nl_langinfo(MON_6));
  printf("%s\n", nl_langinfo(MON_7));
  printf("%s\n", nl_langinfo(MON_8));
  printf("%s\n", nl_langinfo(MON_9));
  printf("%s\n", nl_langinfo(MON_10));
  printf("%s\n", nl_langinfo(MON_11));
  printf("%s\n", nl_langinfo(MON_12));
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xea4(%rip),%rsi
call   1050 <setlocale@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xe2d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xe10(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d8c(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xdf3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xdd6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xdb9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xd9c(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xd7f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d0b(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xd62(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rax,%rsi
lea    0xd45(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
call   1050 <setlocale@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
lea    0xe95(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2dbc(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2d3a(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    0x2d69(%rip),%rax
mov    (%rax),%edi
call   1040 <nl_langinfo@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"%s\0A\00"
@MON_1 = global i32 0
@MON_2 = global i32 0
@MON_3 = global i32 0
@MON_4 = global i32 0
@MON_5 = global i32 0
@MON_6 = global i32 0
@MON_7 = global i32 0
@MON_8 = global i32 0
@MON_9 = global i32 0
@MON_10 = global i32 0
@MON_11 = global i32 0
@MON_12 = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @LC_ALL
%3 = call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @MON_1
%5 = call i8* @nl_langinfo(i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i32, i32* @MON_2
%8 = call i8* @nl_langinfo(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = load i32, i32* @MON_3
%11 = call i8* @nl_langinfo(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = load i32, i32* @MON_4
%14 = call i8* @nl_langinfo(i32 %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @MON_5
%17 = call i8* @nl_langinfo(i32 %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = load i32, i32* @MON_6
%20 = call i8* @nl_langinfo(i32 %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = load i32, i32* @MON_7
%23 = call i8* @nl_langinfo(i32 %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @MON_8
%26 = call i8* @nl_langinfo(i32 %25)
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = load i32, i32* @MON_9
%29 = call i8* @nl_langinfo(i32 %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = load i32, i32* @MON_10
%32 = call i8* @nl_langinfo(i32 %31)
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %32)
%34 = load i32, i32* @MON_11
%35 = call i8* @nl_langinfo(i32 %34)
%36 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %35)
%37 = load i32, i32* @MON_12
%38 = call i8* @nl_langinfo(i32 %37)
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"%s\0A\00"
@MON_1 = global i32 0
@MON_2 = global i32 0
@MON_3 = global i32 0
@MON_4 = global i32 0
@MON_5 = global i32 0
@MON_6 = global i32 0
@MON_7 = global i32 0
@MON_8 = global i32 0
@MON_9 = global i32 0
@MON_10 = global i32 0
@MON_11 = global i32 0
@MON_12 = global i32 0
define i32 @main() {
%1 = load i32, i32* @LC_ALL
%2 = tail call i32 @setlocale(i32 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @MON_1
%4 = tail call i8* @nl_langinfo(i32 %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @MON_2
%7 = tail call i8* @nl_langinfo(i32 %6)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @MON_3
%10 = tail call i8* @nl_langinfo(i32 %9)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%12 = load i32, i32* @MON_4
%13 = tail call i8* @nl_langinfo(i32 %12)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = load i32, i32* @MON_5
%16 = tail call i8* @nl_langinfo(i32 %15)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @MON_6
%19 = tail call i8* @nl_langinfo(i32 %18)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%21 = load i32, i32* @MON_7
%22 = tail call i8* @nl_langinfo(i32 %21)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @MON_8
%25 = tail call i8* @nl_langinfo(i32 %24)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %25)
%27 = load i32, i32* @MON_9
%28 = tail call i8* @nl_langinfo(i32 %27)
%29 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%30 = load i32, i32* @MON_10
%31 = tail call i8* @nl_langinfo(i32 %30)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%33 = load i32, i32* @MON_11
%34 = tail call i8* @nl_langinfo(i32 %33)
%35 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%36 = load i32, i32* @MON_12
%37 = tail call i8* @nl_langinfo(i32 %36)
%38 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %37)
%39 = tail call i32 @exit(i32 0)
unreachable
}