Skip to content

Commit

Permalink
Types of primitives don't count as repeated subterms for printing.
Browse files Browse the repository at this point in the history
Fixes #1175.
  • Loading branch information
Brian Huffman committed Apr 28, 2021
1 parent 7b8c134 commit 760fd82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saw-core/src/Verifier/SAW/Term/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ scTermCount doBinders t0 = execState (go [t0]) IntMap.empty
Lambda _ t1 _ | not doBinders -> [t1]
Pi _ t1 _ | not doBinders -> [t1]
Constant{} -> []
FTermF (Primitive _) -> []
tf -> Fold.toList tf

-- | Return true if the printing of the given term should be memoized; we do not
Expand Down

0 comments on commit 760fd82

Please sign in to comment.