Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
nofib
Commits
a8522e82
Commit
a8522e82
authored
Apr 28, 2005
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2005-04-28 10:17:56 by simonmar]
mode=slow
parent
a856647a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
spectral/boyer2/Main.hs
spectral/boyer2/Main.hs
+4
-4
spectral/boyer2/Makefile
spectral/boyer2/Makefile
+3
-0
No files found.
spectral/boyer2/Main.hs
View file @
a8522e82
...
...
@@ -20,6 +20,7 @@ import Lisplikefns
import
Rewritefns
import
Rulebasetext
import
Checker
import
System.Environment
-- set-up functions for creating rulebase from text strings
...
...
@@ -79,11 +80,10 @@ subterm = mkLisplist (strToToken
teststatement
::
Lisplist
teststatement
=
applysubst
subterm
statement
testresult
::
Bool
testresult
=
tautp
teststatement
report
::
Bool
->
String
report
True
=
"The term is a tautology
\n
"
report
False
=
"The term is not a tautology
\n
"
main
=
putStr
(
report
testresult
)
main
=
do
(
n
:
_
)
<-
getArgs
putStr
(
report
(
and
(
take
(
read
n
)
(
map
tautp
(
repeat
teststatement
)))))
spectral/boyer2/Makefile
View file @
a8522e82
...
...
@@ -3,3 +3,6 @@ include $(TOP)/mk/boilerplate.mk
-include
opts.mk
include
$(TOP)/mk/target.mk
FAST_OPTS
=
1
NORM_OPTS
=
1
SLOW_OPTS
=
40000000
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