File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
jingle/src/analysis/valuation Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,24 @@ impl Display for SmtValuationState {
535535 }
536536}
537537
538+ impl JingleDisplay for SmtValuationState {
539+ fn fmt_jingle ( & self , f : & mut Formatter < ' _ > , info : & SleighArchInfo ) -> std:: fmt:: Result {
540+ // Render the written locations in a concise form using the Sleigh arch display context.
541+ write ! ( f, "SmtValuationState {{" ) ?;
542+ let mut first = true ;
543+ for ( vn, val) in self . written_locations . iter ( ) {
544+ if !first {
545+ write ! ( f, ", " ) ?;
546+ }
547+ first = false ;
548+ // Use the JingleDisplay implementations for VarNode and SmtVal
549+ write ! ( f, "{} = {}" , vn. display( info) , val. display( info) ) ?;
550+ }
551+ write ! ( f, "}}" ) ?;
552+ Ok ( ( ) )
553+ }
554+ }
555+
538556pub struct SmtValuationAnalysis {
539557 arch_info : SleighArchInfo ,
540558 /// Default merge behavior for states produced by this analysis.
You can’t perform that action at this time.
0 commit comments