#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*/ sscanf(char *, char *, char *, char *, char *, char *,
                          char *, char *, char *);
void read_from_log(char *config_line, char *file, char *directory_path) {
  char date[20];
  char date1[20];
  char user[20];
  char folder[20];
  char state[20];
  char file_type[20];
  sscanf(config_line, "%s %s %s %s %s %s %s\n", date, date1, user,
         directory_path, state, file_type, file);
}


x86 assembly (clang, -O0):
<read_from_log>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x30(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
lea    -0xb0(%rbp),%r11
lea    -0xd0(%rbp),%r10
mov    -0x10(%rbp),%rax
lea    0xeac(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <sscanf@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_from_log>:
sub    $0x98,%rsp
mov    %rdx,%r9
mov    %rsi,%rax
sub    $0x8,%rsp
lea    0x8(%rsp),%r10
lea    0x28(%rsp),%r11
lea    0xece(%rip),%rsi
lea    0x88(%rsp),%rdx
lea    0x68(%rsp),%rcx
lea    0x48(%rsp),%r8
push   %rax
push   %r10
push   %r11
call   1030 <sscanf@plt>
add    $0xb8,%rsp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"%s %s %s %s %s %s %s\0A\00"
define void @read_from_log(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [20 x i8]
%8 = alloca [20 x i8]
%9 = alloca [20 x i8]
%10 = alloca [20 x i8]
%11 = alloca [20 x i8]
%12 = alloca [20 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%13 = load i8*, i8** %4
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%17 = load i8*, i8** %6
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%20 = load i8*, i8** %5
%21 = call i32 @sscanf(i8* %13, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %14, i8* %15, i8* %16, i8* %17, i8* %18, i8* %19, i8* %20)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"%s %s %s %s %s %s %s\0A\00"
define void @read_from_log(i8* nocapture %0, i8* %1, i8* %2) {
%4 = alloca [20 x i8]
%5 = alloca [20 x i8]
%6 = alloca [20 x i8]
%7 = alloca [20 x i8]
%8 = alloca [20 x i8]
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%14 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10, i8* %11, i8* %2, i8* %12, i8* %13, i8* %1)
ret void
}