@@ -87,7 +109,7 @@ compareWlps env decls s (path, s') = do
where
compareMethod(ident,e)=caselookupidents'of
Nothing->putStrLn("The method \'"++showident++"\' is missing in one of the mutations.")>>return0-- print a warning and return 0 errors found
Juste'->ifunsafeIsTrue(extendEnvenvdeclsident)decls(e`imp`e')thenreturn0elseputStrLn("error detected in mutation: "++path++" method: "++prettyPrintident)>>return1-- print a message and return 1 error found
Juste'->ifunsafeIsTrue(extendEnvenvdeclsident)decls(e`imp`e')thenreturn0elseprintAndAppend(getMutantNumberpath++" "++prettyPrintident)>>return1-- print a message and return 1 error found
-- Gets the right post-condition given the type of a method
getPostCond::MaybeType->Exp
...
...
@@ -99,10 +121,14 @@ getPostCond t = case parser Language.Java.Parser.exp postCond' of
Just(RefType_)->postCondRefType
Just(PrimType_)->postCondPrimType
-- Gets the mutant number (as a string) of a generated mutation