#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*/ c95_consts();
int /*<<< orphan*/ c95_types();
int /*<<< orphan*/ c99_types();
int /*<<< orphan*/ extra_consts();
int /*<<< orphan*/ extra_types();
int /*<<< orphan*/ posix88_consts();
int /*<<< orphan*/ posix88_types();
int /*<<< orphan*/ printf(char *);
int main() {
  printf("mod types {");
  c95_types();
  c99_types();
  posix88_types();
  extra_types();
  printf("}\n");
  printf("mod consts {\n");
  c95_consts();
  posix88_consts();
  extra_consts();
  printf("}\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xe75(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <c95_types@plt>
mov    $0x0,%al
call   1050 <c99_types@plt>
mov    $0x0,%al
call   1080 <posix88_types@plt>
mov    $0x0,%al
call   10a0 <extra_types@plt>
lea    0xe59(%rip),%rdi
call   1040 <printf@plt>
lea    0xe50(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <c95_consts@plt>
mov    $0x0,%al
call   1060 <posix88_consts@plt>
mov    $0x0,%al
call   1090 <extra_consts@plt>
lea    0xe2c(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe68(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <c95_types@plt>
xor    %eax,%eax
call   1060 <c99_types@plt>
xor    %eax,%eax
call   1090 <posix88_types@plt>
xor    %eax,%eax
call   10b0 <extra_types@plt>
lea    0xe59(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe3d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <c95_consts@plt>
xor    %eax,%eax
call   1070 <posix88_consts@plt>
xor    %eax,%eax
call   10a0 <extra_consts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"mod types {\00"
@.str.1 = [3 x i8] c"}\0A\00"
@.str.2 = [14 x i8] c"mod consts {\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @c95_types()
%3 = call i32 (...) @c99_types()
%4 = call i32 (...) @posix88_types()
%5 = call i32 (...) @extra_types()
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (...) @c95_consts()
%9 = call i32 (...) @posix88_consts()
%10 = call i32 (...) @extra_consts()
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"mod types {\00"
@str.3 = [13 x i8] c"mod consts {\00"
@str.4 = [2 x i8] c"}\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @c95_types()
%3 = tail call i32 (...) @c99_types()
%4 = tail call i32 (...) @posix88_types()
%5 = tail call i32 (...) @extra_types()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.3, i64 0, i64 0))
%8 = tail call i32 (...) @c95_consts()
%9 = tail call i32 (...) @posix88_consts()
%10 = tail call i32 (...) @extra_consts()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
ret i32 0
}