Skip to content

Commit

Permalink
Update references
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Jun 30, 2023
1 parent 6e0059f commit bdbcee7
Show file tree
Hide file tree
Showing 16 changed files with 172 additions and 133 deletions.
2 changes: 1 addition & 1 deletion tests/reference/asr-array_01_decl-39cf894.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-array_01_decl-39cf894.stdout",
"stdout_hash": "670c914b3851f034855be4bc0d0672dedb9d81bdf8afb85a4d7a09ba",
"stdout_hash": "f8ba6c730aea2846362708c15bb4ff33f587f833f791d26b55fc70b8",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
4 changes: 2 additions & 2 deletions tests/reference/asr-array_01_decl-39cf894.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[]
Local
(IntegerConstant 10 (Integer 4))
(IntegerConstant -1 (Integer 8))
()
Default
(Integer 4)
()
Expand All @@ -35,7 +35,7 @@
[]
Local
(IntegerConstant 3 (Integer 4))
(IntegerConstant -1 (Integer 8))
()
Default
(Integer 4)
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-intent_01-66824bc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-intent_01-66824bc.stdout",
"stdout_hash": "3e31bd2856093504660cf2523bd5e1170e70390d0ba9e448e9d18556",
"stdout_hash": "c0705fb1198e342bcc4b376fd83d8b981654f48cf14b8e563bb0ed2e",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
9 changes: 5 additions & 4 deletions tests/reference/asr-intent_01-66824bc.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_global_symbols:
(Module
(SymbolTable
5
6
{
Foo:
(StructType
Expand Down Expand Up @@ -36,6 +36,7 @@
Public
.false.
.false.
[(())]
()
()
),
Expand All @@ -55,7 +56,7 @@
Default
(Array
(Struct
5 Foo
6 Foo
)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 5 (Integer 4)))]
Expand Down Expand Up @@ -130,7 +131,7 @@
)
(Array
(Struct
5 Foo
6 Foo
)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 5 (Integer 4)))]
Expand Down Expand Up @@ -169,7 +170,7 @@
main_program:
(Program
(SymbolTable
4
5
{

})
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-structs_01-66dc2c9.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-structs_01-66dc2c9.stdout",
"stdout_hash": "de1e0ae69531d96b875d6da5c8885d25f39bfaf8b58ab8e0fe94d644",
"stdout_hash": "f4abca45051c53d030a0ed049e37e9d22069b73321bc9f4adf4842ce",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
22 changes: 12 additions & 10 deletions tests/reference/asr-structs_01-66dc2c9.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_global_symbols:
(Module
(SymbolTable
6
7
{
S:
(StructType
Expand Down Expand Up @@ -53,13 +53,15 @@
Public
.false.
.false.
[(())
(())]
()
()
),
_lpython_main_program:
(Function
(SymbolTable
5
6
{

})
Expand All @@ -82,7 +84,7 @@
[main0]
[]
[(SubroutineCall
6 main0
7 main0
()
[]
()
Expand All @@ -108,7 +110,7 @@
()
Default
(Struct
6 S
7 S
)
()
Source
Expand Down Expand Up @@ -138,11 +140,11 @@
[(=
(Var 3 s)
(StructTypeConstructor
6 S
7 S
[((IntegerConstant 2 (Integer 4)))
(())]
(Struct
6 S
7 S
)
()
)
Expand All @@ -163,13 +165,13 @@
main_program:
(Program
(SymbolTable
4
5
{
_lpython_main_program:
(ExternalSymbol
4
5
_lpython_main_program
6 _lpython_main_program
7 _lpython_main_program
_global_symbols
[]
_lpython_main_program
Expand All @@ -179,7 +181,7 @@
main_program
[_global_symbols]
[(SubroutineCall
4 _lpython_main_program
5 _lpython_main_program
()
[]
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-structs_01-be14d49.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-structs_01-be14d49.stdout",
"stdout_hash": "abaac1320ea7c83ced0b27e66209c126ba59487ef2230d446992f4a7",
"stdout_hash": "e649bec597d2b56125b28cffe90f5577bc3b94ae504ecf667ad6f4e2",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
36 changes: 19 additions & 17 deletions tests/reference/asr-structs_01-be14d49.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_global_symbols:
(Module
(SymbolTable
8
9
{
A:
(StructType
Expand Down Expand Up @@ -53,13 +53,15 @@
Public
.false.
.false.
[(())
(())]
()
()
),
_lpython_main_program:
(Function
(SymbolTable
7
8
{

})
Expand All @@ -82,7 +84,7 @@
[g]
[]
[(SubroutineCall
8 g
9 g
()
[]
()
Expand All @@ -108,7 +110,7 @@
()
Default
(Struct
8 A
9 A
)
()
Source
Expand All @@ -120,7 +122,7 @@
change_struct
(FunctionType
[(Struct
8 A
9 A
)]
()
Source
Expand Down Expand Up @@ -208,7 +210,7 @@
()
Default
(Struct
8 A
9 A
)
()
Source
Expand All @@ -220,7 +222,7 @@
f
(FunctionType
[(Struct
8 A
9 A
)]
()
Source
Expand Down Expand Up @@ -280,7 +282,7 @@
()
Default
(Struct
8 A
9 A
)
()
Source
Expand Down Expand Up @@ -311,7 +313,7 @@
[(=
(Var 5 x)
(StructTypeConstructor
8 A
9 A
[((Cast
(RealConstant
3.250000
Expand All @@ -326,14 +328,14 @@
))
((IntegerConstant 3 (Integer 4)))]
(Struct
8 A
9 A
)
()
)
()
)
(SubroutineCall
8 f
9 f
()
[((Var 5 x))]
()
Expand Down Expand Up @@ -408,7 +410,7 @@
()
)
(SubroutineCall
8 f
9 f
()
[((Var 5 x))]
()
Expand Down Expand Up @@ -452,7 +454,7 @@
()
)
(SubroutineCall
8 change_struct
9 change_struct
()
[((Var 5 x))]
()
Expand Down Expand Up @@ -510,13 +512,13 @@
main_program:
(Program
(SymbolTable
6
7
{
_lpython_main_program:
(ExternalSymbol
6
7
_lpython_main_program
8 _lpython_main_program
9 _lpython_main_program
_global_symbols
[]
_lpython_main_program
Expand All @@ -526,7 +528,7 @@
main_program
[_global_symbols]
[(SubroutineCall
6 _lpython_main_program
7 _lpython_main_program
()
[]
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-structs_02-2ab459a.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-structs_02-2ab459a.stdout",
"stdout_hash": "d00a784956e717045fd5bb8f917b315f717754c7e11069b96d3d3b57",
"stdout_hash": "e5df0fb84bfc694b884736c1c4a5ddaec25933d8dba54e894de3e961",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
Loading

0 comments on commit bdbcee7

Please sign in to comment.