// LinearGapPenalty: the score of a gap of Length positions under a linear gap // model, where every position of a gap scores Gap (usually negative). FUNCTION LinearGapPenalty(Length : INTEGER, Gap : INTEGER) RETURNS INTEGER REQUIRE Length >= 0 ENSURE RESULT == Length * Gap RETURN Length * Gap ENDFUNCTION