#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  if (argc != 1) {
    printf("Error. no args\n");
    exit(EXIT_FAILURE);
  }
  int i;
  float down = 445.675 - 303.209;
  float sy[16] = {596, 576, 562, 542, 522, 483, 463, 449,
                  429, 409, 395, 356, 342, 303, 283, 263};
  printf("New python array:\n[");
  float sy2[16] = {0};
  for (i = 0; i < 16; ++i)
    sy2[i] = sy[i] - down;
  float i12 = sy2[12];
  sy2[11] = sy2[12] + 17;
  for (i = 0; i < 16; ++i)
    printf((i != 16 - 1) ? "%4.4f," : "%4.4f]\n", sy2[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     117f <main+0x3f>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
movss  0xe79(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xea9(%rip),%rsi
mov    $0x40,%edx
call   1050 <memcpy@plt>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    11fd <main+0xbd>
movslq -0x14(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm0
subss  -0x18(%rbp),%xmm0
movslq -0x14(%rbp),%rax
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11c9 <main+0x89>
movss  -0x70(%rbp),%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  0xdf2(%rip),%xmm0
addss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    126b <main+0x12b>
mov    -0x14(%rbp),%ecx
lea    0xdfc(%rip),%rdi
lea    0xdee(%rip),%rax
cmp    $0xf,%ecx
cmovne %rax,%rdi
movslq -0x14(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1223 <main+0xe3>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x1,%edi
jne    1277 <main+0x147>
lea    0xf3f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf45(%rip),%rbx
movsd  0xea9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe9f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe95(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe8b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe81(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe77(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe6d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe63(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe59(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe4f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe45(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe3b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe31(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe27(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe1d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe37(%rip),%rdi
movsd  0xe0c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret
lea    0xe25(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Error. no args\0A\00"
@EXIT_FAILURE = global i32 0
@__const.main.sy = [16 x float] [float 5.960000e+02, float 5.760000e+02, float 5.620000e+02, float 5.420000e+02, float 5.220000e+02, float 4.830000e+02, float 4.630000e+02, float 4.490000e+02, float 4.290000e+02, float 4.090000e+02, float 3.950000e+02, float 3.560000e+02, float 3.420000e+02, float 3.030000e+02, float 2.830000e+02, float 2.630000e+02]
@.str.1 = [20 x i8] c"New python array:\0A[\00"
@.str.2 = [7 x i8] c"%4.4f,\00"
@.str.3 = [8 x i8] c"%4.4f]\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca [16 x float]
%9 = alloca [16 x float]
%10 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp ne i32 %11, 1
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* @EXIT_FAILURE
%16 = call i32 @exit(i32 %15)
unreachable
17: ; preds = %2
store float 0x4061CEE980000000, float* %7
%18 = bitcast [16 x float]* %8 to i8*
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%20 = bitcast [16 x float]* %9 to i8*
store i32 0, i32* %6
br label %21
21: ; preds = %34, %17
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 16
br i1 %23, label %24, label %37
24: ; preds = %21
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 %26
%28 = load float, float* %27
%29 = load float, float* %7
%30 = fsub float %28, %29
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 %32
store float %30, float* %33
br label %34
34: ; preds = %24
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 1
store i32 %36, i32* %6
br label %21
37: ; preds = %21
%38 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 12
%39 = load float, float* %38
store float %39, float* %10
%40 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 12
%41 = load float, float* %40
%42 = fadd float %41, 1.700000e+01
%43 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 11
store float %42, float* %43
store i32 0, i32* %6
br label %44
44: ; preds = %58, %37
%45 = load i32, i32* %6
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %61
47: ; preds = %44
%48 = load i32, i32* %6
%49 = icmp ne i32 %48, 15
%50 = zext i1 %49 to i64
%51 = select i1 %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%52 = load i32, i32* %6
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 %53
%55 = load float, float* %54
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* %51, double %56)
br label %58
58: ; preds = %47
%59 = load i32, i32* %6
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
br label %44
61: ; preds = %44
ret i32 0
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str.1 = [20 x i8] c"New python array:\0A[\00"
@.str.2 = [7 x i8] c"%4.4f,\00"
@.str.3 = [8 x i8] c"%4.4f]\0A\00"
@str = [15 x i8] c"Error. no args\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %2
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x407C588B40000000)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x407B188B40000000)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x407A388B40000000)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4078F88B40000000)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4077B88B40000000)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4075488B40000000)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4074088B40000000)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4073288B40000000)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4071E88B40000000)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4070A88B40000000)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x406F911680000000)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x406B111680000000)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4068F11680000000)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4064111680000000)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double 0x4061911680000000)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double 0x405E222D00000000)
ret i32 0
}