int main() {
  int a = 7, b = -3;
  a = abs(a);
  b = abs(b);
  print("a  7");
  printid(a);
  print("b  3");
  printid(b);
  a = sqrt(a);
  print("a  2");
  printid(a);
  float c = sqrt(45);
  print("c  6.708204");
  printid(c);
  b = exp(b);
  print("b  20");
  printid(b);
  c = exp(3);
  print("c  20.085537");
  printid(c);
  c = log(12);
  print("c  2.484907");
  printid(c);
  c = log10(12);
  print("c  1.079181");
  printid(c);
  c = cos(1.23);
  print("c  0.334238");
  printid(c);
  c = sin(1.23);
  print("c  0.942489");
  printid(c);
  c = asin(0.43);
  print("c  0.444493");
  printid(c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7,-0x8(%rbp)
movl   $0xfffffffd,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0xc(%rbp)
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1060 <printid@plt>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1060 <printid@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
call   10c0 <sqrt@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0x8(%rbp)
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1060 <printid@plt>
movsd  0xdec(%rip),%xmm0
call   10c0 <sqrt@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
cvtsi2sdl -0xc(%rbp),%xmm0
call   1080 <exp@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1060 <printid@plt>
movsd  0xd87(%rip),%xmm0
call   1080 <exp@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
movsd  0xd4b(%rip),%xmm0
call   10a0 <log@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
movsd  0xd17(%rip),%xmm0
call   10b0 <log10@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
movsd  0xcdb(%rip),%xmm0
call   1090 <cos@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
movsd  0xca7(%rip),%xmm0
call   1050 <sin@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
movsd  0xc6b(%rip),%xmm0
call   1070 <asin@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1040 <print@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <printid@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf10(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    $0x7,%edi
xor    %eax,%eax
call   1040 <printid@plt>
lea    0xefb(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    $0x3,%edi
xor    %eax,%eax
call   1040 <printid@plt>
lea    0xee6(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <printid@plt>
lea    0xed1(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xe7b(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    $0x14,%edi
xor    %eax,%eax
call   1040 <printid@plt>
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xe4c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xe37(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xe8b(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xe22(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xe0d(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xdf8(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsd  0xde3(%rip),%xmm0
mov    $0x1,%al
call   1040 <printid@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"a 7\00"
@.str.1 = [5 x i8] c"b 3\00"
@.str.2 = [5 x i8] c"a 2\00"
@.str.3 = [12 x i8] c"c 6.708204\00"
@.str.4 = [6 x i8] c"b 20\00"
@.str.5 = [13 x i8] c"c 20.085537\00"
@.str.6 = [12 x i8] c"c 2.484907\00"
@.str.7 = [12 x i8] c"c 1.079181\00"
@.str.8 = [12 x i8] c"c 0.334238\00"
@.str.9 = [12 x i8] c"c 0.942489\00"
@.str.10 = [12 x i8] c"c 0.444493\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
store i32 0, i32* %1
store i32 7, i32* %2
store i32 -3, i32* %3
%5 = load i32, i32* %2
%6 = call i32 @abs(i32 %5)
store i32 %6, i32* %2
%7 = load i32, i32* %3
%8 = call i32 @abs(i32 %7)
store i32 %8, i32* %3
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %2
%11 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %10)
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* %3
%14 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %13)
%15 = load i32, i32* %2
%16 = sitofp i32 %15 to double
%17 = call double @sqrt(double %16)
%18 = fptosi double %17 to i32
store i32 %18, i32* %2
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* %2
%21 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %20)
%22 = call double @sqrt(double 4.500000e+01)
%23 = fptrunc double %22 to float
store float %23, float* %4
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%25 = load float, float* %4
%26 = fpext float %25 to double
%27 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %26)
%28 = load i32, i32* %3
%29 = sitofp i32 %28 to double
%30 = call double @exp(double %29)
%31 = fptosi double %30 to i32
store i32 %31, i32* %3
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32, i32* %3
%34 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %33)
%35 = call double @exp(double 3.000000e+00)
%36 = fptrunc double %35 to float
store float %36, float* %4
%37 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%38 = load float, float* %4
%39 = fpext float %38 to double
%40 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %39)
%41 = call double @log(double 1.200000e+01)
%42 = fptrunc double %41 to float
store float %42, float* %4
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%44 = load float, float* %4
%45 = fpext float %44 to double
%46 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %45)
%47 = call double @log10(double 1.200000e+01)
%48 = fptrunc double %47 to float
store float %48, float* %4
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%50 = load float, float* %4
%51 = fpext float %50 to double
%52 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %51)
%53 = call double @cos(double 1.230000e+00)
%54 = fptrunc double %53 to float
store float %54, float* %4
%55 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%56 = load float, float* %4
%57 = fpext float %56 to double
%58 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %57)
%59 = call double @sin(double 1.230000e+00)
%60 = fptrunc double %59 to float
store float %60, float* %4
%61 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%62 = load float, float* %4
%63 = fpext float %62 to double
%64 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %63)
%65 = call double @asin(double 4.300000e-01)
%66 = fptrunc double %65 to float
store float %66, float* %4
%67 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%68 = load float, float* %4
%69 = fpext float %68 to double
%70 = call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double %69)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"a 7\00"
@.str.1 = [5 x i8] c"b 3\00"
@.str.2 = [5 x i8] c"a 2\00"
@.str.3 = [12 x i8] c"c 6.708204\00"
@.str.4 = [6 x i8] c"b 20\00"
@.str.5 = [13 x i8] c"c 20.085537\00"
@.str.6 = [12 x i8] c"c 2.484907\00"
@.str.7 = [12 x i8] c"c 1.079181\00"
@.str.8 = [12 x i8] c"c 0.334238\00"
@.str.9 = [12 x i8] c"c 0.942489\00"
@.str.10 = [12 x i8] c"c 0.444493\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 7)
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 3)
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 2)
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x401AD53360000000)
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 20)
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x403415E5C0000000)
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x4003E116C0000000)
%15 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x3FF1445380000000)
%17 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x3FD56426A0000000)
%19 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x3FEE28DE40000000)
%21 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 (double, ...) bitcast (i32 (...)* @printid to i32 (double, ...)*)(double 0x3FDC7291E0000000)
ret i32 0
}