Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visb-visualisation-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
visb-visualisation-examples
Commits
e53eaf9b
Commit
e53eaf9b
authored
8 months ago
by
Michael Leuschel
Browse files
Options
Downloads
Patches
Plain Diff
adapt sieve example
Signed-off-by:
Michael Leuschel
<
leuschel@uni-duesseldorf.de
>
parent
6c0229b1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sieve/Sieve_VisB.mch
+20
-7
20 additions, 7 deletions
Sieve/Sieve_VisB.mch
with
20 additions
and
7 deletions
Sieve/Sieve_VisB.mch
+
20
−
7
View file @
e53eaf9b
...
@@ -5,20 +5,33 @@ DEFINITIONS
...
@@ -5,20 +5,33 @@ DEFINITIONS
SET_PREF_MININT == -1;
SET_PREF_MININT == -1;
MINLIM == MAXINT-1;
MINLIM == MAXINT-1;
GOAL == (cur=1 & numbers /= {});
GOAL == (cur=1 & numbers /= {});
VISB_
SVG
_FILE == "";
VISB_
JSON
_FILE == "";
VISB_SVG_BOX == rec(height:220, width:220, viewBox:"0 0 220 220");
VISB_SVG_BOX == rec(height:220, width:220, viewBox:"0 0 220 220");
vsz == 20;
vsz == 20;
"LibrarySVG.def"; "CHOOSE.def";
VISB_SVG_CONTENTS == '''
<style>
.tl-dps {
stroke : red;
stroke-linecap: butt;
opacity : 0.8
}
</style>
''';
VISB_SVG_OBJECTS3 == rec(`id`:"line", svg_class:"line", class:MU({"tl-dps"}),
title : ```Track Line ```, visibility:MU({"visible"}),
`stroke-dasharray`:svg_set_dasharray({1,3,4,5,6,7,8,9,10,50,51}), //```0 0 3 10000```,
x1:0,y1:210, x2:220,y2:210);
VISB_SVG_OBJECTS2 == {x,y•x:0..9 & y:0..9 | rec(`id`:("nr",x,y), svg_class:"text",
VISB_SVG_OBJECTS2 == {x,y•x:0..9 & y:0..9 | rec(`id`:("nr",x,y), svg_class:"text",
x:vsz+x*vsz, y:vsz+y*vsz, `font-size`:10,
x:vsz+x*vsz, y:vsz+y*vsz, `font-size`:10,
text:x+y*10)};
text:x+y*10)};
VISB_SVG_OBJECTS1 == {x,y•x:0..9 & y:0..9 | rec(`id`:("rec",x,y), svg_class:"rect",
VISB_SVG_OBJECTS1 == {x,y•x:0..9 & y:0..9 | rec(`id`:("rec",x,y), svg_class:"rect",
x:15+x*vsz, y:5+y*vsz,
x:15+x*vsz, y:5+y*vsz,
stroke:"green", `stroke-width`:1.5,fill:"white",
`stroke-width`:1.5,
width:vsz-1, height:vsz-1)};
width:vsz-1, height:vsz-1,
VISB_SVG_UPDATES2 == {x,y•x:0..9 & y:0..9 | rec(`id`:("rec",x,y),
stroke:IF x+y*10=cur THEN "red"
stroke:IF x+y*10=cur THEN "red"
ELSIF x+y*10:numbers THEN "green" ELSE "gray" END,
ELSIF x+y*10:numbers THEN "green" ELSE "gray" END,
fill: IF x+y*10:numbers THEN "white" ELSE "gray" END)};
fill: IF x+y*10:numbers THEN "white" ELSE "
light
gray" END)};
VARIABLES numbers,cur, limit
VARIABLES numbers,cur, limit
INVARIANT
INVARIANT
numbers <: INTEGER & cur:NATURAL1 & limit:NATURAL1
numbers <: INTEGER & cur:NATURAL1 & limit:NATURAL1
...
...
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