Commit 42743a1c authored by Elwin Pater's avatar Elwin Pater Committed by Michael Weber

Added support for ltl properties

parent 53814127
...@@ -1178,10 +1178,17 @@ void dve_compiler::gen_is_accepting() ...@@ -1178,10 +1178,17 @@ void dve_compiler::gen_is_accepting()
if(!have_property) if(!have_property)
return; return;
line( "extern \"C\" bool is_accepting( CustomSetup *setup, Blob b, int size )" ); if (ltsmin) {
block_begin(); line( "extern \"C\" int buchi_is_accepting( void* model, char *_state )" );
block_begin();
line( "(void)model;" );
line( "state_struct_t &state = * (state_struct_t*) _state;" );
} else {
line( "extern \"C\" bool is_accepting( CustomSetup *setup, Blob b, int size )" );
block_begin();
line( "state_struct_t &state = b.get< state_struct_t >( setup->slack );" );
}
line( "state_struct_t &state = b.get< state_struct_t >( setup->slack );" );
for(size_int_t i = 0; i < dynamic_cast<dve_process_t*>(get_process((get_property_gid())))->get_state_count(); i++) for(size_int_t i = 0; i < dynamic_cast<dve_process_t*>(get_process((get_property_gid())))->get_state_count(); i++)
{ {
if (dynamic_cast<dve_process_t*>(get_process((get_property_gid())))->get_acceptance(i, 0, 1) ) if (dynamic_cast<dve_process_t*>(get_process((get_property_gid())))->get_acceptance(i, 0, 1) )
...@@ -1226,6 +1233,8 @@ void dve_compiler::print_generator() ...@@ -1226,6 +1233,8 @@ void dve_compiler::print_generator()
block_end(); block_end();
line(); line();
gen_is_accepting();
many = false; many = false;
current_label = 0; current_label = 0;
line( "extern \"C\" int get_successor( void* model, int t, state_struct_t *in, void (*callback)(void* arg, transition_info_t *transition_info, state_struct_t *out), void *arg ) " ); line( "extern \"C\" int get_successor( void* model, int t, state_struct_t *in, void (*callback)(void* arg, transition_info_t *transition_info, state_struct_t *out), void *arg ) " );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment