14 #ifndef CPROVER_GOTO_INSTRUMENT_WMM_WEAK_MEMORY_H
15 #define CPROVER_GOTO_INSTRUMENT_WMM_WEAK_MEMORY_H
38 unsigned max_po_trans,
57 #define OPT_WMM_MEMORY_MODEL "(mm):"
59 #define OPT_WMM_INSTRUMENTATION_STRATEGIES \
60 "(one-event-per-cycle)" \
61 "(minimum-interference)" \
66 #define OPT_WMM_LIMITS \
70 #define OPT_WMM_LOOPS \
71 "(force-loop-duplication)" \
72 "(no-loop-duplication)"
74 #define OPT_WMM_MISC \
79 "(render-cluster-file)" \
80 "(render-cluster-function)" \
86 OPT_WMM_MEMORY_MODEL \
87 OPT_WMM_INSTRUMENTATION_STRATEGIES \
92 #define HELP_WMM_FULL \
93 " {y--mm} [{ytso}|{ypso}|{yrmo}|{ypower}] \t " \
94 "instruments a weak memory model\n" \
95 " {y--scc} \t detects critical cycles per SCC (one thread per SCC)\n" \
96 " {y--one-event-per-cycle} \t only instruments one event per cycle\n" \
97 " {y--minimum-interference} \t instruments an optimal number of events\n" \
98 " {y--my-events} \t only instruments events whose ids appear in inst.evt\n" \
99 " {y--read-first}, {y--write-first} \t " \
100 "only instrument cycles where a read or write occurs as first event, " \
102 " {y--max-var} {uN} \t limit cycles to {uN} variables read/written\n" \
103 " {y--max-po-trans} {uN} \t limit cycles to {uN} program-order edges\n" \
104 " {y--ignore-arrays} \t instrument arrays as a single object\n" \
106 "always instrument shared variables, even when they are not part of " \
108 " {y--force-loop-duplication}, {y--no-loop-duplication} \t " \
109 "optional program transformation to construct cycles in program loops\n" \
110 " {y--cfg-kill} \t enables symbolic execution used to reduce spurious " \
112 " {y--no-dependencies} \t no dependency analysis\n" \
113 " {y--no-po-rendering} \t no representation of the threads in the dot\n" \
114 " {y--hide-internals} \t do not include thread-internal (Rfi) events in " \
116 " {y--render-cluster-file} \t clusterises the dot by files\n" \
117 " {y--render-cluster-function} \t clusterises the dot by functions\n"
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
::goto_functiont goto_functiont
A generic container class for the GOTO intermediate representation of one function.
Class that provides messages with a built-in verbosity 'level'.
void introduce_temporaries(value_setst &, symbol_tablet &, const irep_idt &function, goto_programt &, messaget &message)
all access to shared variables is pushed into assignments
void weak_memory(memory_modelt model, value_setst &, goto_modelt &, bool SCC, instrumentation_strategyt event_stategy, bool no_cfg_kill, bool no_dependencies, loop_strategyt duplicate_body, unsigned max_var, unsigned max_po_trans, bool render_po, bool render_file, bool render_function, bool cav11_option, bool hide_internals, message_handlert &, bool ignore_arrays)
instrumentation_strategyt