Go to the documentation of this file.
12 #ifndef CPROVER_GOTO_CHECKER_BMC_UTIL_H
13 #define CPROVER_GOTO_CHECKER_BMC_UTIL_H
69 std::unique_ptr<memory_model_baset>
104 const std::string &cov_out,
117 std::unordered_set<irep_idt> &updated_properties,
128 std::unordered_set<irep_idt> &updated_properties);
138 std::unordered_set<irep_idt> &updated_properties);
170 std::chrono::duration<double> solver_runtime,
171 bool set_pass =
true);
178 "(show-goto-symex-steps)" \
179 "(show-points-to-sets)" \
181 "(unwinding-assertions)" \
182 "(no-unwinding-assertions)" \
183 "(no-self-loops-to-assumptions)" \
186 "(show-symex-strategies)" \
188 "(max-field-sensitivity-array-size):" \
189 "(no-array-field-sensitivity)" \
190 "(graphml-witness):" \
191 "(symex-complexity-limit):" \
192 "(symex-complexity-failed-child-loops-limit):" \
193 "(incremental-loop):" \
196 "(ignore-properties-before-unwind-min)" \
197 "(symex-cache-dereferences)" \
201 " --paths [strategy] explore paths one at a time\n" \
202 " --show-symex-strategies list strategies for use with --paths\n" \
203 " --show-goto-symex-steps show which steps symex travels, includes\n" \
204 " diagnostic information\n" \
205 " --show-points-to-sets show points-to sets for\n" \
206 " pointer dereference. Requires --json-ui.\n" \
207 " --program-only only show program expression\n" \
208 " --show-byte-ops show all byte extracts and updates\n" \
209 " --depth nr limit search depth\n" \
210 " --max-field-sensitivity-array-size M\n" \
211 " maximum size M of arrays for which field\n" \
212 " sensitivity will be applied to array,\n" \
213 " the default is 64\n" \
214 " --no-array-field-sensitivity\n" \
215 " deactivate field sensitivity for arrays, " \
217 " equivalent to setting the maximum field \n" \
218 " sensitivity size for arrays to 0\n" \
220 " --incremental-loop L check properties after each unwinding\n" \
222 " (use --show-loops to get the loop IDs)\n" \
223 " --unwind-min nr start incremental-loop after nr unwindings\n" \
224 " but before solving that iteration. If for\n" \
225 " example it is 1, then the loop will be\n" \
226 " unwound once, and immediately checked.\n" \
227 " Note: this means for min-unwind 1 or\n"\
228 " 0 all properties are checked.\n" \
229 " --unwind-max nr stop incremental-loop after nr unwindings\n" \
230 " --ignore-properties-before-unwind-min\n" \
231 " do not check properties before unwind-min\n" \
232 " when using incremental-loop\n" \
233 " --show-vcc show the verification conditions\n" \
234 " --slice-formula remove assignments unrelated to property\n" \
235 " --unwinding-assertions generate unwinding assertions (cannot be\n" \
236 " used with --cover)\n" \
237 " --partial-loops permit paths with partial loops\n" \
238 " --no-self-loops-to-assumptions\n" \
239 " do not simplify while(1){} to assume(0)\n" \
240 " --symex-complexity-limit N how complex (N) a path can become before\n" \
241 " symex abandons it. Currently uses guard\n" \
242 " size to calculate complexity. \n" \
243 " --symex-complexity-failed-child-loops-limit N\n" \
244 " how many child branches (N) in an\n" \
245 " iteration are allowed to fail due to\n" \
246 " complexity violations before the loop\n" \
247 " gets blacklisted\n" \
248 " --graphml-witness filename write the witness in GraphML format to filename\n" \
249 " --symex-cache-dereferences enable caching of repeated dereferences" \
252 #endif // CPROVER_GOTO_CHECKER_BMC_UTIL_H
Class that provides messages with a built-in verbosity 'level'.
void output_coverage_report(const std::string &cov_out, const abstract_goto_modelt &goto_model, const symex_bmct &symex, ui_message_handlert &ui_message_handler)
Output a coverage report as generated by symex_coveraget if cov_out is non-empty.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
ssa_step_predicatet ssa_step_matches_failing_property(const irep_idt &property_id)
Returns a function that checks whether an SSA step is an assertion with property_id.
void convert_symex_target_equation(symex_target_equationt &equation, decision_proceduret &decision_procedure, message_handlert &message_handler)
void slice(symex_bmct &, symex_target_equationt &symex_target_equation, const namespacet &, const optionst &, ui_message_handlert &)
std::function< bool(symex_target_equationt::SSA_stepst::const_iterator, const decision_proceduret &)> ssa_step_predicatet
std::map< irep_idt, property_infot > propertiest
A map of property IDs to property infos.
void build_error_trace(goto_tracet &, const namespacet &, const symex_target_equationt &, const decision_proceduret &, ui_message_handlert &)
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
void update_status_of_unknown_properties(propertiest &properties, std::unordered_set< irep_idt > &updated_properties)
Sets the property status of UNKNOWN properties to PASS.
void message_building_error_trace(messaget &)
Outputs a message that an error trace is being built.
void output_error_trace(const goto_tracet &, const namespacet &, const trace_optionst &, ui_message_handlert &)
void setup_symex(symex_bmct &, const namespacet &, const optionst &, ui_message_handlert &)
void update_properties_status_from_symex_target_equation(propertiest &properties, std::unordered_set< irep_idt > &updated_properties, const symex_target_equationt &equation)
Sets property status to PASS for properties whose conditions are constant true in the equation.
Inheriting the interface of symex_targett this class represents the SSA form of the input program as ...
Options for printing the trace using show_goto_trace.
Provides management of goal variables that encode properties.
Abstract interface to eager or lazy GOTO models.
void update_status_of_not_checked_properties(propertiest &properties, std::unordered_set< irep_idt > &updated_properties)
Sets the property status of NOT_CHECKED properties to PASS.
std::chrono::duration< double > prepare_property_decider(propertiest &properties, symex_target_equationt &equation, goto_symex_property_decidert &property_decider, ui_message_handlert &ui_message_handler)
Converts the equation and sets up the property decider, but does not call solve.
std::unique_ptr< memory_model_baset > get_memory_model(const optionst &options, const namespacet &)
void output_graphml(const goto_tracet &, const namespacet &, const optionst &)
outputs an error witness in graphml format
void postprocess_equation(symex_bmct &symex, symex_target_equationt &equation, const optionst &options, const namespacet &ns, ui_message_handlert &ui_message_handler)
Post process the equation.
message_handlert * message_handler
void run_property_decider(incremental_goto_checkert::resultt &result, propertiest &properties, goto_symex_property_decidert &property_decider, ui_message_handlert &ui_message_handler, std::chrono::duration< double > solver_runtime, bool set_pass=true)
Runs the property decider to solve the equation.