Dafny “no terms found to trigger on” error message
问题 I have an array line that has a string contained in it of length l , pat is another array that has a string contained in it of length p . Note: p and l are not the length of the arrays The objective is to see if the string contained in pat exists in line . If so, this method should return the index in line of the first letter of the word, if not it should return -1 . The invariants that are giving us the "no terms found to trigger on" errors are ensures exists j :: ( 0<= j < l) && j == pos;