File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,11 @@ export async function invokeLLMOpt(code: string) {
199
199
200
200
Please modify the original code in <CODE> to ensure that it uses best practices for optimal code execution.
201
201
202
+ - do use for loops of the form for (auto const& x : container) { ... } instead of for (it = container.begin(); it != container.end(); ++it) { ... }.
202
203
- do not use assert. Instead use SASSERT.
203
204
- do not change function signatures.
204
205
- do not use std::vector.
205
- - do not add new comments.
206
+ - do not add new comments.
206
207
- do not split functions into multiple functions.`
207
208
} , {
208
209
system : [ ] ,
Original file line number Diff line number Diff line change @@ -82,9 +82,8 @@ class lar_core_solver {
82
82
void backup_x () { m_backup_x = m_r_x; }
83
83
84
84
void restore_x () {
85
+ m_r_x = m_backup_x;
85
86
m_r_x.reserve (m_m ());
86
- for (unsigned i = 0 ; i < std::min (m_m (), m_backup_x.size ()); ++i)
87
- m_r_x[i] = m_backup_x[i];
88
87
}
89
88
90
89
vector<impq> const & r_x () const { return m_r_x; }
You can’t perform that action at this time.
0 commit comments