File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 17
17
#define CEGIS_EXECUTE "__CPROVER_danger_execute"
18
18
#define CEGIS_RESULT_OPS "__CPROVER_cegis_RESULT_OPS"
19
19
#define CEGIS_MODULE "<builtin-library-cegis>"
20
- #define CEGIS_PREFIX "__CPROVER_cegis_ "
20
+ #define CEGIS_PREFIX CPROVER_PREFIX "cegis_ "
21
21
#define CEGIS_TMP_PREFIX CEGIS_PREFIX "tmp_"
22
22
#define CEGIS_PRIME_SUFFIX "_prime"
23
23
#define CEGIS_CONSTANT_PREFIX "CEGIS_CONSTANT_"
Original file line number Diff line number Diff line change
1
+ #include < cegis/instrument/literals.h>
2
+
1
3
#include < cegis/refactor/instructionset/create_cegis_processor.h>
2
4
3
5
namespace
@@ -24,9 +26,12 @@ std::set<typet> collect_context_types(const goto_ranget &range)
24
26
return collector.types ;
25
27
}
26
28
27
- void create_cegis_processor (const std::set<typet> &state_types,
29
+ #define CEGIS_PROCESSOR_FUNCTION_PREFIX CEGIS_PREFIX " processor_"
30
+
31
+ std::string create_cegis_processor (const std::set<typet> &state_types,
28
32
const size_t var_slots_per_state_type, const std::set<typet> &context_types)
29
33
{
34
+ std::string processor_name (CEGIS_PROCESSOR_FUNCTION_PREFIX);
30
35
// TODO: Implement
31
36
assert (false );
32
37
}
Original file line number Diff line number Diff line change @@ -32,11 +32,17 @@ std::set<typet> collect_context_types(const goto_ranget &range);
32
32
*
33
33
* @details
34
34
*
35
+ * @param st
36
+ * @param gf
35
37
* @param state_types
36
38
* @param var_slots_per_state_type
37
39
* @param context_types
40
+ *
41
+ * @return
38
42
*/
39
- void create_cegis_processor (
43
+ std::string create_cegis_processor (
44
+ symbol_tablet &st,
45
+ goto_functionst &gf,
40
46
const std::set<typet> &state_types,
41
47
size_t var_slots_per_state_type,
42
48
const std::set<typet> &context_types);
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class refactor_programt
47
47
goto_ranget spec_range;
48
48
std::set<irep_idt> state_vars;
49
49
std::set<typet> types;
50
+ std::string processor_function;
50
51
};
51
52
52
53
/* *
Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ void refactor_preprocessingt::operator()()
30
30
break ;
31
31
}
32
32
for (refactor_programt::sketcht &s : original_program.sketches )
33
+ {
33
34
s.state_vars =collect_state_vars (s.spec_range .first , s.spec_range .second );
35
+ // TODO: construct_instruction_set(original_program); // Multiple?
36
+ }
34
37
// TODO: Insert extern programs.
35
- // TODO: construct_instruction_set(original_program); // Multiple?
36
38
switch (type)
37
39
{
38
40
case refactoring_typet::NULL_OBJECT:
You can’t perform that action at this time.
0 commit comments