Skip to content

Commit

Permalink
Updated reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
czgdp1807 committed Jul 7, 2022
1 parent d0ae6aa commit f2c9702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/reference/asr-expr_12-6769be0.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr_12-6769be0.stdout",
"stdout_hash": "1ba34df4ed6d08ebaf2f95734c8403a771f2dea992b20df449380074",
"stdout_hash": "3cc0add5a845fbc14b2823425efc9391eb88b678faa5f825b2cf51b7",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-expr_12-6769be0.stdout
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(TranslationUnit (SymbolTable 1 {_lpython_main_program: (Subroutine (SymbolTable 6 {}) _lpython_main_program [] [(SubroutineCall 1 f () [] ())] Source Public Implementation () .false. .false.), check: (Subroutine (SymbolTable 3 {ptr: (Variable 3 ptr InOut () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) check [(Var 3 ptr)] [(Assert (IntegerCompare (Cast (ArrayRef 3 ptr [(() (IntegerConstant 0 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) IntegerToInteger (Integer 4 []) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Cast (ArrayRef 3 ptr [(() (IntegerConstant 1 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) IntegerToInteger (Integer 4 []) ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ())] Source Public Implementation () .false. .false.), f: (Subroutine (SymbolTable 4 {y: (Variable 4 y Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 1 (Integer 4 []))))]) Source Public Required .false.), yptr1: (Variable 4 yptr1 Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) f [] [(SubroutineCall 1 g () [((Var 4 yptr1)) ((Var 4 y))] ()) (SubroutineCall 1 check () [((Var 4 yptr1))] ())] Source Public Implementation () .false. .false.), g: (Subroutine (SymbolTable 2 {x: (Variable 2 x InOut () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.), y: (Variable 2 y InOut () () Default (Integer 2 [(() ())]) Source Public Required .false.)}) g [(Var 2 x) (Var 2 y)] [(= (ArrayRef 2 y [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 [(() ())]) ()) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 [(() ())]) ()) ()) (= (ArrayRef 2 y [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 [(() ())]) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 [(() ())]) ()) ()) (= (Var 2 x) (GetPointer (Var 2 y) (Pointer (Integer 2 [(() ())])) ()) ()) (Print () [(ArrayRef 2 x [(() (IntegerConstant 0 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) (ArrayRef 2 x [(() (IntegerConstant 1 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ())] () ())] Source Public Implementation () .false. .false.), main_program: (Program (SymbolTable 5 {}) main_program [] [(SubroutineCall 1 _lpython_main_program () [] ())])}) [])
(TranslationUnit (SymbolTable 1 {_lpython_main_program: (Subroutine (SymbolTable 6 {}) _lpython_main_program [] [(SubroutineCall 1 f () [] ())] Source Public Implementation () .false. .false.), check: (Subroutine (SymbolTable 3 {ptr: (Variable 3 ptr InOut () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) check [(Var 3 ptr)] [(Assert (IntegerCompare (Cast (ArrayItem 3 ptr [(() (IntegerConstant 0 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) IntegerToInteger (Integer 4 []) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Cast (ArrayItem 3 ptr [(() (IntegerConstant 1 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) IntegerToInteger (Integer 4 []) ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ())] Source Public Implementation () .false. .false.), f: (Subroutine (SymbolTable 4 {y: (Variable 4 y Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 1 (Integer 4 []))))]) Source Public Required .false.), yptr1: (Variable 4 yptr1 Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) f [] [(SubroutineCall 1 g () [((Var 4 yptr1)) ((Var 4 y))] ()) (SubroutineCall 1 check () [((Var 4 yptr1))] ())] Source Public Implementation () .false. .false.), g: (Subroutine (SymbolTable 2 {x: (Variable 2 x InOut () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.), y: (Variable 2 y InOut () () Default (Integer 2 [(() ())]) Source Public Required .false.)}) g [(Var 2 x) (Var 2 y)] [(= (ArrayItem 2 y [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 [(() ())]) ()) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 [(() ())]) ()) ()) (= (ArrayItem 2 y [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 [(() ())]) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 [(() ())]) ()) ()) (= (Var 2 x) (GetPointer (Var 2 y) (Pointer (Integer 2 [(() ())])) ()) ()) (Print () [(ArrayItem 2 x [(() (IntegerConstant 0 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ()) (ArrayItem 2 x [(() (IntegerConstant 1 (Integer 4 [])) ())] (Pointer (Integer 2 [(() ())])) ())] () ())] Source Public Implementation () .false. .false.), main_program: (Program (SymbolTable 5 {}) main_program [] [(SubroutineCall 1 _lpython_main_program () [] ())])}) [])

0 comments on commit f2c9702

Please sign in to comment.