Skip to content

Commit

Permalink
support to print lists in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Jul 9, 2024
1 parent d6f1e15 commit 30bf93b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/reference/llvm_dbg-expr_01-9fc5f30.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "llvm_dbg-expr_01-9fc5f30.stdout",
"stdout_hash": "70643017f0ad204393988f111369cdd921c1c297149078182707cb54",
"stdout_hash": "05da15be1ee079ac286df323e40803c05309df3355abf9f08f26413e",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
22 changes: 11 additions & 11 deletions tests/reference/llvm_dbg-expr_01-9fc5f30.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source_filename = "LFortran"
@1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@2 = private unnamed_addr constant [5 x i8] c"%d%s\00", align 1

define void @__module___main_____main__global_stmts() !dbg !3 {
define void @__module___main_____main__global_stmts() !dbg !2 {
.entry:
call void @__module___main___main0(), !dbg !6
br label %return, !dbg !6
Expand Down Expand Up @@ -33,7 +33,7 @@ return: ; preds = %.entry
ret void, !dbg !21
}

; Function Attrs: nounwind readnone speculatable willreturn
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare void @llvm.dbg.declare(metadata, metadata, metadata) #0

declare void @_lfortran_printf(i8*, ...)
Expand All @@ -47,18 +47,18 @@ define i32 @main(i32 %0, i8** %1) !dbg !22 {

declare void @_lpython_call_initial_functions(i32, i8**)

attributes #0 = { nounwind readnone speculatable willreturn }
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.dbg.cu = !{!0}

!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "LPython Compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "LPython Compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
!1 = !DIFile(filename: "tests/expr_01.py", directory: ".")
!2 = !{}
!3 = distinct !DISubprogram(name: "__main__global_stmts", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
!4 = !DISubroutineType(types: !5)
!5 = !{null}
!6 = !DILocation(line: 9, column: 1, scope: !3)
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
!2 = distinct !DISubprogram(name: "__main__global_stmts", scope: !1, file: !1, line: 1, type: !3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
!3 = !DISubroutineType(types: !4)
!4 = !{null}
!5 = !{}
!6 = !DILocation(line: 9, column: 1, scope: !2)
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
!8 = !DILocation(line: 1, column: 1, scope: !7)
!9 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 2, type: !10)
!10 = !DIBasicType(name: "integer", size: 32, encoding: DW_ATE_signed)
Expand All @@ -73,7 +73,7 @@ attributes #0 = { nounwind readnone speculatable willreturn }
!19 = !DIBasicType(name: "double", size: 64, encoding: DW_ATE_float)
!20 = !DILocation(line: 5, scope: !7)
!21 = !DILocation(line: 6, column: 5, scope: !7)
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
!23 = !DISubroutineType(types: !24)
!24 = !{!10}
!25 = !DILocation(line: 1, column: 1, scope: !22)

0 comments on commit 30bf93b

Please sign in to comment.