From f2c9702f6cfa33140e227688a82723e1bd8735d2 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Thu, 7 Jul 2022 12:39:24 +0530 Subject: [PATCH] Updated reference tests --- tests/reference/asr-expr_12-6769be0.json | 2 +- tests/reference/asr-expr_12-6769be0.stdout | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/reference/asr-expr_12-6769be0.json b/tests/reference/asr-expr_12-6769be0.json index ad37418432..b62722d2b2 100644 --- a/tests/reference/asr-expr_12-6769be0.json +++ b/tests/reference/asr-expr_12-6769be0.json @@ -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 diff --git a/tests/reference/asr-expr_12-6769be0.stdout b/tests/reference/asr-expr_12-6769be0.stdout index 15de27b543..eff32d05f9 100644 --- a/tests/reference/asr-expr_12-6769be0.stdout +++ b/tests/reference/asr-expr_12-6769be0.stdout @@ -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 () [] ())])}) [])