#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 floatPointer() {
  printf("testing pointers understanding! ==floatPointer start== \n\n");
  float p, q, *ip, *iq;
  p = (float)3;
  q = (float)12;
  ip = &p;
  iq = &q;
  printf("\n-- after init --\n\n");
  printf("p   %f and p  address is %p \n", p, (void *)&p);
  printf("q   %f and q  address is %p \n", q, (void *)&q);
  printf("*ip %f and ip address is %p \n", *ip, (void *)ip);
  printf("*iq %f and iq address is %p \n", *iq, (void *)iq);
  *ip = *ip + 10;
  printf("\n-- after *ip = *ip + 10; --\n\n");
  printf("p   %f and p  address is %p \n", p, (void *)&p);
  printf("q   %f and q  address is %p \n", q, (void *)&q);
  printf("*ip %f and ip address is %p \n", *ip, (void *)ip);
  printf("*iq %f and iq address is %p \n", *iq, (void *)iq);
  ++*ip;
  printf("\n-- after ++*ip; --\n\n");
  printf("p   %f and p  address is %p \n", p, (void *)&p);
  printf("q   %f and q  address is %p \n", q, (void *)&q);
  printf("*ip %f and ip address is %p \n", *ip, (void *)ip);
  printf("*iq %f and iq address is %p \n", *iq, (void *)iq);
  (*ip)++;
  printf("\n-- after (*ip)++; note () as ++ is higher precedence to * --\n\n");
  printf("p   %f and p  address is %p \n", p, (void *)&p);
  printf("q   %f and q  address is %p \n", q, (void *)&q);
  printf("*ip %f and ip address is %p \n", *ip, (void *)ip);
  printf("*iq %f and iq address is %p \n", *iq, (void *)iq);
  iq = ip;
  printf("\n-- after iq = ip; --\n\n");
  printf("p   %f and p  address is %p \n", p, (void *)&p);
  printf("q   %f and q  address is %p \n", q, (void *)&q);
  printf("*ip %f and ip address is %p \n", *ip, (void *)ip);
  printf("*iq %f and iq address is %p \n", *iq, (void *)iq);
  printf("\n");
  printf("testing pointers understanding! ==floatPointer end== \n\n");
  return 0;
}


x86 assembly (clang, -O0):
<floatPointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xede(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x4(%rbp),%rsi
lea    0xeec(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rsi
lea    0xeef(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rsi
lea    0xeef(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rsi
lea    0xeef(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  0xe28(%rip),%xmm0
addss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x4(%rbp),%rsi
lea    0xe54(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rsi
lea    0xe57(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rsi
lea    0xe57(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rsi
lea    0xe57(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  0xd8c(%rip),%xmm0
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x4(%rbp),%rsi
lea    0xdc0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rsi
lea    0xdc3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rsi
lea    0xdc3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rsi
lea    0xdc3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  0xcf8(%rip),%xmm0
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x4(%rbp),%rsi
lea    0xd2c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rsi
lea    0xd2f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rsi
lea    0xd2f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rsi
lea    0xd2f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x4(%rbp),%rsi
lea    0xca4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rsi
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rsi
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rsi
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<floatPointer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
movl   $0x40400000,(%rsp)
movl   $0x41400000,0x4(%rsp)
41
lea    0xf6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xeaf(%rip),%r14
movsd  0xe8f(%rip),%xmm0
mov    %rsp,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xeae(%rip),%r15
movsd  0xe78(%rip),%xmm0
lea    0x4(%rsp),%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea2(%rip),%r13
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea2(%rip),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
addss  0xe26(%rip),%xmm0
movss  %xmm0,(%rsp)
lea    0xee6(%rip),%rdi
call   1040 <puts@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
addss  0xdb2(%rip),%xmm0
movss  %xmm0,(%rsp)
lea    0xe8c(%rip),%rdi
call   1040 <puts@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0xd3f(%rip),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,(%rsp)
lea    0xe29(%rip),%rdi
call   1040 <puts@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe02(%rip),%rdi
call   1040 <puts@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdaa(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c"testing pointers understanding! ==floatPointer start== \0A\0A\00"
@.str.1 = [20 x i8] c"\0A-- after init --\0A\0A\00"
@.str.2 = [30 x i8] c"p %f and p address is %p \0A\00"
@.str.3 = [30 x i8] c"q %f and q address is %p \0A\00"
@.str.4 = [30 x i8] c"*ip %f and ip address is %p \0A\00"
@.str.5 = [30 x i8] c"*iq %f and iq address is %p \0A\00"
@.str.6 = [31 x i8] c"\0A-- after *ip = *ip + 10; --\0A\0A\00"
@.str.7 = [22 x i8] c"\0A-- after ++*ip; --\0A\0A\00"
@.str.8 = [64 x i8] c"\0A-- after (*ip)++; note () as ++ is higher precedence to * --\0A\0A\00"
@.str.9 = [24 x i8] c"\0A-- after iq = ip; --\0A\0A\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [56 x i8] c"testing pointers understanding! ==floatPointer end== \0A\0A\00"
define i32 @floatPointer() {
%1 = alloca float
%2 = alloca float
%3 = alloca float*
%4 = alloca float*
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
store float 3.000000e+00, float* %1
store float 1.200000e+01, float* %2
store float* %1, float** %3
store float* %2, float** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%7 = load float, float* %1
%8 = fpext float %7 to double
%9 = bitcast float* %1 to i8*
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %8, i8* %9)
%11 = load float, float* %2
%12 = fpext float %11 to double
%13 = bitcast float* %2 to i8*
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %12, i8* %13)
%15 = load float*, float** %3
%16 = load float, float* %15
%17 = fpext float %16 to double
%18 = load float*, float** %3
%19 = bitcast float* %18 to i8*
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %17, i8* %19)
%21 = load float*, float** %4
%22 = load float, float* %21
%23 = fpext float %22 to double
%24 = load float*, float** %4
%25 = bitcast float* %24 to i8*
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %23, i8* %25)
%27 = load float*, float** %3
%28 = load float, float* %27
%29 = fadd float %28, 1.000000e+01
%30 = load float*, float** %3
store float %29, float* %30
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%32 = load float, float* %1
%33 = fpext float %32 to double
%34 = bitcast float* %1 to i8*
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %33, i8* %34)
%36 = load float, float* %2
%37 = fpext float %36 to double
%38 = bitcast float* %2 to i8*
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %37, i8* %38)
%40 = load float*, float** %3
%41 = load float, float* %40
%42 = fpext float %41 to double
%43 = load float*, float** %3
%44 = bitcast float* %43 to i8*
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %42, i8* %44)
%46 = load float*, float** %4
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = load float*, float** %4
%50 = bitcast float* %49 to i8*
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %48, i8* %50)
%52 = load float*, float** %3
%53 = load float, float* %52
%54 = fadd float %53, 1.000000e+00
store float %54, float* %52
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%56 = load float, float* %1
%57 = fpext float %56 to double
%58 = bitcast float* %1 to i8*
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %57, i8* %58)
%60 = load float, float* %2
%61 = fpext float %60 to double
%62 = bitcast float* %2 to i8*
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %61, i8* %62)
%64 = load float*, float** %3
%65 = load float, float* %64
%66 = fpext float %65 to double
%67 = load float*, float** %3
%68 = bitcast float* %67 to i8*
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %66, i8* %68)
%70 = load float*, float** %4
%71 = load float, float* %70
%72 = fpext float %71 to double
%73 = load float*, float** %4
%74 = bitcast float* %73 to i8*
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %72, i8* %74)
%76 = load float*, float** %3
%77 = load float, float* %76
%78 = fadd float %77, 1.000000e+00
store float %78, float* %76
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%80 = load float, float* %1
%81 = fpext float %80 to double
%82 = bitcast float* %1 to i8*
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %81, i8* %82)
%84 = load float, float* %2
%85 = fpext float %84 to double
%86 = bitcast float* %2 to i8*
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %85, i8* %86)
%88 = load float*, float** %3
%89 = load float, float* %88
%90 = fpext float %89 to double
%91 = load float*, float** %3
%92 = bitcast float* %91 to i8*
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %90, i8* %92)
%94 = load float*, float** %4
%95 = load float, float* %94
%96 = fpext float %95 to double
%97 = load float*, float** %4
%98 = bitcast float* %97 to i8*
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %96, i8* %98)
%100 = load float*, float** %3
store float* %100, float** %4
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%102 = load float, float* %1
%103 = fpext float %102 to double
%104 = bitcast float* %1 to i8*
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %103, i8* %104)
%106 = load float, float* %2
%107 = fpext float %106 to double
%108 = bitcast float* %2 to i8*
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %107, i8* %108)
%110 = load float*, float** %3
%111 = load float, float* %110
%112 = fpext float %111 to double
%113 = load float*, float** %3
%114 = bitcast float* %113 to i8*
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %112, i8* %114)
%116 = load float*, float** %4
%117 = load float, float* %116
%118 = fpext float %117 to double
%119 = load float*, float** %4
%120 = bitcast float* %119 to i8*
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %118, i8* %120)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [30 x i8] c"p %f and p address is %p \0A\00"
@.str.3 = [30 x i8] c"q %f and q address is %p \0A\00"
@.str.4 = [30 x i8] c"*ip %f and ip address is %p \0A\00"
@.str.5 = [30 x i8] c"*iq %f and iq address is %p \0A\00"
@str = [57 x i8] c"testing pointers understanding! ==floatPointer start== \0A\00"
@str.12 = [19 x i8] c"\0A-- after init --\0A\00"
@str.13 = [30 x i8] c"\0A-- after *ip = *ip + 10; --\0A\00"
@str.14 = [21 x i8] c"\0A-- after ++*ip; --\0A\00"
@str.15 = [63 x i8] c"\0A-- after (*ip)++; note () as ++ is higher precedence to * --\0A\00"
@str.16 = [23 x i8] c"\0A-- after iq = ip; --\0A\00"
@str.17 = [55 x i8] c"testing pointers understanding! ==floatPointer end== \0A\00"
define i32 @floatPointer() {
%1 = alloca float
%2 = alloca float
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
store float 3.000000e+00, float* %1
store float 1.200000e+01, float* %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double 3.000000e+00, float* %1)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double 1.200000e+01, float* %2)
%9 = load float, float* %1
%10 = fpext float %9 to double
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %10, float* %1)
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %13, float* %2)
%15 = load float, float* %1
%16 = fadd float %15, 1.000000e+01
store float %16, float* %1
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.13, i64 0, i64 0))
%18 = load float, float* %1
%19 = fpext float %18 to double
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %19, float* %1)
%21 = load float, float* %2
%22 = fpext float %21 to double
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %22, float* %2)
%24 = load float, float* %1
%25 = fpext float %24 to double
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %25, float* %1)
%27 = load float, float* %2
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %28, float* %2)
%30 = load float, float* %1
%31 = fadd float %30, 1.000000e+00
store float %31, float* %1
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.14, i64 0, i64 0))
%33 = load float, float* %1
%34 = fpext float %33 to double
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %34, float* %1)
%36 = load float, float* %2
%37 = fpext float %36 to double
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %37, float* %2)
%39 = load float, float* %1
%40 = fpext float %39 to double
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %40, float* %1)
%42 = load float, float* %2
%43 = fpext float %42 to double
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %43, float* %2)
%45 = load float, float* %1
%46 = fadd float %45, 1.000000e+00
store float %46, float* %1
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.15, i64 0, i64 0))
%48 = load float, float* %1
%49 = fpext float %48 to double
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %49, float* %1)
%51 = load float, float* %2
%52 = fpext float %51 to double
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %52, float* %2)
%54 = load float, float* %1
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %55, float* %1)
%57 = load float, float* %2
%58 = fpext float %57 to double
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %58, float* %2)
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%61 = load float, float* %1
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %62, float* %1)
%64 = load float, float* %2
%65 = fpext float %64 to double
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %65, float* %2)
%67 = load float, float* %1
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %68, float* %1)
%70 = load float, float* %1
%71 = fpext float %70 to double
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), double %71, float* %1)
%73 = call i32 @putchar(i32 10)
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.17, i64 0, i64 0))
ret i32 0
}