Support async-signal-safe printing of inferences (#4148)
authorAndres Noetzli <andres.noetzli@gmail.com>
Wed, 25 Mar 2020 19:22:25 +0000 (12:22 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2020 19:22:25 +0000 (14:22 -0500)
commit482df8bb2914d9c470ab8dd290bf6abe590505c6
treeba6138325dc38205f7cf8c1d1177a4a39dbd2f3a
parent34a0e4420960a2f6a34d02e53636fecd63b5c4de
Support async-signal-safe printing of inferences (#4148)

Commit c9b7c3d introduced code for
counting the number of string inferences done per type of inference.
However, it did not add support for printing the inference names in an
async-signal-safe manner via safe_print() (note that printing in
signal handlers is done differently from the regular stats printing).
This commit adds the corresponding code, s.t. we get the inference names
when printing the stats when CVC4 is interrupted or crashes.
src/theory/strings/infer_info.cpp
src/theory/strings/infer_info.h
src/util/safe_print.h