@@ -16,33 +16,33 @@ return: ; preds = %.entry
1616
1717define void @__module___main___main0() !dbg !7 {
1818.entry:
19- %x = alloca i32, align 4, !dbg !8
20- call void @llvm.dbg.declare(metadata i32* %x, metadata !9, metadata !DIExpression()), !dbg !11
21- %x2 = alloca i64, align 8
22- call void @llvm.dbg.declare(metadata i64* %x2, metadata !12, metadata !DIExpression()), !dbg !14
23- %y = alloca float, align 4
24- call void @llvm.dbg.declare(metadata float* %y, metadata !15, metadata !DIExpression()), !dbg !17
2519 %y2 = alloca double, align 8
26- call void @llvm.dbg.declare(metadata double* %y2, metadata !18, metadata !DIExpression()), !dbg !20
27- store i32 25, i32* %x, align 4, !dbg !21
28- %0 = load i32, i32* %x, align 4, !dbg !21
29- call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @2, i32 0, i32 0), i32 %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @1, i32 0, i32 0)), !dbg !21
30- br label %return, !dbg !21
20+ %y = alloca float, align 4
21+ %x2 = alloca i64, align 8
22+ %x = alloca i32, align 4
23+ call void @llvm.dbg.declare(metadata i32* %x, metadata !8, metadata !DIExpression()), !dbg !10
24+ call void @llvm.dbg.declare(metadata i64* %x2, metadata !11, metadata !DIExpression()), !dbg !13
25+ call void @llvm.dbg.declare(metadata float* %y, metadata !14, metadata !DIExpression()), !dbg !16
26+ call void @llvm.dbg.declare(metadata double* %y2, metadata !17, metadata !DIExpression()), !dbg !19
27+ store i32 25, i32* %x, align 4, !dbg !20
28+ %0 = load i32, i32* %x, align 4, !dbg !20
29+ call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @2, i32 0, i32 0), i32 %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @1, i32 0, i32 0)), !dbg !20
30+ br label %return, !dbg !20
3131
3232return: ; preds = %.entry
33- ret void, !dbg !21
33+ ret void, !dbg !20
3434}
3535
3636; Function Attrs: nounwind readnone speculatable willreturn
3737declare void @llvm.dbg.declare(metadata, metadata, metadata) #0
3838
3939declare void @_lfortran_printf(i8*, ...)
4040
41- define i32 @main(i32 %0, i8** %1) !dbg !22 {
41+ define i32 @main(i32 %0, i8** %1) !dbg !21 {
4242.entry:
43- call void @_lpython_call_initial_functions(i32 %0, i8** %1), !dbg !25
44- call void @__module___main_____main__global_stmts(), !dbg !25
45- ret i32 0, !dbg !25
43+ call void @_lpython_call_initial_functions(i32 %0, i8** %1), !dbg !24
44+ call void @__module___main_____main__global_stmts(), !dbg !24
45+ ret i32 0, !dbg !24
4646}
4747
4848declare void @_lpython_call_initial_functions(i32, i8**)
@@ -59,21 +59,20 @@ attributes #0 = { nounwind readnone speculatable willreturn }
5959!5 = !{null}
6060!6 = !DILocation(line: 9, column: 1, scope: !3)
6161!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
62- !8 = !DILocation(line: 1, column: 1, scope: !7)
63- !9 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 2, type: !10)
64- !10 = !DIBasicType(name: "integer", size: 32, encoding: DW_ATE_signed)
65- !11 = !DILocation(line: 2, scope: !7)
66- !12 = !DILocalVariable(name: "x2", arg: 2, scope: !7, file: !1, line: 3, type: !13)
67- !13 = !DIBasicType(name: "integer", size: 64, encoding: DW_ATE_signed)
68- !14 = !DILocation(line: 3, scope: !7)
69- !15 = !DILocalVariable(name: "y", arg: 3, scope: !7, file: !1, line: 4, type: !16)
70- !16 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
71- !17 = !DILocation(line: 4, scope: !7)
72- !18 = !DILocalVariable(name: "y2", arg: 4, scope: !7, file: !1, line: 5, type: !19)
73- !19 = !DIBasicType(name: "double", size: 64, encoding: DW_ATE_float)
74- !20 = !DILocation(line: 5, scope: !7)
75- !21 = !DILocation(line: 6, column: 5, scope: !7)
76- !22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
77- !23 = !DISubroutineType(types: !24)
78- !24 = !{!10}
79- !25 = !DILocation(line: 1, column: 1, scope: !22)
62+ !8 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 2, type: !9)
63+ !9 = !DIBasicType(name: "integer", size: 32, encoding: DW_ATE_signed)
64+ !10 = !DILocation(line: 2, scope: !7)
65+ !11 = !DILocalVariable(name: "x2", arg: 2, scope: !7, file: !1, line: 3, type: !12)
66+ !12 = !DIBasicType(name: "integer", size: 64, encoding: DW_ATE_signed)
67+ !13 = !DILocation(line: 3, scope: !7)
68+ !14 = !DILocalVariable(name: "y", arg: 3, scope: !7, file: !1, line: 4, type: !15)
69+ !15 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
70+ !16 = !DILocation(line: 4, scope: !7)
71+ !17 = !DILocalVariable(name: "y2", arg: 4, scope: !7, file: !1, line: 5, type: !18)
72+ !18 = !DIBasicType(name: "double", size: 64, encoding: DW_ATE_float)
73+ !19 = !DILocation(line: 5, scope: !7)
74+ !20 = !DILocation(line: 6, column: 5, scope: !7)
75+ !21 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !22, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
76+ !22 = !DISubroutineType(types: !23)
77+ !23 = !{!9}
78+ !24 = !DILocation(line: 1, column: 1, scope: !21)
0 commit comments