Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
i57
dibugger
Commits
119d9aa3
Commit
119d9aa3
authored
Mar 28, 2019
by
Mihai Herda
Browse files
Examples.
parent
56394b9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/gcd.rdbf
0 → 100644
View file @
119d9aa3
PROGRAM{
stepsize=1
name='A'
lastExecLine=0
PROGRAMTEXT{
def_blockLen=11
int main(int a, int b) {
int i = 0;
while (a != b && i < 500) {
i = i + 1;
if(a > b)
a = a - b;
else
b = b - a;
}
return a;
}
}
INPUTVALUES{
a='2'
b='4'
}
VARINSPECTOR{
}
BREAKPOINTS{
}
}
PROGRAM{
stepsize=1
name='B'
lastExecLine=0
PROGRAMTEXT{
def_blockLen=11
int main(int b, int a) {
int i = 0;
while (a != b && i < 500) {
i = i + 1;
if(b > a)
a = a - b;
else
b = b - a;
}
return b;
}
}
INPUTVALUES{
a='4'
b='2'
}
VARINSPECTOR{
}
BREAKPOINTS{
}
}
CONDBREAKPOINT{
expression='A.a != B.b'
SCOPE{
begin=1
end=11
}
SCOPE{
begin=1
end=11
}
}
examples/informationflow.rdbf
0 → 100644
View file @
119d9aa3
PROGRAM{
stepsize=1
name='A'
lastExecLine=0
PROGRAMTEXT{
def_blockLen=10
int main(int h, int l){
int low = 0;
if(h==0){
low = l;
}
else{
low = l + 1;
}
return low;
}
}
INPUTVALUES{
h='0'
l='1'
}
VARINSPECTOR{
}
BREAKPOINTS{
}
}
PROGRAM{
stepsize=1
name='B'
lastExecLine=0
PROGRAMTEXT{
def_blockLen=10
int main(int h, int l){
int low = 0;
if(h==0){
low = l;
}
else{
low = l + 1;
}
return low;
}
}
INPUTVALUES{
h='1'
l='1'
}
VARINSPECTOR{
}
BREAKPOINTS{
}
}
CONDBREAKPOINT{
expression='A.low != B.low'
SCOPE{
begin=1
end=10
}
SCOPE{
begin=1
end=10
}
}
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