(vl-extend-pathname dir filename) concatenates
Function:
(defun vl-ends-with-directory-separatorp (x) (declare (xargs :guard (stringp x))) (let ((len (length x))) (and (/= len 0) (eql (char x (- (length x) 1)) acl2::*directory-separator*))))
Function:
(defun vl-extend-pathname (dir filename) (declare (xargs :guard (and (stringp dir) (stringp filename)))) (cat dir (if (vl-ends-with-directory-separatorp dir) "" (implode (list acl2::*directory-separator*))) filename))
Theorem:
(defthm stringp-of-vl-extend-pathname (stringp (vl-extend-pathname dir filename)) :rule-classes :type-prescription)