@@ -99,13 +99,13 @@ void SystemFactory::init_args() {
99
99
varcopy (input_args, sys_args);
100
100
}
101
101
102
- void SystemFactory::add_goal (const ExprNode& goal) {
102
+ void SystemFactory::add_goal (const ExprNode& goal, const char * name ) {
103
103
init_args ();
104
104
105
105
Array<const ExprSymbol> goal_vars (input_args.size ());
106
106
varcopy (input_args,goal_vars);
107
107
const ExprNode& goal_expr=ExprCopy ().copy (input_args, goal_vars, goal).simplify (simpl_level);
108
- this ->goal = new Function (goal_vars, goal_expr);
108
+ this ->goal = new Function (goal_vars, goal_expr, name );
109
109
}
110
110
111
111
void SystemFactory::add_goal (const Function& goal) {
@@ -118,14 +118,14 @@ void SystemFactory::add_goal(const Function& goal) {
118
118
this ->goal = new Function (goal);
119
119
}
120
120
121
- void SystemFactory::add_ctr (const ExprCtr& ctr) {
121
+ void SystemFactory::add_ctr (const ExprCtr& ctr, const char * name ) {
122
122
init_args ();
123
123
124
124
Array<const ExprSymbol> ctr_args (input_args.size ());
125
125
varcopy (input_args,ctr_args);
126
126
const ExprNode& ctr_expr=ExprCopy ().copy (input_args, ctr_args, ctr.e ).simplify (simpl_level);
127
127
128
- ctrs.push_back (new NumConstraint (*new Function (ctr_args, ctr_expr), ctr.op , true ));
128
+ ctrs.push_back (new NumConstraint (*new Function (ctr_args, ctr_expr, name ), ctr.op , true ));
129
129
130
130
f_ctrs.push_back (& f_ctrs_copy.copy (input_args, sys_args, ctr.e , true ));
131
131
}
0 commit comments