Skip to content

Commit 895b929

Browse files
committed
Updated reference tests
1 parent 4a4ea12 commit 895b929

8 files changed

+99
-167
lines changed

tests/reference/asr-test_max_min-3c2fc51.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-test_max_min-3c2fc51.stdout",
9-
"stdout_hash": "a97e24d0def9935e078bf1cab8d64769594ed6326bf3262cbf43c56d",
9+
"stdout_hash": "b18ebd5e02d886b7c16ef0603267183b822475bdad66e516742f23a9",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-test_max_min-3c2fc51.stdout

Lines changed: 35 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -528,36 +528,6 @@
528528
Public
529529
Required
530530
.false.
531-
),
532-
min:
533-
(ExternalSymbol
534-
5
535-
min
536-
7 min
537-
lpython_builtin
538-
[]
539-
min
540-
Private
541-
),
542-
min@__lpython_overloaded_2__min:
543-
(ExternalSymbol
544-
5
545-
min@__lpython_overloaded_2__min
546-
7 __lpython_overloaded_2__min
547-
lpython_builtin
548-
[]
549-
__lpython_overloaded_2__min
550-
Public
551-
),
552-
min@__lpython_overloaded_3__min:
553-
(ExternalSymbol
554-
5
555-
min@__lpython_overloaded_3__min
556-
7 __lpython_overloaded_3__min
557-
lpython_builtin
558-
[]
559-
__lpython_overloaded_3__min
560-
Public
561531
)
562532
})
563533
test_min_float
@@ -576,8 +546,7 @@
576546
[]
577547
.false.
578548
)
579-
[min@__lpython_overloaded_2__min
580-
min@__lpython_overloaded_3__min]
549+
[]
581550
[]
582551
[(=
583552
(Var 5 d)
@@ -605,15 +574,14 @@
605574
)
606575
(Assert
607576
(RealCompare
608-
(FunctionCall
609-
5 min@__lpython_overloaded_2__min
610-
5 min
611-
[((Var 5 d))
612-
((Var 5 e))
613-
((Var 5 f))]
577+
(IntrinsicFunction
578+
Min
579+
[(Var 5 d)
580+
(Var 5 e)
581+
(Var 5 f)]
582+
0
614583
(Real 8)
615584
()
616-
()
617585
)
618586
Eq
619587
(Var 5 f)
@@ -624,14 +592,13 @@
624592
)
625593
(Assert
626594
(RealCompare
627-
(FunctionCall
628-
5 min@__lpython_overloaded_3__min
629-
5 min
630-
[((Var 5 e))
631-
((Var 5 f))]
595+
(IntrinsicFunction
596+
Min
597+
[(Var 5 e)
598+
(Var 5 f)]
599+
0
632600
(Real 8)
633601
()
634-
()
635602
)
636603
Eq
637604
(Var 5 f)
@@ -698,36 +665,6 @@
698665
Public
699666
Required
700667
.false.
701-
),
702-
min:
703-
(ExternalSymbol
704-
4
705-
min
706-
7 min
707-
lpython_builtin
708-
[]
709-
min
710-
Private
711-
),
712-
min@__lpython_overloaded_0__min:
713-
(ExternalSymbol
714-
4
715-
min@__lpython_overloaded_0__min
716-
7 __lpython_overloaded_0__min
717-
lpython_builtin
718-
[]
719-
__lpython_overloaded_0__min
720-
Public
721-
),
722-
min@__lpython_overloaded_1__min:
723-
(ExternalSymbol
724-
4
725-
min@__lpython_overloaded_1__min
726-
7 __lpython_overloaded_1__min
727-
lpython_builtin
728-
[]
729-
__lpython_overloaded_1__min
730-
Public
731668
)
732669
})
733670
test_min_int
@@ -746,8 +683,7 @@
746683
[]
747684
.false.
748685
)
749-
[min@__lpython_overloaded_0__min
750-
min@__lpython_overloaded_1__min]
686+
[]
751687
[]
752688
[(=
753689
(Var 4 a)
@@ -766,14 +702,13 @@
766702
)
767703
(Assert
768704
(IntegerCompare
769-
(FunctionCall
770-
4 min@__lpython_overloaded_0__min
771-
4 min
772-
[((Var 4 a))
773-
((Var 4 b))]
705+
(IntrinsicFunction
706+
Min
707+
[(Var 4 a)
708+
(Var 4 b)]
709+
0
774710
(Integer 4)
775711
()
776-
()
777712
)
778713
Eq
779714
(Var 4 a)
@@ -784,15 +719,14 @@
784719
)
785720
(Assert
786721
(IntegerCompare
787-
(FunctionCall
788-
4 min@__lpython_overloaded_1__min
789-
4 min
790-
[((Var 4 a))
791-
((Var 4 b))
792-
((Var 4 c))]
722+
(IntrinsicFunction
723+
Min
724+
[(Var 4 a)
725+
(Var 4 b)
726+
(Var 4 c)]
727+
0
793728
(Integer 4)
794729
()
795-
()
796730
)
797731
Eq
798732
(Var 4 a)
@@ -803,15 +737,14 @@
803737
)
804738
(Assert
805739
(IntegerCompare
806-
(FunctionCall
807-
4 min@__lpython_overloaded_1__min
808-
4 min
809-
[((IntegerConstant 1 (Integer 4)))
810-
((IntegerConstant 2 (Integer 4)))
811-
((IntegerConstant 3 (Integer 4)))]
740+
(IntrinsicFunction
741+
Min
742+
[(IntegerConstant 1 (Integer 4))
743+
(IntegerConstant 2 (Integer 4))
744+
(IntegerConstant 3 (Integer 4))]
745+
0
812746
(Integer 4)
813747
(IntegerConstant 1 (Integer 4))
814-
()
815748
)
816749
Eq
817750
(IntegerConstant 1 (Integer 4))
@@ -825,14 +758,13 @@
825758
)
826759
(Assert
827760
(IntegerCompare
828-
(FunctionCall
829-
4 min@__lpython_overloaded_0__min
830-
4 min
831-
[((IntegerConstant 1 (Integer 4)))
832-
((IntegerConstant 6 (Integer 4)))]
761+
(IntrinsicFunction
762+
Min
763+
[(IntegerConstant 1 (Integer 4))
764+
(IntegerConstant 6 (Integer 4))]
765+
0
833766
(Integer 4)
834767
(IntegerConstant 1 (Integer 4))
835-
()
836768
)
837769
Eq
838770
(IntegerConstant 1 (Integer 4))

tests/reference/c-bindc_06-a30d20f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "c-bindc_06-a30d20f.stdout",
9-
"stdout_hash": "7fdf946af48e4b286aa2a5a328ed8edb8e50b98c252f7290f273d1a0",
9+
"stdout_hash": "865ab4f73c306f11d3191e9627c00edb01ec2984bad90aaa438daecd",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/c-bindc_06-a30d20f.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ void test_arrays()
5353
array2->n_dims = 1;
5454
array2->dims[0].lower_bound = 0;
5555
array2->dims[0].length = 40;
56-
struct CompareOperator compare_operator_value;
57-
struct CompareOperator* compare_operator = &compare_operator_value;
56+
struct CompareOperator compare_operator_value_rafnSlnJdpcEyT2WfShwVb;
57+
struct CompareOperator* compare_operator = &compare_operator_value_rafnSlnJdpcEyT2WfShwVb;
5858
compare_operator->op_name = NULL;
5959
int32_t i;
6060
bool is_small;

tests/reference/c-loop2-ce7de51.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "c-loop2-ce7de51.stdout",
9-
"stdout_hash": "fd4cf89a39c2fbde40b4174802c6f727476ad8ef2d4e04b2ec113f1a",
9+
"stdout_hash": "4f9f37c5001a5e91a51d10f89ae9917799a1b863ecea6031e0620b87",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

0 commit comments

Comments
 (0)