repairs a bug in rewriterule engine: constructor cannot be used as a pattern
authorTianyi Liang <tianyi-liang@uiowa.edu>
Thu, 14 Feb 2013 05:12:04 +0000 (23:12 -0600)
committerMorgan Deters <mdeters@cs.nyu.edu>
Fri, 15 Feb 2013 15:17:37 +0000 (10:17 -0500)
(cherry picked from commit c33a1abc78bcd51f3f95562b117498caf252cafc)

Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>
src/theory/rewriterules/rr_trigger.h

index 7be5d15079b1fc5c09a40fefc494238ed219d62a..f11d6ed664935cf2c88418c11a034abfe6332596 100644 (file)
@@ -100,6 +100,7 @@ public:
   static inline bool isAtomicTrigger( TNode n ){
     return
       n.getKind()==kind::APPLY_UF ||
+      n.getKind() == kind::APPLY_CONSTRUCTOR ||
       n.getKind()==kind::SELECT ||
       n.getKind()==kind::STORE;
   }