Complete this form and hit the "Save Changes" button!
No ratings
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
Are you sure you want to delete this code? Please type DELETE in the box below to confirm.
Are you sure you want to verify this code?
Are you sure you want to publish this code?
Are you sure you want to unpublish this code?
Are you sure you want to autogenerate the summary + description for this code?