Skip to content

Commit

Permalink
Merge pull request #1276 from GaloisInc/issue1175
Browse files Browse the repository at this point in the history
Types of primitives don't count as repeated subterms for printing.
  • Loading branch information
mergify[bot] authored May 18, 2021
2 parents 7063225 + a54ceaf commit 6c6fa3c
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 6c6fa3c

Please sign in to comment.