Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AVANZINI Martin
ecoimp
Commits
0de6ac7c
Commit
0de6ac7c
authored
May 08, 2020
by
AVANZINI Martin
Browse files
avoid constant norms in norm-template
parent
0e2fc169
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
results
View file @
0de6ac7c
This diff is collapsed.
Click to expand it.
src/PWhile/InferEt.hs
View file @
0de6ac7c
...
...
@@ -268,7 +268,8 @@ p1 `normTemplateEq` p2 = and $ P.coefficients $
P
.
zipCoefficientsWith
(
const
False
)
(
const
False
)
(
\
_
_
->
True
)
p1
p2
norm
::
C
.
Norm
->
NormTemplate
norm
=
P
.
variable
norm
(
C
.
Norm
_
(
E
.
Constant
_
))
=
P
.
coefficient
1
norm
n
=
P
.
variable
n
normFromExp
::
E
.
Exp
->
NormTemplate
normFromExp
e
=
norm
(
C
.
Norm
(
e
.>=
0
)
e
)
...
...
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