Skip to content

Commit 866a407

Browse files
committed
copilot-theorem: Look for falsifiable (not invalid). Refs Copilot-Language#495.
In Kind2, disproven properties are tagged with `falsifiable` in the XML output, but the code in `copilot-theorem`'s Kind2 backend was instead searching for a tag named `invalid`. As a result, `copilot-theorem` would error when attempting to disprove properties that are false, as it fail to parse the XML output. This fixes the issue by replacing `invalid` with `falsifiable`.
1 parent f823901 commit 866a407

File tree

1 file changed

+3
-3
lines changed
  • copilot-theorem/src/Copilot/Theorem/Kind2

1 file changed

+3
-3
lines changed

copilot-theorem/src/Copilot/Theorem/Kind2/Output.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ parseOutput :: String -- ^ Property whose validity is being checked.
1919
parseOutput prop xml = fromJust $ do
2020
root <- parseXMLDoc xml
2121
case findAnswer . findPropTag $ root of
22-
"valid" -> return (Output Valid [])
23-
"invalid" -> return (Output Invalid [])
24-
s -> err $ "Unrecognized status : " ++ s
22+
"valid" -> return (Output Valid [])
23+
"falsifiable" -> return (Output Invalid [])
24+
s -> err $ "Unrecognized status : " ++ s
2525

2626
where
2727

0 commit comments

Comments
 (0)