#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int n_chorizo, n_atun, n_agua, n_cola, n_naranja;
  float total, entrega, devolucion;
  char s;
  printf("Bocadillos de chorizo: ");
  scanf("%d", &n_chorizo);
  printf("Bocadillos de atun: ");
  scanf("%d", &n_atun);
  printf("Botellas de agua: ");
  scanf("%d", &n_agua);
  printf("Refrescos de cola: ");
  scanf("%d", &n_cola);
  printf("Refrescos de naranja: ");
  scanf("%d", &n_naranja);
  total = 1.10 * n_chorizo + 1.40 * n_atun + 0.50 * n_agua + 0.75 * n_cola +
          0.70 * n_naranja;
  printf("\nEn total son %.2f euros.\n", total);
  printf("\nEntregado: ");
  scanf("%f", &entrega);
  devolucion = entrega - total;
  system("cls");
  printf(" %2d ", n_chorizo);
  if (n_chorizo == 1)
    printf("bocadillo ");
  else
    printf("bocadillos");
  printf(" de chorizo a %5.2f euros son %6.2f euros\n", 1.10, 1.10 * n_chorizo);
  if (n_atun == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d bocadillo%c de atun a    %5.2f euros son %6.2f euros\n", n_atun,
         s, 1.40, 1.40 * n_atun);
  if (n_agua == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d botella%c de agua a      %5.2f euros son %6.2f euros\n", n_agua,
         s, 0.50, 0.50 * n_agua);
  if (n_cola == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d refresco%c de cola a     %5.2f euros son %6.2f euros\n", n_cola,
         s, 0.75, 0.75 * n_cola);
  if (n_naranja == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d refresco%c de naranja a  %5.2f euros son %6.2f euros\n",
         n_naranja, s, 0.70, 0.70 * n_naranja);
  printf("%42c --------\n", ' ');
  printf("%42s  %6.2f euros\n", "TOTAL:", total);
  printf("%42s  %6.2f euros\n", "Entrega:", entrega);
  printf("%42s  %6.2f euros\n\n", "Devolucion:", devolucion);
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeac(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe8c(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe6c(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm1
cvtsi2sdl -0xc(%rbp),%xmm2
movsd  0xe2f(%rip),%xmm0
mulsd  %xmm2,%xmm0
movsd  0xe1b(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xdfe(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xde1(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x18(%rbp),%xmm0
movsd  0xdc4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe39(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe45(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movss  -0x20(%rbp),%xmm0
subss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
lea    0xe27(%rip),%rdi
call   1030 <system@plt>
mov    -0x8(%rbp),%esi
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    12cd <main+0x19d>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12db <main+0x1ab>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xd30(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdee(%rip),%rdi
movsd  0xd1d(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
cmpl   $0x1,-0xc(%rbp)
jne    1315 <main+0x1e5>
movb   $0x20,-0x25(%rbp)
jmp    1319 <main+0x1e9>
movb   $0x73,-0x25(%rbp)
mov    -0xc(%rbp),%esi
movsbl -0x25(%rbp),%edx
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xcf3(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdd4(%rip),%rdi
movsd  0xce0(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x10(%rbp)
jne    135a <main+0x22a>
movb   $0x20,-0x25(%rbp)
jmp    135e <main+0x22e>
movb   $0x73,-0x25(%rbp)
mov    -0x10(%rbp),%esi
movsbl -0x25(%rbp),%edx
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xc9e(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdca(%rip),%rdi
movsd  0xc8b(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x14(%rbp)
jne    139f <main+0x26f>
movb   $0x20,-0x25(%rbp)
jmp    13a3 <main+0x273>
movb   $0x73,-0x25(%rbp)
mov    -0x14(%rbp),%esi
movsbl -0x25(%rbp),%edx
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xc51(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdc0(%rip),%rdi
movsd  0xc3e(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x18(%rbp)
jne    13e4 <main+0x2b4>
movb   $0x20,-0x25(%rbp)
jmp    13e8 <main+0x2b8>
movb   $0x73,-0x25(%rbp)
mov    -0x18(%rbp),%esi
movsbl -0x25(%rbp),%edx
cvtsi2sdl -0x18(%rbp),%xmm0
movsd  0xc04(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdb6(%rip),%rdi
movsd  0xbf1(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xddb(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdce(%rip),%rdi
lea    0xdda(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb0(%rip),%rdi
lea    0xdc3(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb5(%rip),%rdi
lea    0xdc2(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdc0(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
lea    0xeeb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef5(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xee4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xed2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
cvtsi2sdl (%rsp),%xmm0
cvtsi2sdl 0x18(%rsp),%xmm1
mulsd  0xe21(%rip),%xmm1
mulsd  0xe21(%rip),%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x14(%rsp),%xmm1
mulsd  0xe14(%rip),%xmm1
cvtsi2sdl 0x10(%rsp),%xmm2
addsd  %xmm0,%xmm1
mulsd  0xe0a(%rip),%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm0,%xmm0
cvtsi2sdl 0xc(%rsp),%xmm0
mulsd  0xdfd(%rip),%xmm0
addsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x1c(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0xe54(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe60(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x8(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xe44(%rip),%rdi
call   1030 <system@plt>
mov    (%rsp),%esi
lea    0xe39(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x1,(%rsp)
lea    0xe2d(%rip),%rax
lea    0xe31(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm1,%xmm1
cvtsi2sdl (%rsp),%xmm1
movsd  0xd48(%rip),%xmm0
mulsd  %xmm0,%xmm1
lea    0xe16(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
cmp    $0x1,%esi
mov    $0x20,%ebp
mov    $0x73,%edx
cmove  %ebp,%edx
mov    $0x73,%ebx
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
movsd  0xd06(%rip),%xmm0
mulsd  %xmm0,%xmm1
lea    0xe07(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
cmp    $0x1,%esi
mov    $0x73,%edx
cmove  %ebp,%edx
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
movsd  0xce6(%rip),%xmm0
mulsd  %xmm0,%xmm1
lea    0xe12(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
cmp    $0x1,%esi
mov    $0x73,%edx
cmove  %ebp,%edx
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
movsd  0xcbe(%rip),%xmm0
mulsd  %xmm0,%xmm1
lea    0xe1d(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
cmp    $0x1,%esi
cmove  %ebp,%ebx
movss  0x4(%rsp),%xmm0
subss  0x1c(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
movsd  0xc89(%rip),%xmm0
mulsd  %xmm0,%xmm1
lea    0xe1b(%rip),%rdi
mov    %ebx,%edx
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xe46(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe42(%rip),%rbx
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe34(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe22(%rip),%rdi
lea    0xe2f(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe2d(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Bocadillos de chorizo: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [21 x i8] c"Bocadillos de atun: \00"
@.str.3 = [19 x i8] c"Botellas de agua: \00"
@.str.4 = [20 x i8] c"Refrescos de cola: \00"
@.str.5 = [23 x i8] c"Refrescos de naranja: \00"
@.str.6 = [27 x i8] c"\0AEn total son %.2f euros.\0A\00"
@.str.7 = [13 x i8] c"\0AEntregado: \00"
@.str.8 = [3 x i8] c"%f\00"
@.str.9 = [4 x i8] c"cls\00"
@.str.10 = [6 x i8] c" %2d \00"
@.str.11 = [11 x i8] c"bocadillo \00"
@.str.12 = [11 x i8] c"bocadillos\00"
@.str.13 = [43 x i8] c" de chorizo a %5.2f euros son %6.2f euros\0A\00"
@.str.14 = [59 x i8] c" %2d bocadillo%c de atun a %5.2f euros son %6.2f euros\0A\00"
@.str.15 = [59 x i8] c" %2d botella%c de agua a %5.2f euros son %6.2f euros\0A\00"
@.str.16 = [59 x i8] c" %2d refresco%c de cola a %5.2f euros son %6.2f euros\0A\00"
@.str.17 = [59 x i8] c" %2d refresco%c de naranja a %5.2f euros son %6.2f euros\0A\00"
@.str.18 = [15 x i8] c"%42c --------\0A\00"
@.str.19 = [19 x i8] c"%42s %6.2f euros\0A\00"
@.str.20 = [7 x i8] c"TOTAL:\00"
@.str.21 = [9 x i8] c"Entrega:\00"
@.str.22 = [20 x i8] c"%42s %6.2f euros\0A\0A\00"
@.str.23 = [12 x i8] c"Devolucion:\00"
@.str.24 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca i8
store i32 0, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%21 = load i32, i32* %2
%22 = sitofp i32 %21 to double
%23 = load i32, i32* %3
%24 = sitofp i32 %23 to double
%25 = fmul double 1.400000e+00, %24
%26 = call double @llvm.fmuladd.f64(double 1.100000e+00, double %22, double %25)
%27 = load i32, i32* %4
%28 = sitofp i32 %27 to double
%29 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %28, double %26)
%30 = load i32, i32* %5
%31 = sitofp i32 %30 to double
%32 = call double @llvm.fmuladd.f64(double 7.500000e-01, double %31, double %29)
%33 = load i32, i32* %6
%34 = sitofp i32 %33 to double
%35 = call double @llvm.fmuladd.f64(double 0x3FE6666666666666, double %34, double %32)
%36 = fptrunc double %35 to float
store float %36, float* %7
%37 = load float, float* %7
%38 = fpext float %37 to double
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), double %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %8)
%42 = load float, float* %8
%43 = load float, float* %7
%44 = fsub float %42, %43
store float %44, float* %9
%45 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%46 = load i32, i32* %2
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %2
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %0
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
br label %54
52: ; preds = %0
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %54
54: ; preds = %52, %50
%55 = load i32, i32* %2
%56 = sitofp i32 %55 to double
%57 = fmul double 1.100000e+00, %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), double 1.100000e+00, double %57)
%59 = load i32, i32* %3
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %62
61: ; preds = %54
store i8 32, i8* %10
br label %63
62: ; preds = %54
store i8 115, i8* %10
br label %63
63: ; preds = %62, %61
%64 = load i32, i32* %3
%65 = load i8, i8* %10
%66 = sext i8 %65 to i32
%67 = load i32, i32* %3
%68 = sitofp i32 %67 to double
%69 = fmul double 1.400000e+00, %68
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0), i32 %64, i32 %66, double 1.400000e+00, double %69)
%71 = load i32, i32* %4
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %74
73: ; preds = %63
store i8 32, i8* %10
br label %75
74: ; preds = %63
store i8 115, i8* %10
br label %75
75: ; preds = %74, %73
%76 = load i32, i32* %4
%77 = load i8, i8* %10
%78 = sext i8 %77 to i32
%79 = load i32, i32* %4
%80 = sitofp i32 %79 to double
%81 = fmul double 5.000000e-01, %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.15, i64 0, i64 0), i32 %76, i32 %78, double 5.000000e-01, double %81)
%83 = load i32, i32* %5
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %86
85: ; preds = %75
store i8 32, i8* %10
br label %87
86: ; preds = %75
store i8 115, i8* %10
br label %87
87: ; preds = %86, %85
%88 = load i32, i32* %5
%89 = load i8, i8* %10
%90 = sext i8 %89 to i32
%91 = load i32, i32* %5
%92 = sitofp i32 %91 to double
%93 = fmul double 7.500000e-01, %92
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0), i32 %88, i32 %90, double 7.500000e-01, double %93)
%95 = load i32, i32* %6
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %98
97: ; preds = %87
store i8 32, i8* %10
br label %99
98: ; preds = %87
store i8 115, i8* %10
br label %99
99: ; preds = %98, %97
%100 = load i32, i32* %6
%101 = load i8, i8* %10
%102 = sext i8 %101 to i32
%103 = load i32, i32* %6
%104 = sitofp i32 %103 to double
%105 = fmul double 0x3FE6666666666666, %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.17, i64 0, i64 0), i32 %100, i32 %102, double 0x3FE6666666666666, double %105)
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 32)
%108 = load float, float* %7
%109 = fpext float %108 to double
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), double %109)
%111 = load float, float* %8
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), double %112)
%114 = load float, float* %9
%115 = fpext float %114 to double
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), double %115)
%117 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Bocadillos de chorizo: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [21 x i8] c"Bocadillos de atun: \00"
@.str.3 = [19 x i8] c"Botellas de agua: \00"
@.str.4 = [20 x i8] c"Refrescos de cola: \00"
@.str.5 = [23 x i8] c"Refrescos de naranja: \00"
@.str.6 = [27 x i8] c"\0AEn total son %.2f euros.\0A\00"
@.str.7 = [13 x i8] c"\0AEntregado: \00"
@.str.8 = [3 x i8] c"%f\00"
@.str.9 = [4 x i8] c"cls\00"
@.str.10 = [6 x i8] c" %2d \00"
@.str.11 = [11 x i8] c"bocadillo \00"
@.str.12 = [11 x i8] c"bocadillos\00"
@.str.13 = [43 x i8] c" de chorizo a %5.2f euros son %6.2f euros\0A\00"
@.str.14 = [59 x i8] c" %2d bocadillo%c de atun a %5.2f euros son %6.2f euros\0A\00"
@.str.15 = [59 x i8] c" %2d botella%c de agua a %5.2f euros son %6.2f euros\0A\00"
@.str.16 = [59 x i8] c" %2d refresco%c de cola a %5.2f euros son %6.2f euros\0A\00"
@.str.17 = [59 x i8] c" %2d refresco%c de naranja a %5.2f euros son %6.2f euros\0A\00"
@.str.18 = [15 x i8] c"%42c --------\0A\00"
@.str.19 = [19 x i8] c"%42s %6.2f euros\0A\00"
@.str.20 = [7 x i8] c"TOTAL:\00"
@.str.21 = [9 x i8] c"Entrega:\00"
@.str.22 = [20 x i8] c"%42s %6.2f euros\0A\0A\00"
@.str.23 = [12 x i8] c"Devolucion:\00"
@.str.24 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast float* %6 to i8*
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%23 = load i32, i32* %1
%24 = sitofp i32 %23 to double
%25 = load i32, i32* %2
%26 = sitofp i32 %25 to double
%27 = fmul double %26, 1.400000e+00
%28 = call double @llvm.fmuladd.f64(double %24, double 1.100000e+00, double %27)
%29 = load i32, i32* %3
%30 = sitofp i32 %29 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 5.000000e-01, double %28)
%32 = load i32, i32* %4
%33 = sitofp i32 %32 to double
%34 = call double @llvm.fmuladd.f64(double %33, double 7.500000e-01, double %31)
%35 = load i32, i32* %5
%36 = sitofp i32 %35 to double
%37 = call double @llvm.fmuladd.f64(double %36, double 0x3FE6666666666666, double %34)
%38 = fptrunc double %37 to float
%39 = fpext float %38 to double
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), double %39)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %6)
%43 = load float, float* %6
%44 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%45 = load i32, i32* %1
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %45)
%47 = load i32, i32* %1
%48 = icmp eq i32 %47, 1
%49 = select i1 %48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %49)
%51 = load i32, i32* %1
%52 = sitofp i32 %51 to double
%53 = fmul double %52, 1.100000e+00
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), double 1.100000e+00, double %53)
%55 = load i32, i32* %2
%56 = icmp eq i32 %55, 1
%57 = select i1 %56, i32 32, i32 115
%58 = sitofp i32 %55 to double
%59 = fmul double %58, 1.400000e+00
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0), i32 %55, i32 %57, double 1.400000e+00, double %59)
%61 = load i32, i32* %3
%62 = icmp eq i32 %61, 1
%63 = select i1 %62, i32 32, i32 115
%64 = sitofp i32 %61 to double
%65 = fmul double %64, 5.000000e-01
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.15, i64 0, i64 0), i32 %61, i32 %63, double 5.000000e-01, double %65)
%67 = load i32, i32* %4
%68 = icmp eq i32 %67, 1
%69 = select i1 %68, i32 32, i32 115
%70 = sitofp i32 %67 to double
%71 = fmul double %70, 7.500000e-01
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0), i32 %67, i32 %69, double 7.500000e-01, double %71)
%73 = load i32, i32* %5
%74 = icmp eq i32 %73, 1
%75 = select i1 %74, i32 32, i32 115
%76 = fsub float %43, %38
%77 = sitofp i32 %73 to double
%78 = fmul double %77, 0x3FE6666666666666
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.17, i64 0, i64 0), i32 %73, i32 %75, double 0x3FE6666666666666, double %78)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 32)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), double %39)
%82 = load float, float* %6
%83 = fpext float %82 to double
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), double %83)
%85 = fpext float %76 to double
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), double %85)
%87 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}