/* Author: Yihao Download LCP.zip from: http://fm2012.verifythis.org/challenges ----------------- Problem description: This is a verifyThis problem in 2012. This task asks you to get the longest common prefix of two subStrings. ----------------- Verification task: Implement a the lcp function which takes an array, its length and two indices as input and verify that it behaves as described. command: civl verify quantifiedComp.cvl result: the problem is solved */ #include #include $input int n=3; $input int x; $input int y; $input int X1[n]; $assume (x < n && y < n && x >=0 && y>=0); int lcp (int *arr, int n, int x, int y) { int l=0; while (x+l=0 && i