#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*/ sprintf(char *, char *, char *, char *, int, int, int, int,
                           int);
int /*<<< orphan*/ write_svector(short *, long, long, char *, char *);
void save_svector2(short *v, long nl, long nh, char *path, char *filename,
                   int seuil, int nb_iter, int balayage, int maj,
                   int alpha_update) {
  static char complete_filename[256];
  sprintf(complete_filename, "%s/%s_%d_%d_%d_%d_%d.txt", path, filename, seuil,
          nb_iter, balayage, maj, alpha_update);
  write_svector(v, nl, nh, "%4d", complete_filename);
}


x86 assembly (clang, -O0):
<save_svector2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x2c(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x18(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    0x28(%rbp),%eax
lea    0x2ed2(%rip),%rdi
lea    0xe8b(%rip),%rsi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1040 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xe7f(%rip),%rcx
lea    0x2e9f(%rip),%r8
call   1030 <write_svector@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_svector2>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9d,%r11d
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r13
mov    0x30(%rsp),%r9d
mov    0x38(%rsp),%r10d
mov    0x40(%rsp),%ebx
mov    0x48(%rsp),%eax
sub    $0x8,%rsp
lea    0x2eee(%rip),%r12
lea    0xea7(%rip),%rsi
mov    %r12,%rdi
mov    %rcx,%rdx
mov    %r8,%rcx
mov    %r11d,%r8d
push   %rax
push   %rbx
push   %r10
call   1040 <sprintf@plt>
add    $0x20,%rsp
lea    0xea0(%rip),%rcx
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %r12,%r8
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <write_svector@plt>

LLVM IR (-O0):
@save_svector2.complete_filename = internal global [256 x i8] zeroinitializer
@.str = [25 x i8] c"%s/%s_%d_%d_%d_%d_%d.txt\00"
@.str.1 = [4 x i8] c"%4d\00"
define void @save_svector2(i16* %0, i64 %1, i64 %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = alloca i16*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i16* %0, i16** %11
store i64 %1, i64* %12
store i64 %2, i64* %13
store i8* %3, i8** %14
store i8* %4, i8** %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
store i32 %9, i32* %20
%21 = load i8*, i8** %14
%22 = load i8*, i8** %15
%23 = load i32, i32* %16
%24 = load i32, i32* %17
%25 = load i32, i32* %18
%26 = load i32, i32* %19
%27 = load i32, i32* %20
%28 = call i32 @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @save_svector2.complete_filename, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %21, i8* %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27)
%29 = load i16*, i16** %11
%30 = load i64, i64* %12
%31 = load i64, i64* %13
%32 = call i32 @write_svector(i16* %29, i64 %30, i64 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([256 x i8], [256 x i8]* @save_svector2.complete_filename, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@save_svector2.complete_filename = internal global [256 x i8] zeroinitializer
@.str = [25 x i8] c"%s/%s_%d_%d_%d_%d_%d.txt\00"
@.str.1 = [4 x i8] c"%4d\00"
define void @save_svector2(i16* %0, i64 %1, i64 %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @save_svector2.complete_filename, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9)
%12 = tail call i32 @write_svector(i16* %0, i64 %1, i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([256 x i8], [256 x i8]* @save_svector2.complete_filename, i64 0, i64 0))
ret void
}