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
c73da2bf
Commit
c73da2bf
authored
May 08, 2015
by
Jeroen Meijer
Browse files
dvecompile: implement maybe check using exception handling (setjmp).
parent
870850b7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
tools/dvecompile.cpp
View file @
c73da2bf
This diff is collapsed.
Click to expand it.
tools/dvecompile.h
View file @
c73da2bf
...
...
@@ -119,7 +119,7 @@ struct dve_compiler: public dve_explicit_system_t
void
write_bound_check_C
(
dve_expression_t
&
expr
,
std
::
ostream
&
ostr
,
std
::
string
state_name
);
void
write_maybe_check_C
(
dve_expression_t
&
expr
,
std
::
ostream
&
ostr
,
std
::
string
state_name
);
void
write_C
(
dve_expression_t
&
expr
,
std
::
ostream
&
ostr
,
std
::
string
state_name
);
void
write_C
(
dve_expression_t
&
expr
,
std
::
ostream
&
ostr
,
std
::
string
state_name
,
bool
wrap
);
bool
m_if_disjoint
;
bool
m_if_empty
;
...
...
@@ -146,7 +146,7 @@ struct dve_compiler: public dve_explicit_system_t
void
if_cexpr_clause
(
dve_expression_t
*
expr
,
std
::
string
state
)
{
if
(
!
expr
)
return
;
if_clause
(
cexpr
(
*
expr
,
state
)
);
if_clause
(
cexpr
(
*
expr
,
state
,
false
)
);
}
void
if_end
()
{
...
...
@@ -200,10 +200,10 @@ struct dve_compiler: public dve_explicit_system_t
}
std
::
string
cmaybe
(
dve_expression_t
&
expr
,
std
::
string
state
);
std
::
string
cexpr
(
dve_expression_t
&
expr
,
std
::
string
state
);
std
::
string
cexpr
(
dve_expression_t
&
expr
,
std
::
string
state
,
bool
wrap
);
void
print_cexpr
(
dve_expression_t
&
expr
,
std
::
string
state
)
{
line
(
cexpr
(
expr
,
state
)
+
";"
);
line
(
cexpr
(
expr
,
state
,
false
)
+
";"
);
}
void
new_label
()
{
...
...
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