#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*/ load_conf();
int param_geti(char *);
int /*<<< orphan*/ printxyd(int, int, char *);
int /*<<< orphan*/ sprintf(char *, char *, int);
void stp_set_all_from_file(void) {
  int irc_vozik_otacka_mm = 50;
  int irc_vozik_refer_mm = 50;
  int irc_katr_otacka_mm = 25;
  int irc_katr_refer_mm = 20;
  char str[30] = "                       ";
  load_conf();
  irc_vozik_otacka_mm = param_geti("irc_vozik_otacka_mm");
  irc_vozik_refer_mm = param_geti("irc_vozik_refer_mm");
  irc_katr_otacka_mm = param_geti("irc_katr_otacka_mm");
  irc_katr_refer_mm = param_geti("irc_katr_refer_mm");
  sprintf(str, "irc_vo = %d", irc_vozik_otacka_mm);
  printxyd(0, 20, str);
  sprintf(str, "irc_vr = %d", irc_vozik_refer_mm);
  printxyd(1, 20, str);
  sprintf(str, "irc_ko = %d", irc_katr_otacka_mm);
  printxyd(2, 20, str);
  sprintf(str, "irc_kr = %d", irc_katr_refer_mm);
  printxyd(3, 20, str);
}


x86 assembly (clang, -O0):
<stp_set_all_from_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x32,-0x4(%rbp)
movl   $0x32,-0x8(%rbp)
movl   $0x19,-0xc(%rbp)
movl   $0x14,-0x10(%rbp)
mov    0xe95(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe92(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe8f(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe8d(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xe87(%rip),%ax
mov    %ax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <load_conf@plt>
lea    0xe77(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,-0x4(%rbp)
lea    0xe7c(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,-0x8(%rbp)
lea    0xe80(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,-0xc(%rbp)
lea    0xe84(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe80(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x30(%rbp),%rdx
xor    %edi,%edi
mov    $0x14,%esi
call   1040 <printxyd@plt>
lea    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xe69(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x30(%rbp),%rdx
mov    $0x1,%edi
mov    $0x14,%esi
call   1040 <printxyd@plt>
lea    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe4f(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x30(%rbp),%rdx
mov    $0x2,%edi
mov    $0x14,%esi
call   1040 <printxyd@plt>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%edx
lea    0xe35(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x30(%rbp),%rdx
mov    $0x3,%edi
mov    $0x14,%esi
call   1040 <printxyd@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stp_set_all_from_file>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
movups 0xebb(%rip),%xmm0
movups %xmm0,0xe(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   1030 <load_conf@plt>
lea    0xead(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,%ebp
lea    0xeb3(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,%r12d
lea    0xeb7(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,%r15d
lea    0xebb(%rip),%rdi
call   1060 <param_geti@plt>
mov    %eax,%r14d
lea    0xebe(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %ebp,%edx
call   1050 <sprintf@plt>
xor    %edi,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
call   1040 <printxyd@plt>
lea    0xea7(%rip),%rsi
mov    %rbx,%rdi
mov    %r12d,%edx
call   1050 <sprintf@plt>
mov    $0x1,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
call   1040 <printxyd@plt>
lea    0xe8f(%rip),%rsi
mov    %rbx,%rdi
mov    %r15d,%edx
call   1050 <sprintf@plt>
mov    $0x2,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
call   1040 <printxyd@plt>
lea    0xe77(%rip),%rsi
mov    %rbx,%rdi
mov    %r14d,%edx
call   1050 <sprintf@plt>
mov    $0x3,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
call   1040 <printxyd@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.stp_set_all_from_file.str = [30 x i8] c" \00\00\00\00\00\00\00"
@.str = [20 x i8] c"irc_vozik_otacka_mm\00"
@.str.1 = [19 x i8] c"irc_vozik_refer_mm\00"
@.str.2 = [19 x i8] c"irc_katr_otacka_mm\00"
@.str.3 = [18 x i8] c"irc_katr_refer_mm\00"
@.str.4 = [12 x i8] c"irc_vo = %d\00"
@.str.5 = [12 x i8] c"irc_vr = %d\00"
@.str.6 = [12 x i8] c"irc_ko = %d\00"
@.str.7 = [12 x i8] c"irc_kr = %d\00"
define void @stp_set_all_from_file() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [30 x i8]
store i32 50, i32* %1
store i32 50, i32* %2
store i32 25, i32* %3
store i32 20, i32* %4
%6 = bitcast [30 x i8]* %5 to i8*
%7 = call i32 (...) @load_conf()
%8 = call i32 @param_geti(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
store i32 %8, i32* %1
%9 = call i32 @param_geti(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
store i32 %9, i32* %2
%10 = call i32 @param_geti(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
store i32 %10, i32* %3
%11 = call i32 @param_geti(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
store i32 %11, i32* %4
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%13 = load i32, i32* %1
%14 = call i32 @sprintf(i8* %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%16 = call i32 @printxyd(i32 0, i32 20, i8* %15)
%17 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%18 = load i32, i32* %2
%19 = call i32 @sprintf(i8* %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%21 = call i32 @printxyd(i32 1, i32 20, i8* %20)
%22 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%23 = load i32, i32* %3
%24 = call i32 @sprintf(i8* %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%26 = call i32 @printxyd(i32 2, i32 20, i8* %25)
%27 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%28 = load i32, i32* %4
%29 = call i32 @sprintf(i8* %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%31 = call i32 @printxyd(i32 3, i32 20, i8* %30)
ret void
}

LLVM IR (-O2):
@__const.stp_set_all_from_file.str = [30 x i8] c" \00\00\00\00\00\00\00"
@.str = [20 x i8] c"irc_vozik_otacka_mm\00"
@.str.1 = [19 x i8] c"irc_vozik_refer_mm\00"
@.str.2 = [19 x i8] c"irc_katr_otacka_mm\00"
@.str.3 = [18 x i8] c"irc_katr_refer_mm\00"
@.str.4 = [12 x i8] c"irc_vo = %d\00"
@.str.5 = [12 x i8] c"irc_vr = %d\00"
@.str.6 = [12 x i8] c"irc_ko = %d\00"
@.str.7 = [12 x i8] c"irc_kr = %d\00"
define void @stp_set_all_from_file() {
%1 = alloca [30 x i8]
%2 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @load_conf()
%4 = tail call i32 @param_geti(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @param_geti(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @param_geti(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @param_geti(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %4)
%9 = call i32 @printxyd(i32 0, i32 20, i8* %2)
%10 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %5)
%11 = call i32 @printxyd(i32 1, i32 20, i8* %2)
%12 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %6)
%13 = call i32 @printxyd(i32 2, i32 20, i8* %2)
%14 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %7)
%15 = call i32 @printxyd(i32 3, i32 20, i8* %2)
ret void
}