Generate a shallowly embedded ACL2 quoted string.
If guards are assumed, we generate the corresponding Java string expression.
Otherwise, we generate a reference to the field for the quoted string.
Function:
(defun atj-gen-shallow-string (string guards$) (declare (xargs :guard (and (stringp string) (booleanp guards$)))) (let ((__function__ 'atj-gen-shallow-string)) (declare (ignorable __function__)) (if guards$ (atj-gen-jstring string) (jexpr-name (atj-gen-shallow-string-field-name string)))))
Theorem:
(defthm jexprp-of-atj-gen-shallow-string (b* ((expr (atj-gen-shallow-string string guards$))) (jexprp expr)) :rule-classes :rewrite)