Skip to content

Commit 758e1ab

Browse files
committed
feat: also take into account term type Symbol
1 parent 6977fda commit 758e1ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

egg-pre-dcp/src/optimization.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct Meta {
5656

5757
#[derive(Debug, Clone, PartialEq, Eq)]
5858
pub enum TermType {
59-
Problem, ObjFun, Constr, Constrs, Set, Function,
59+
Problem, Set, Function, ObjFun, Constrs, Constr, Symbol
6060
}
6161

6262
#[cfg(not(stop_on_success))]
@@ -256,7 +256,9 @@ impl Analysis<Optimization> for Meta {
256256
domain = Some(Domain::make_singleton(std::f64::consts::PI));
257257
is_constant = true;
258258
}
259-
Optimization::Symbol(_) => {}
259+
Optimization::Symbol(_) => {
260+
term_type = TermType::Symbol;
261+
}
260262
Optimization::Constant(f) => {
261263
domain = Some(Domain::make_singleton((*f).into_inner()));
262264
is_constant = true;

0 commit comments

Comments
 (0)