forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllvm-bindc_01-c984f09.stdout
More file actions
86 lines (67 loc) · 3.11 KB
/
llvm-bindc_01-c984f09.stdout
File metadata and controls
86 lines (67 loc) · 3.11 KB
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
; ModuleID = 'LFortran'
source_filename = "LFortran"
@__module___main___queries = global void* null
@__module___main___x = global i16* null
@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info = private unnamed_addr constant [8 x i8] c"CPtr,I2\00", align 1
@1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@2 = private unnamed_addr constant [16 x i8] c"AssertionError\0A\00", align 1
@3 = private unnamed_addr constant [16 x i8] c"AssertionError\0A\00", align 1
define void @__module___main_____main__global_stmts() {
.entry:
%0 = load void*, void** @__module___main___queries, align 8
%1 = bitcast void* %0 to i16*
store i16* %1, i16** @__module___main___x, align 8
%2 = call i8* (i8*, i8*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @serialization_info, i32 0, i32 0), i32 0, i32 0, void** @__module___main___queries, i16** @__module___main___x)
call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0))
call void @__module___main___test_issue_1781()
br label %return
return: ; preds = %.entry
ret void
}
define void @__module___main___test_issue_1781() {
.entry:
%p = alloca void*, align 8
store void* null, void** %p, align 8
%0 = load void*, void** %p, align 8
%1 = ptrtoint void* %0 to i64
%2 = icmp eq i64 %1, 0
br i1 %2, label %then, label %else
then: ; preds = %.entry
br label %ifcont
else: ; preds = %.entry
call void (i8*, ...) @_lcompilers_print_error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @2, i32 0, i32 0))
call void @exit(i32 1)
br label %ifcont
ifcont: ; preds = %else, %then
%3 = load void*, void** %p, align 8
%4 = ptrtoint void* %3 to i64
%5 = icmp ne i64 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %then1, label %else2
then1: ; preds = %ifcont
br label %ifcont3
else2: ; preds = %ifcont
call void (i8*, ...) @_lcompilers_print_error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @3, i32 0, i32 0))
call void @exit(i32 1)
br label %ifcont3
ifcont3: ; preds = %else2, %then1
br label %return
return: ; preds = %ifcont3
ret void
}
declare i8* @_lcompilers_string_format_fortran(i8*, i8*, i32, i32, ...)
declare void @_lfortran_printf(i8*, ...)
declare void @_lcompilers_print_error(i8*, ...)
declare void @exit(i32)
define i32 @main(i32 %0, i8** %1) {
.entry:
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
call void @__module___main_____main__global_stmts()
call void @_lpython_free_argv()
br label %return
return: ; preds = %.entry
ret i32 0
}
declare void @_lpython_call_initial_functions(i32, i8**)
declare void @_lpython_free_argv()