Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry-packages
currypp
Commits
b5eef8a1
Commit
b5eef8a1
authored
Oct 30, 2018
by
Michael Hanus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to updates of CurryCheck
parent
83fe0dfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
.gitignore
.gitignore
+6
-0
src/DefaultRules/TransDefRules.curry
src/DefaultRules/TransDefRules.curry
+5
-4
No files found.
.gitignore
View file @
b5eef8a1
*~
cdoc
docs/*.aux
docs/*.pdf
docs/*.toc
docs/*.log
docs/*.out
docs/*.synctex.gz
.curry
.cpm
src/DefaultRules/TransDefRules.curry
View file @
b5eef8a1
...
...
@@ -3,7 +3,7 @@
--- and deterministic functions.
---
--- @author Michael Hanus
--- @version October 201
6
--- @version October 201
8
-----------------------------------------------------------------------------
import AbstractCurry.Types
...
...
@@ -82,11 +82,12 @@ transDefaultRules verb moreopts _ prog = do
-- of proof files:
filterProofObligation :: Int -> [String] -> [QName] -> IO [QName]
filterProofObligation _ _ [] = return []
filterProofObligation verb prooffiles (qf@(_,fn) : qfs) = do
let hasdetproof = existsProofFor (determinismTheoremFor fn) prooffiles
filterProofObligation verb prooffiles (qf@(mn,fn) : qfs) = do
let dettheoname = (mn, determinismTheoremFor fn)
hasdetproof = existsProofFor dettheoname prooffiles
when (hasdetproof && verb>0) $ putStrLn $
"Proofs for determinism property of " ++ showQName qf ++ " found:\n" ++
unlines (filter (isProofFileNameFor
(
det
erminismTheoremFor fn)
) prooffiles)
unlines (filter (isProofFileNameFor det
theoname
) prooffiles)
filterqfs <- filterProofObligation verb prooffiles qfs
return (if hasdetproof then filterqfs else qf : filterqfs)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment