Menu Icon Download Code Delete Icon Delete

View Code

Complete this form and hit the "Save Changes" button!

* You must first save the code to be able to use this feature

No ratings

rejected
Published

Failed to verify the file. Unable to parse the verify result. MatrixStringOperations.dfy(14,17): Error: new can be applied only to class types (got seq)
   |
14 |     var parts := new seq();
   |                  ^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(37,18): Error: new can be applied only to class types (got seq>)
   |
37 |     var result := new seq>(rows.Length);
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(39,23): Error: type seq does not have a member Length
   |
39 |     for i := 0 to rows.Length - 1 {
   |                   ^^^^^^^^^^^

MatrixStringOperations.dfy(41,22): Error: new can be applied only to class types (got seq)
   |
41 |         var rowSeq := new seq(row.Length);
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(42,26): Error: type seq does not have a member Length
   |
42 |         for j := 0 to row.Length - 1 {
   |                       ^^^^^^^^^^

MatrixStringOperations.dfy(43,25): Error: unresolved identifier: Int
   |
43 |             rowSeq[j] := Int(row[j]);
   |                          ^^^

MatrixStringOperations.dfy(48,6): Error: RHS (of type array?) not assignable to LHS (of type seq>)
   |
48 |     m := result;
   |     ^^^^^^^^^^^^

MatrixStringOperations.dfy(43,19): Error: incorrect type for selection into ? (got int)
   |
43 |             rowSeq[j] := Int(row[j]);
   |                    ^

MatrixStringOperations.dfy(67,12): Error: expression is not allowed to invoke a method (matrixSum)
   |
67 |     ensures matrixSum(s1, s2) == res
   |             ^^^^^^^^^

MatrixStringOperations.dfy(67,21): Error: method call is not allowed to be used in an expression context (matrixSum)
   |
67 |     ensures matrixSum(s1, s2) == res
   |             ^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(80,29): Error: type of the receiver is not fully determined at this program point
   |
80 |             row := row + sum.ToString() + " ";
   |                          ^^^^^^^^^^^^

MatrixStringOperations.dfy(82,31): Error: type seq does not have a member Trim
   |
82 |         result := result + row.Trim() + "|"; // add row with separator
   |                            ^^^^^^^^

MatrixStringOperations.dfy(97,12): Error: expression is not allowed to invoke a method (matrixDifference)
   |
97 |     ensures matrixDifference(s1, s2) == res
   |             ^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(97,28): Error: method call is not allowed to be used in an expression context (matrixDifference)
   |
97 |     ensures matrixDifference(s1, s2) == res
   |             ^^^^^^^^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(110,30): Error: type of the receiver is not fully determined at this program point
    |
110 |             row := row + diff.ToString() + " ";
    |                          ^^^^^^^^^^^^^

MatrixStringOperations.dfy(130,12): Error: expression is not allowed to invoke a method (matrixProduct)
    |
130 |     ensures matrixProduct(s1, s2) == res
    |             ^^^^^^^^^^^^^

MatrixStringOperations.dfy(130,25): Error: method call is not allowed to be used in an expression context (matrixProduct)
    |
130 |     ensures matrixProduct(s1, s2) == res
    |             ^^^^^^^^^^^^^^^^^^^^^

MatrixStringOperations.dfy(147,29): Error: type int does not have a member ToString
    |
147 |             row := row + sum.ToString() + " ";
    |                          ^^^^^^^^^^^^

MatrixStringOperations.dfy(149,31): Error: type seq does not have a member Trim
    |
149 |         result := result + row.Trim() + "|"; // add row with separator
    |                            ^^^^^^^^

19 resolution/type errors detected in test.dfy
2025-05-01 13:03:19 UTC
Dependency Graph: Preview
File Explorer:

Name Verify Status