Skip to content

Commit

Permalink
Another case
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Dec 17, 2024
1 parent 3b61fb3 commit 2f8f0cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proofs/eo/cpc/rules/Strings.eo
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,11 @@
; return: >
; The multiset over-approximation of s, which is a (flattened) concatenation
; term whose components represent an overapproximation of what s may contain.
(program $str_multiset_overapprox ((T Type) (s (Seq T)) (ss (Seq T) :list) (t (Seq T)) (r (Seq T)))
(program $str_multiset_overapprox ((T Type) (s (Seq T)) (ss (Seq T) :list) (t (Seq T)) (r (Seq T)) (n Int) (m Int))
((Seq T)) (Seq T)
(
(($str_multiset_overapprox (str.++ s ss)) (eo::list_concat str.++ ($str_multiset_overapprox s) ($str_multiset_overapprox ss)))
(($str_multiset_overapprox (str.substr s n m)) ($str_to_flat_form s false))
(($str_multiset_overapprox (str.replace s t r)) (eo::list_concat str.++ ($str_multiset_overapprox s) ($str_multiset_overapprox r)))
(($str_multiset_overapprox s) ($str_to_flat_form s false))
)
Expand Down

0 comments on commit 2f8f0cf

Please sign in to comment.