#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*/ piece(char *, char, char *, int);
void piece_record(char *station, char *datatype, char *measurement_update_date,
                  char *measurement_update_time, char *login_name,
                  char *parameter_value, char *record) {
  piece(station, '^', record, 0);
  piece(datatype, '^', record, 1);
  piece(measurement_update_date, '^', record, 2);
  piece(measurement_update_time, '^', record, 3);
  piece(login_name, '^', record, 4);
  piece(parameter_value, '^', record, 5);
}


x86 assembly (clang, -O0):
<piece_record>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
xor    %ecx,%ecx
call   1030 <piece@plt>
mov    -0x10(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
mov    $0x1,%ecx
call   1030 <piece@plt>
mov    -0x18(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
mov    $0x2,%ecx
call   1030 <piece@plt>
mov    -0x20(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
mov    $0x3,%ecx
call   1030 <piece@plt>
mov    -0x28(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
mov    $0x4,%ecx
call   1030 <piece@plt>
mov    -0x30(%rbp),%rdi
mov    0x10(%rbp),%rdx
mov    $0x5e,%esi
mov    $0x5,%ecx
call   1030 <piece@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<piece_record>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbp
mov    0x40(%rsp),%rbx
mov    $0x5e,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1030 <piece@plt>
mov    %rbp,%rdi
mov    $0x5e,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1030 <piece@plt>
mov    %r13,%rdi
mov    $0x5e,%esi
mov    %rbx,%rdx
mov    $0x2,%ecx
call   1030 <piece@plt>
mov    %r12,%rdi
mov    $0x5e,%esi
mov    %rbx,%rdx
mov    $0x3,%ecx
call   1030 <piece@plt>
mov    %r15,%rdi
mov    $0x5e,%esi
mov    %rbx,%rdx
mov    $0x4,%ecx
call   1030 <piece@plt>
mov    %r14,%rdi
mov    $0x5e,%esi
mov    %rbx,%rdx
mov    $0x5,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <piece@plt>

LLVM IR (-O0):
define void @piece_record(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i8* %6, i8** %14
%15 = load i8*, i8** %8
%16 = load i8*, i8** %14
%17 = call i32 @piece(i8* %15, i8 signext 94, i8* %16, i32 0)
%18 = load i8*, i8** %9
%19 = load i8*, i8** %14
%20 = call i32 @piece(i8* %18, i8 signext 94, i8* %19, i32 1)
%21 = load i8*, i8** %10
%22 = load i8*, i8** %14
%23 = call i32 @piece(i8* %21, i8 signext 94, i8* %22, i32 2)
%24 = load i8*, i8** %11
%25 = load i8*, i8** %14
%26 = call i32 @piece(i8* %24, i8 signext 94, i8* %25, i32 3)
%27 = load i8*, i8** %12
%28 = load i8*, i8** %14
%29 = call i32 @piece(i8* %27, i8 signext 94, i8* %28, i32 4)
%30 = load i8*, i8** %13
%31 = load i8*, i8** %14
%32 = call i32 @piece(i8* %30, i8 signext 94, i8* %31, i32 5)
ret void
}

LLVM IR (-O2):
define void @piece_record(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = tail call i32 @piece(i8* %0, i8 signext 94, i8* %6, i32 0)
%9 = tail call i32 @piece(i8* %1, i8 signext 94, i8* %6, i32 1)
%10 = tail call i32 @piece(i8* %2, i8 signext 94, i8* %6, i32 2)
%11 = tail call i32 @piece(i8* %3, i8 signext 94, i8* %6, i32 3)
%12 = tail call i32 @piece(i8* %4, i8 signext 94, i8* %6, i32 4)
%13 = tail call i32 @piece(i8* %5, i8 signext 94, i8* %6, i32 5)
ret void
}