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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
; ModuleID = 'LFortran'
source_filename = "LFortran"
%string_descriptor = type <{ i8*, i64 }>
@__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_x = global i32 0
@__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_y = global float 0.000000e+00
@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info = private unnamed_addr constant [3 x i8] c"I4\00", align 1
@1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.1 = private unnamed_addr constant [3 x i8] c"R4\00", align 1
@3 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.2 = private unnamed_addr constant [3 x i8] c"I4\00", align 1
@5 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.3 = private unnamed_addr constant [3 x i8] c"R4\00", align 1
@7 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.4 = private unnamed_addr constant [3 x i8] c"I4\00", align 1
@9 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@10 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.5 = private unnamed_addr constant [3 x i8] c"R4\00", align 1
@11 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
define void @__module_nested_05_a_b() {
.entry:
%x = alloca i32, align 4
%y = alloca float, align 4
store i32 6, i32* %x, align 4
store float 5.500000e+00, float* %y, align 4
%0 = alloca i64, align 8
%1 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.2, i32 0, i32 0), i64* %0, i32 0, i32 0, i32* %x)
%2 = load i64, i64* %0, align 4
%stringFormat_desc = alloca %string_descriptor, align 8
%3 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
store i8* %1, i8** %3, align 8
%4 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
store i64 %2, i64* %4, align 4
%5 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
%6 = load i8*, i8** %5, align 8
%7 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
%8 = load i64, i64* %7, align 4
%9 = trunc i64 %8 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @5, i32 0, i32 0), i8* %6, i32 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @4, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %1)
%10 = alloca i64, align 8
%11 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.3, i32 0, i32 0), i64* %10, i32 0, i32 0, float* %y)
%12 = load i64, i64* %10, align 4
%stringFormat_desc1 = alloca %string_descriptor, align 8
%13 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
store i8* %11, i8** %13, align 8
%14 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 1
store i64 %12, i64* %14, align 4
%15 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
%16 = load i8*, i8** %15, align 8
%17 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, 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]* @7, i32 0, i32 0), i8* %16, i32 %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @6, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %11)
%20 = load i32, i32* %x, align 4
store i32 %20, i32* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_x, align 4
%21 = load float, float* %y, align 4
store float %21, float* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_y, align 4
call void @b.__module_nested_05_a_c()
%22 = load i32, i32* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_x, align 4
store i32 %22, i32* %x, align 4
%23 = load float, float* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_y, align 4
store float %23, float* %y, align 4
%24 = alloca i64, align 8
%25 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.4, i32 0, i32 0), i64* %24, i32 0, i32 0, i32* %x)
%26 = load i64, i64* %24, align 4
%stringFormat_desc2 = alloca %string_descriptor, align 8
%27 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc2, i32 0, i32 0
store i8* %25, i8** %27, align 8
%28 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc2, i32 0, i32 1
store i64 %26, i64* %28, align 4
%29 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc2, i32 0, i32 0
%30 = load i8*, i8** %29, align 8
%31 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc2, i32 0, i32 1
%32 = load i64, i64* %31, align 4
%33 = trunc i64 %32 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @9, i32 0, i32 0), i8* %30, i32 %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @8, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %25)
%34 = alloca i64, align 8
%35 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.5, i32 0, i32 0), i64* %34, i32 0, i32 0, float* %y)
%36 = load i64, i64* %34, align 4
%stringFormat_desc3 = alloca %string_descriptor, align 8
%37 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc3, i32 0, i32 0
store i8* %35, i8** %37, align 8
%38 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc3, i32 0, i32 1
store i64 %36, i64* %38, align 4
%39 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc3, i32 0, i32 0
%40 = load i8*, i8** %39, align 8
%41 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc3, i32 0, i32 1
%42 = load i64, i64* %41, align 4
%43 = trunc i64 %42 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @11, i32 0, i32 0), i8* %40, i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @10, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %35)
br label %return
return: ; preds = %.entry
br label %FINALIZE_SYMTABLE_b
FINALIZE_SYMTABLE_b: ; preds = %return
ret void
}
define void @b.__module_nested_05_a_c() {
.entry:
%0 = alloca i64, align 8
%1 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info, i32 0, i32 0), i64* %0, i32 0, i32 0, i32* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_x)
%2 = load i64, i64* %0, align 4
%stringFormat_desc = alloca %string_descriptor, align 8
%3 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
store i8* %1, i8** %3, align 8
%4 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
store i64 %2, i64* %4, align 4
%5 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
%6 = load i8*, i8** %5, align 8
%7 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
%8 = load i64, i64* %7, align 4
%9 = trunc i64 %8 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %6, i32 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %1)
%10 = alloca i64, align 8
%11 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.1, i32 0, i32 0), i64* %10, i32 0, i32 0, float* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_y)
%12 = load i64, i64* %10, align 4
%stringFormat_desc1 = alloca %string_descriptor, align 8
%13 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
store i8* %11, i8** %13, align 8
%14 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 1
store i64 %12, i64* %14, align 4
%15 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
%16 = load i8*, i8** %15, align 8
%17 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, 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]* @3, i32 0, i32 0), i8* %16, i32 %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @2, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %11)
store i32 4, i32* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_x, align 4
store float 3.500000e+00, float* @__module___lcompilers_created__nested_context__b____lcompilers_created__nested_context__b_y, align 4
br label %return
return: ; preds = %.entry
br label %FINALIZE_SYMTABLE_c
FINALIZE_SYMTABLE_c: ; preds = %return
ret void
}
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*)
define i32 @main(i32 %0, i8** %1) {
.entry:
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
call void @__module_nested_05_a_b()
call void @_lpython_free_argv()
br label %return
return: ; preds = %.entry
br label %FINALIZE_SYMTABLE_nested_05
FINALIZE_SYMTABLE_nested_05: ; preds = %return
ret i32 0
}
declare void @_lpython_call_initial_functions(i32, i8**)
declare void @_lpython_free_argv()
|