#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, double *);
int main(int argc, char *argv[]) {
  if (argc < 7) {
    printf("Not enough arguments !");
    return 0;
  }
  double theta, alpha, beta, A, B, C;
  sscanf(argv[1], "%lf", &theta);
  sscanf(argv[2], "%lf", &alpha);
  sscanf(argv[3], "%lf", &beta);
  sscanf(argv[4], "%lf", &A);
  sscanf(argv[5], "%lf", &B);
  sscanf(argv[6], "%lf", &C);
  printf("<table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" "
         "style=\"margin-left:0px;margin-right:auto\"> <tr "
         "bgcolor=\"#cccccc\"> <th> &theta; </th> <th> &alpha; </th> <th> "
         "&beta; </th> <th> A </th> <th> B </th> <th> C </th> </tr>            "
         " <tr> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> "
         "<td> %le </td> <td> %le </td> </tr> </table>",
         theta, alpha, beta, A, B, C);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x7,-0x8(%rbp)
jge    115a <main+0x3a>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1222 <main+0x102>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeae(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe96(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe7e(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xe66(%rip),%rsi
lea    -0x30(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
lea    0xe4e(%rip),%rsi
lea    -0x38(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
lea    0xe36(%rip),%rsi
lea    -0x40(%rbp),%rdx
call   1040 <sscanf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x40(%rbp),%xmm5
lea    0xe0c(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
cmp    $0x6,%edi
jg     1141 <main+0x21>
lea    0xecd(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11ec <main+0xcc>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xec8(%rip),%r14
lea    0x30(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
mov    0x10(%rbx),%rdi
lea    0x28(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
mov    0x18(%rbx),%rdi
lea    0x20(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
mov    0x20(%rbx),%rdi
lea    0x18(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
mov    0x28(%rbx),%rdi
lea    0x10(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
mov    0x30(%rbx),%rdi
lea    0x8(%rsp),%rdx
mov    %r14,%rsi
call   1040 <sscanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
movsd  0x8(%rsp),%xmm5
lea    0xe3f(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
mov    0x2df6(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Not enough arguments !\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [339 x i8] c"<table border=\221\22 cellpadding=\226\22 cellspacing=\220\22 style=\22margin-left:0px;margin-right:auto\22> <tr bgcolor=\22#cccccc\22> <th> &theta; </th> <th> &alpha; </th> <th> &beta; </th> <th> A </th> <th> B </th> <th> C </th> </tr> <tr> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> </tr> </table>\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 7
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %49
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @sscanf(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %6)
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %7)
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 3
%27 = load i8*, i8** %26
%28 = call i32 @sscanf(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %8)
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 4
%31 = load i8*, i8** %30
%32 = call i32 @sscanf(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %9)
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 5
%35 = load i8*, i8** %34
%36 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %10)
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 6
%39 = load i8*, i8** %38
%40 = call i32 @sscanf(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %11)
%41 = load double, double* %6
%42 = load double, double* %7
%43 = load double, double* %8
%44 = load double, double* %9
%45 = load double, double* %10
%46 = load double, double* %11
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([339 x i8], [339 x i8]* @.str.2, i64 0, i64 0), double %41, double %42, double %43, double %44, double %45, double %46)
%48 = load i32, i32* @EXIT_SUCCESS
store i32 %48, i32* %3
br label %49
49: ; preds = %16, %14
%50 = load i32, i32* %3
ret i32 %50
}

LLVM IR (-O2):
@.str = [23 x i8] c"Not enough arguments !\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [339 x i8] c"<table border=\221\22 cellpadding=\226\22 cellspacing=\220\22 style=\22margin-left:0px;margin-right:auto\22> <tr bgcolor=\22#cccccc\22> <th> &theta; </th> <th> &alpha; </th> <th> &beta; </th> <th> A </th> <th> B </th> <th> C </th> </tr> <tr> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> <td> %le </td> </tr> </table>\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = icmp slt i32 %0, 7
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %45
12: ; preds = %2
%13 = bitcast double* %3 to i8*
%14 = bitcast double* %4 to i8*
%15 = bitcast double* %5 to i8*
%16 = bitcast double* %6 to i8*
%17 = bitcast double* %7 to i8*
%18 = bitcast double* %8 to i8*
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %4)
%25 = getelementptr inbounds i8*, i8** %1, i64 3
%26 = load i8*, i8** %25
%27 = call i32 @sscanf(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%28 = getelementptr inbounds i8*, i8** %1, i64 4
%29 = load i8*, i8** %28
%30 = call i32 @sscanf(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %6)
%31 = getelementptr inbounds i8*, i8** %1, i64 5
%32 = load i8*, i8** %31
%33 = call i32 @sscanf(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %7)
%34 = getelementptr inbounds i8*, i8** %1, i64 6
%35 = load i8*, i8** %34
%36 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %8)
%37 = load double, double* %3
%38 = load double, double* %4
%39 = load double, double* %5
%40 = load double, double* %6
%41 = load double, double* %7
%42 = load double, double* %8
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([339 x i8], [339 x i8]* @.str.2, i64 0, i64 0), double %37, double %38, double %39, double %40, double %41, double %42)
%44 = load i32, i32* @EXIT_SUCCESS
br label %45
45: ; preds = %12, %10
%46 = phi i32 [ 0, %10 ], [ %44, %12 ]
ret i32 %46
}