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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
; ModuleID = 'LFortran'
source_filename = "LFortran"
%string_descriptor = type <{ i8*, i64 }>
%complex_4 = type <{ float, float }>
@s_data = private global [4 x i8] c"left"
@s = private global %string_descriptor <{ i8* getelementptr inbounds ([4 x i8], [4 x i8]* @s_data, i32 0, i32 0), i64 4 }>
@s1_data = private global [1 x i8] c"l"
@s1 = private global %string_descriptor <{ i8* getelementptr inbounds ([1 x i8], [1 x i8]* @s1_data, i32 0, i32 0), i64 1 }>
@s2_data = private global [3 x i8] c"eft"
@s2 = private global %string_descriptor <{ i8* getelementptr inbounds ([3 x i8], [3 x i8]* @s2_data, i32 0, i32 0), i64 3 }>
@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info = private unnamed_addr constant [36 x i8] c"I4,I4,R4,{R4,R4},I4,L,L,R4,S-DESC-4\00", align 1
@string_const_data = private constant [4 x i8] c"left"
@string_const = private global %string_descriptor <{ i8* getelementptr inbounds ([4 x i8], [4 x i8]* @string_const_data, i32 0, i32 0), i64 4 }>
@1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
define i32 @main(i32 %0, i8** %1) {
.entry:
%a = alloca i32, align 4
store i32 3, i32* %a, align 4
%i = alloca i32, align 4
store i32 1, i32* %i, align 4
%j = alloca i32, align 4
store i32 2, i32* %j, align 4
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
%i1 = alloca i32, align 4
store i32 1, i32* %i1, align 4
%j2 = alloca i32, align 4
store i32 2, i32* %j2, align 4
%a3 = alloca i32, align 4
store i32 3, i32* %a3, align 4
%l = alloca i1, align 1
store i1 true, i1* %l, align 1
%b = alloca i1, align 1
store i1 true, i1* %b, align 1
%c = alloca %complex_4, align 8
store %complex_4 <{ float 3.000000e+00, float 4.000000e+00 }>, %complex_4* %c, align 1
%r = alloca float, align 4
store float 4.000000e+00, float* %r, align 4
%r_minus = alloca float, align 4
store float -4.000000e+00, float* %r_minus, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 1, i32* %3, align 4
%4 = alloca i32, align 4
store i32 2, i32* %4, align 4
%5 = alloca float, align 4
store float 4.000000e+00, float* %5, align 4
%6 = alloca %complex_4, align 8
store %complex_4 <{ float 3.000000e+00, float 4.000000e+00 }>, %complex_4* %6, align 1
%7 = alloca i32, align 4
store i32 3, i32* %7, align 4
%8 = alloca i1, align 1
store i1 true, i1* %8, align 1
%9 = alloca i1, align 1
store i1 true, i1* %9, align 1
%10 = alloca float, align 4
store float -4.000000e+00, float* %10, align 4
%11 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @serialization_info, i32 0, i32 0), i64* %2, i32 0, i32 0, i32* %3, i32* %4, float* %5, %complex_4* %6, i32* %7, i1* %8, i1* %9, float* %10, %string_descriptor* @string_const)
%12 = load i64, i64* %2, align 4
%stringFormat_desc = alloca %string_descriptor, align 8
%13 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
store i8* %11, i8** %13, align 8
%14 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
store i64 %12, i64* %14, align 4
%15 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
%16 = load i8*, i8** %15, align 8
%17 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
%18 = load i64, i64* %17, align 4
%19 = trunc i64 %18 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %16, i32 %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %11)
call void @_lpython_free_argv()
br label %return
return: ; preds = %.entry
br label %FINALIZE_SYMTABLE_init_values
FINALIZE_SYMTABLE_init_values: ; preds = %return
ret i32 0
}
declare void @_lpython_call_initial_functions(i32, i8**)
declare i8* @_lcompilers_string_format_fortran(i8*, i64, i8*, i64*, i32, i32, ...)
declare void @_lfortran_printf(i8*, i8*, i32, i8*, i32)
declare void @_lfortran_free(i8*)
declare void @_lpython_free_argv()
|