Initializes TriggerInfo::polarity. Resolves CID 1172054. (#1358)
authorTim King <taking@cs.nyu.edu>
Tue, 14 Nov 2017 05:00:15 +0000 (21:00 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Nov 2017 05:00:15 +0000 (21:00 -0800)
* Initializes TriggerInfo::polarity. Resolves CID 1172054.

* Initializing to false explicitly.

src/theory/uf/equality_engine_types.h

index b3b8ac7d6099ae9f8dfd77113abb90807c40b3b5..7cf25e8f6c4adae3c676f4f42c3971077de4ad84 100644 (file)
@@ -351,11 +351,10 @@ struct TriggerInfo {
   Node trigger;
   /** Polarity of the trigger */
   bool polarity;
-  TriggerInfo() {}
+  TriggerInfo() : polarity(false) {}
   TriggerInfo(Node trigger, bool polarity)
-  : trigger(trigger), polarity(polarity) {}
-  };
-
+      : trigger(trigger), polarity(polarity) {}
+};
 
 } // namespace eq
 } // namespace theory