main(argc, argv) int argc;
char *argv[];
{
  double re, ne, alpha, rm, beta;
  sscanf(argv[1], "%lf", &re);
  sscanf(argv[2], "%lf", &ne);
  alpha = 1.0 / ne - 2.0;
  beta = 1.0;
  rm = ne * re * 1.e-6;
  printf("   %.7e   %.7e   %.7e\n", alpha, rm, beta);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeda(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xec0(%rip),%rsi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1040 <sscanf@plt>
movsd  0xe9d(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  0xe98(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe7f(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xe60(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
lea    0xe5d(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xee3(%rip),%r14
lea    0x10(%rsp),%rdx
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <sscanf@plt>
mov    0x10(%rbx),%rdi
lea    0x8(%rsp),%rdx
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <sscanf@plt>
movsd  0x8(%rsp),%xmm1
movsd  0xe9b(%rip),%xmm2
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
addsd  0xe93(%rip),%xmm0
mulsd  0x10(%rsp),%xmm1
mulsd  0xe8d(%rip),%xmm1
lea    0xe92(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [23 x i8] c" %.7e %.7e %.7e\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 %0, i32* %3
store i8** %1, i8*** %4
%10 = load i8**, i8*** %4
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %5)
%14 = load i8**, i8*** %4
%15 = getelementptr inbounds i8*, i8** %14, i64 2
%16 = load i8*, i8** %15
%17 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %6)
%18 = load double, double* %6
%19 = fdiv double 1.000000e+00, %18
%20 = fsub double %19, 2.000000e+00
store double %20, double* %7
store double 1.000000e+00, double* %9
%21 = load double, double* %6
%22 = load double, double* %5
%23 = fmul double %21, %22
%24 = fmul double %23, 0x3EB0C6F7A0B5ED8D
store double %24, double* %8
%25 = load double, double* %7
%26 = load double, double* %8
%27 = load double, double* %9
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %25, double %26, double %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [23 x i8] c" %.7e %.7e %.7e\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca double
%5 = bitcast double* %3 to i8*
%6 = bitcast double* %4 to i8*
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = call i32 (i8*, i8*, ...) @sscanf(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %3)
%10 = getelementptr inbounds i8*, i8** %1, i64 2
%11 = load i8*, i8** %10
%12 = call i32 (i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %4)
%13 = load double, double* %4
%14 = fdiv double 1.000000e+00, %13
%15 = fadd double %14, -2.000000e+00
%16 = load double, double* %3
%17 = fmul double %13, %16
%18 = fmul double %17, 0x3EB0C6F7A0B5ED8D
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %15, double %18, double 1.000000e+00)
ret i32 0
}