#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*/ printData(unsigned long, unsigned long, unsigned long,
                             unsigned long);
int /*<<< orphan*/ printIndex(char *, char *, unsigned long, unsigned long,
                              unsigned long);
int sscanf(char *, char *, unsigned long *, unsigned long *, unsigned long *,
           unsigned long *, unsigned long *);
void handleLine(char *indexName, char *typeName, char *line) {
  unsigned long parentId, userId, collectionId, timeStamp,
      timeStampMilliseconds;
  if (sscanf(line, "%lu %lu %lu %lu.%lu", &parentId, &userId, &collectionId,
             &timeStamp, &timeStampMilliseconds) == 5) {
    printIndex(indexName, typeName, parentId, userId, collectionId);
    printData(userId, collectionId, timeStamp, timeStampMilliseconds);
  }
}


x86 assembly (clang, -O0):
<handleLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xeb1(%rip),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x30(%rbp),%r8
lea    -0x38(%rbp),%r9
lea    -0x40(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <sscanf@plt>
cmp    $0x5,%eax
jne    11a3 <handleLine+0x73>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1050 <printIndex@plt>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
call   1040 <printData@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handleLine>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0x20(%rsp),%rcx
mov    %rcx,(%rsp)
lea    0xeb0(%rip),%rsi
lea    0x30(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0x28(%rsp),%r9
mov    %rax,%rdi
call   1030 <sscanf@plt>
cmp    $0x5,%eax
jne    11a4 <handleLine+0x74>
mov    0x30(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    0x10(%rsp),%r8
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <printIndex@plt>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x20(%rsp),%rcx
call   1040 <printData@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [20 x i8] c"%lu %lu %lu %lu.%lu\00"
define void @handleLine(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%12 = load i8*, i8** %6
%13 = call i32 @sscanf(i8* %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64* %7, i64* %8, i64* %9, i64* %10, i64* %11)
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %27
15: ; preds = %3
%16 = load i8*, i8** %4
%17 = load i8*, i8** %5
%18 = load i64, i64* %7
%19 = load i64, i64* %8
%20 = load i64, i64* %9
%21 = call i32 @printIndex(i8* %16, i8* %17, i64 %18, i64 %19, i64 %20)
%22 = load i64, i64* %8
%23 = load i64, i64* %9
%24 = load i64, i64* %10
%25 = load i64, i64* %11
%26 = call i32 @printData(i64 %22, i64 %23, i64 %24, i64 %25)
br label %27
27: ; preds = %15, %3
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"%lu %lu %lu %lu.%lu\00"
define void @handleLine(i8* %0, i8* %1, i8* nocapture %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = bitcast i64* %4 to i8*
%10 = bitcast i64* %5 to i8*
%11 = bitcast i64* %6 to i8*
%12 = bitcast i64* %7 to i8*
%13 = bitcast i64* %8 to i8*
%14 = call i32 @sscanf(i8* %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64* %4, i64* %5, i64* %6, i64* %7, i64* %8)
%15 = icmp eq i32 %14, 5
br i1 %15, label %16, label %26
16: ; preds = %3
%17 = load i64, i64* %4
%18 = load i64, i64* %5
%19 = load i64, i64* %6
%20 = call i32 @printIndex(i8* %0, i8* %1, i64 %17, i64 %18, i64 %19)
%21 = load i64, i64* %5
%22 = load i64, i64* %6
%23 = load i64, i64* %7
%24 = load i64, i64* %8
%25 = call i32 @printData(i64 %21, i64 %22, i64 %23, i64 %24)
br label %26
26: ; preds = %16, %3
ret void
}