Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
divine-ltsmin-deb
Commits
5addfe60
Commit
5addfe60
authored
Feb 21, 2013
by
Alfons Laarman
Browse files
Fix definition of transition_info (closes #693)
parent
cde8480e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/dvecompile.cpp
View file @
5addfe60
...
...
@@ -178,6 +178,7 @@ void dve_compiler::gen_header()
line
(
"{"
);
line
(
" int* label;"
);
line
(
" int group;"
);
line
(
" int por_proviso;"
);
line
(
"} transition_info_t;"
);
line
();
}
else
{
...
...
@@ -1221,7 +1222,7 @@ void dve_compiler::print_generator()
current_label
=
0
;
line
(
"extern
\"
C
\"
int get_successor( void* model, int t, const state_struct_t *in, void (*callback)(void* arg, transition_info_t *transition_info, state_struct_t *out), void *arg ) "
);
block_begin
();
line
(
"transition_info_t transition_info = { NULL, t };"
);
line
(
"transition_info_t transition_info = { NULL, t
, 0
};"
);
line
(
"(void)model; // ignore model"
);
line
(
"int states_emitted = 0;"
);
line
(
"state_struct_t tmp;"
);
...
...
@@ -1247,7 +1248,7 @@ void dve_compiler::print_generator()
block_begin
();
line
(
"(void)model; // ignore model"
);
line
(
"bool system_in_deadlock = true;"
);
line
(
"transition_info_t transition_info = { NULL, -1 };"
);
line
(
"transition_info_t transition_info = { NULL, -1
, 0
};"
);
line
(
"int states_emitted = 0;"
);
line
(
"state_struct_t tmp;"
);
line
(
"state_struct_t *out = &tmp;"
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment