1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
define double @_Z3incd(double %x) #3 { %1 = alloca double, align 8 store double %x, double* %1, align 8 %2 = load double, double* %1, align 8 %3 = fadd double %2, 1.000000e+00 ret double %3 }
define i32 @_Z3inci(i32 %x) #3 { %1 = alloca i32, align 4 store i32 %x, i32* %1, align 4 %2 = load i32, i32* %1, align 4 %3 = add nsw i32 %2, 1 ret i32 %3 }
define i32 @main() #4 { %1 = alloca i32, align 4 %a = alloca i32, align 4 %b = alloca double, align 8 store i32 0, i32* %1, align 4 %2 = call i32 @_Z3inci(i32 7) store i32 %2, i32* %a, align 4 %3 = call double @_Z3incd(double 3.000000e+00) store double %3, double* %b, align 8 ret i32 0 }
|