#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 */
char *Evt_date2charP(void const *);
int Evt_expId(void const *);
int Evt_id(void const *);
int Evt_runNr(void const *);
int Evt_seqNr(void const *);
char *Evt_time2charP(void const *);
int HadTu_decoding(void const *);
int HadTu_size(void const *);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int, char *, char *,
                           int, int);
char *Evt_2charP(const void *my) {
  static char buf[2 * 132];
  sprintf(buf,
          "size: 0x%08x\tdecoding: 0x%08x\tid: 0x%08x\tseqNr: 0x%08x\t"
          "date: %s\ttime: %s\trunNr: %d\texpId: %x",
          HadTu_size(my), HadTu_decoding(my), Evt_id(my), Evt_seqNr(my),
          Evt_date2charP(my), Evt_time2charP(my), Evt_runNr(my), Evt_expId(my));
  return buf;
}


x86 assembly (clang, -O0):
<Evt_2charP>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <HadTu_size@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
call   10b0 <HadTu_decoding@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <Evt_id@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <Evt_seqNr@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   10a0 <Evt_date2charP@plt>
mov    %rax,%rbx
mov    -0x10(%rbp),%rdi
call   1080 <Evt_time2charP@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <Evt_runNr@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <Evt_expId@plt>
mov    -0x30(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x20(%rbp),%r11
mov    -0x14(%rbp),%r10d
lea    0x2e68(%rip),%rdi
lea    0xde1(%rip),%rsi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1090 <sprintf@plt>
lea    0x2e43(%rip),%rax
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<Evt_2charP>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1070 <HadTu_size@plt>
mov    %eax,0x4(%rsp)
mov    %rbx,%rdi
call   10b0 <HadTu_decoding@plt>
mov    %eax,(%rsp)
mov    %rbx,%rdi
call   1040 <Evt_id@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
call   1060 <Evt_seqNr@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   10a0 <Evt_date2charP@plt>
mov    %rax,%r12
mov    %rbx,%rdi
call   1080 <Evt_time2charP@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1050 <Evt_runNr@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
call   1030 <Evt_expId@plt>
lea    0x2e89(%rip),%rbx
lea    0xe02(%rip),%rsi
mov    %rbx,%rdi
mov    0x4(%rsp),%edx
mov    (%rsp),%ecx
mov    %r13d,%r8d
mov    %ebp,%r9d
push   %rax
push   %r15
push   %r14
push   %r12
call   1090 <sprintf@plt>
add    $0x20,%rsp
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@Evt_2charP.buf = internal global [264 x i8] zeroinitializer
@.str = [93 x i8] c"size: 0x%08x\09decoding: 0x%08x\09id: 0x%08x\09seqNr: 0x%08x\09date: %s\09time: %s\09runNr: %d\09expId: %x\00"
define i8* @Evt_2charP(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @HadTu_size(i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @HadTu_decoding(i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @Evt_id(i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @Evt_seqNr(i8* %9)
%11 = load i8*, i8** %2
%12 = call i8* @Evt_date2charP(i8* %11)
%13 = load i8*, i8** %2
%14 = call i8* @Evt_time2charP(i8* %13)
%15 = load i8*, i8** %2
%16 = call i32 @Evt_runNr(i8* %15)
%17 = load i8*, i8** %2
%18 = call i32 @Evt_expId(i8* %17)
%19 = call i32 @sprintf(i8* getelementptr inbounds ([264 x i8], [264 x i8]* @Evt_2charP.buf, i64 0, i64 0), i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %6, i32 %8, i32 %10, i8* %12, i8* %14, i32 %16, i32 %18)
ret i8* getelementptr inbounds ([264 x i8], [264 x i8]* @Evt_2charP.buf, i64 0, i64 0)
}

LLVM IR (-O2):
@Evt_2charP.buf = internal global [264 x i8] zeroinitializer
@.str = [93 x i8] c"size: 0x%08x\09decoding: 0x%08x\09id: 0x%08x\09seqNr: 0x%08x\09date: %s\09time: %s\09runNr: %d\09expId: %x\00"
define i8* @Evt_2charP(i8* %0) {
%2 = tail call i32 @HadTu_size(i8* %0)
%3 = tail call i32 @HadTu_decoding(i8* %0)
%4 = tail call i32 @Evt_id(i8* %0)
%5 = tail call i32 @Evt_seqNr(i8* %0)
%6 = tail call i8* @Evt_date2charP(i8* %0)
%7 = tail call i8* @Evt_time2charP(i8* %0)
%8 = tail call i32 @Evt_runNr(i8* %0)
%9 = tail call i32 @Evt_expId(i8* %0)
%10 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([264 x i8], [264 x i8]* @Evt_2charP.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i8* %7, i32 %8, i32 %9)
ret i8* getelementptr inbounds ([264 x i8], [264 x i8]* @Evt_2charP.buf, i64 0, i64 0)
}