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 May 7, 2021
1 parent 2d92f2a commit 39f41fa
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 @@ -527,6 +527,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 39f41fa

Please sign in to comment.