#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 */
struct stat {
  int dummy;
};

/* Variables and functions */
char *group(struct stat *);
char *hln(struct stat *);
char *mode(struct stat *);
int /*<<< orphan*/ mtime(struct stat *);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *,
                          int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ size_dev(struct stat *);
char *user(struct stat *);
void display(struct stat *info) {
  printf("%s%3d %7s %7s%8s %.16s ", mode(info), hln(info), user(info),
         group(info), size_dev(info), mtime(info));
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1090 <mode@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <hln@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <user@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <group@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <size_dev@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <mtime@plt>
mov    -0x30(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0xc(%rbp),%r9d
lea    0xe20(%rip),%rdi
mov    %eax,(%rsp)
call   1070 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1090 <mode@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1040 <hln@plt>
mov    %rax,%r15
mov    %rbx,%rdi
call   1060 <user@plt>
mov    %rax,%r12
mov    %rbx,%rdi
call   1080 <group@plt>
mov    %rax,%r13
mov    %rbx,%rdi
call   1050 <size_dev@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <mtime@plt>
mov    %eax,(%rsp)
lea    0xe3d(%rip),%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %ebp,%r9d
call   1070 <printf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
@.str = [24 x i8] c"%s%3d %7s %7s%8s %.16s \00"
define void @display(%struct.stat* %0) {
%2 = alloca %struct.stat*
store %struct.stat* %0, %struct.stat** %2
%3 = load %struct.stat*, %struct.stat** %2
%4 = call i8* @mode(%struct.stat* %3)
%5 = load %struct.stat*, %struct.stat** %2
%6 = call i8* @hln(%struct.stat* %5)
%7 = load %struct.stat*, %struct.stat** %2
%8 = call i8* @user(%struct.stat* %7)
%9 = load %struct.stat*, %struct.stat** %2
%10 = call i8* @group(%struct.stat* %9)
%11 = load %struct.stat*, %struct.stat** %2
%12 = call i32 @size_dev(%struct.stat* %11)
%13 = load %struct.stat*, %struct.stat** %2
%14 = call i32 @mtime(%struct.stat* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %6, i8* %8, i8* %10, i32 %12, i32 %14)
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@.str = [24 x i8] c"%s%3d %7s %7s%8s %.16s \00"
define void @display(%struct.stat* %0) {
%2 = tail call i8* @mode(%struct.stat* %0)
%3 = tail call i8* @hln(%struct.stat* %0)
%4 = tail call i8* @user(%struct.stat* %0)
%5 = tail call i8* @group(%struct.stat* %0)
%6 = tail call i32 @size_dev(%struct.stat* %0)
%7 = tail call i32 @mtime(%struct.stat* %0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i8* %4, i8* %5, i32 %6, i32 %7)
ret void
}