Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WSymb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTAWA-plugins
WSymb
Commits
9486da73
Commit
9486da73
authored
5 years ago
by
Forget Julien
Browse files
Options
Downloads
Patches
Plain Diff
Extract the exit formula from Power.
parent
4732be82
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
simplify/simplify.ml
+1
-1
1 addition, 1 deletion
simplify/simplify.ml
simplify/test/power.expect
+2
-2
2 additions, 2 deletions
simplify/test/power.expect
simplify/test/power.pwf
+1
-1
1 addition, 1 deletion
simplify/test/power.pwf
with
4 additions
and
4 deletions
simplify/simplify.ml
+
1
−
1
View file @
9486da73
...
...
@@ -268,7 +268,7 @@ let simplify_power loops (f_body, f_exit, l, it) =
|
(
FConst
c1
,
FConst
c2
)
when
(
not
(
is_symb
it
))
->
let
it
=
int_of_symb
it
in
FConst
(
Abstract_wcet
.
pow
loops
c1
c2
l
it
)
|
_
,_
->
FPower
(
f_body
,
f_exit
,
l
,
it
)
|
_
,_
->
FPlus
[
f_exit
;
FPower
(
f_body
,
bot_f
,
l
,
it
)
]
let
rec
simplify_product
loops
(
k
,
f
)
=
if
k
=
0
then
...
...
This diff is collapsed.
Click to expand it.
simplify/test/power.expect
+
2
−
2
View file @
9486da73
(l:1;{16,13}) loops: endl
(l:1;{16,9}) loops: endl
((l:1;{5,3,2}), (
l:1;{4,1
}), l:2)^p:1 loops: endl
2.(((l:1;{5,3,2}), (
l:1;{4,1
}), l:2)^p:1) loops: endl
((l:1;{4,1}) +
((l:1;{5,3,2}), (
__top;{,0
}), l:2)^p:1
)
loops: endl
((l:1;{8,2}) +
2.(((l:1;{5,3,2}), (
__top;{,0
}), l:2)^p:1)
)
loops: endl
This diff is collapsed.
Click to expand it.
simplify/test/power.pwf
+
1
−
1
View file @
9486da73
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment