#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 database_save_transaction(char *, char *, char *, char *, char *, char *,
                              char *, char *, int, char *, char *, char *,
                              char *, char *, char *, char *, char *, char *,
                              char *, float, char *, char *, char *, char *,
                              char *, char *);
int database_save_short(char account[], char date[], char timestr[],
                        char date_format[], char status[], char description[],
                        char currency[], char VATrate[], float progress,
                        char supplier[], char receive[], char spend[]) {
  return database_save_transaction(account, date_format, "1", description,
                                   spend, receive, date, timestr, -1, currency,
                                   status, "", "", "", "", "", "", "", "",
                                   progress, "0", "0", "0", "", "", VATrate);
}


x86 assembly (clang, -O0):
<database_save_short>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xd0,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
movss  %xmm0,-0x54(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x50(%rbp),%rcx
mov    0x30(%rbp),%r8
mov    0x28(%rbp),%r9
mov    -0x30(%rbp),%r12
mov    -0x38(%rbp),%r15
mov    0x10(%rbp),%r14
mov    -0x48(%rbp),%rbx
movss  -0x54(%rbp),%xmm0
mov    0x18(%rbp),%rax
lea    0xe79(%rip),%rdx
lea    0xe75(%rip),%r10
lea    0xe6d(%rip),%r11
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
movl   $0xffffffff,0x10(%rsp)
ff
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %r10,0x48(%rsp)
mov    %r10,0x50(%rsp)
mov    %r10,0x58(%rsp)
mov    %r10,0x60(%rsp)
mov    %r11,0x68(%rsp)
mov    %r11,0x70(%rsp)
mov    %r11,0x78(%rsp)
mov    %r10,0x80(%rsp)
mov    %r10,0x88(%rsp)
mov    %rax,0x90(%rsp)
call   1030 <database_save_transaction@plt>
add    $0xd0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<database_save_short>:
push   %r15
push   %r14
push   %rbx
mov    %r9,%rbx
mov    %r8,%r14
mov    %rdx,%r11
mov    %rsi,%r10
mov    0x40(%rsp),%r8
mov    0x38(%rsp),%r9
sub    $0x8,%rsp
lea    0xecd(%rip),%rax
lea    0xec5(%rip),%r15
lea    0xebc(%rip),%rdx
mov    %rcx,%rsi
mov    %rbx,%rcx
push   0x30(%rsp)
push   %rax
push   %rax
push   %r15
push   %r15
push   %r15
push   %rax
push   %rax
push   %rax
push   %rax
push   %rax
push   %rax
push   %rax
push   %rax
push   %r14
push   0xa0(%rsp)
push   $0xffffffffffffffff
push   %r11
push   %r10
call   1030 <database_save_transaction@plt>
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"0\00"
define i32 @database_save_short(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, float %8, i8* %9, i8* %10, i8* %11) {
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca float
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
store i8* %0, i8** %13
store i8* %1, i8** %14
store i8* %2, i8** %15
store i8* %3, i8** %16
store i8* %4, i8** %17
store i8* %5, i8** %18
store i8* %6, i8** %19
store i8* %7, i8** %20
store float %8, float* %21
store i8* %9, i8** %22
store i8* %10, i8** %23
store i8* %11, i8** %24
%25 = load i8*, i8** %13
%26 = load i8*, i8** %16
%27 = load i8*, i8** %18
%28 = load i8*, i8** %24
%29 = load i8*, i8** %23
%30 = load i8*, i8** %14
%31 = load i8*, i8** %15
%32 = load i8*, i8** %19
%33 = load i8*, i8** %17
%34 = load float, float* %21
%35 = load i8*, i8** %20
%36 = call i32 @database_save_transaction(i8* %25, i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %27, i8* %28, i8* %29, i8* %30, i8* %31, i32 -1, i8* %32, i8* %33, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), float %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %35)
ret i32 %36
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"0\00"
define i32 @database_save_short(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, float %8, i8* nocapture readnone %9, i8* %10, i8* %11) {
%13 = tail call i32 @database_save_transaction(i8* %0, i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %11, i8* %10, i8* %1, i8* %2, i32 -1, i8* %6, i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), float %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %7)
ret i32 %13
}