Commit 84714596 authored by Paul's avatar Paul
Browse files

Formatting

parent e2de3cc2
......@@ -62,7 +62,8 @@ instruction_ref program::remove_instruction(instruction_ref ins)
instruction_ref program::remove_instructions(instruction_ref first, instruction_ref last)
{
if(first == last) return first;
if(first == last)
return first;
// TODO: Check every element
assert(has_instruction(first));
std::for_each(first, last, [&](instruction& ins) { ins.clear_arguments(); });
......
......@@ -66,8 +66,8 @@ void depth_test()
auto one = p.add_literal(1);
auto two = p.add_literal(2);
auto x1 = p.add_instruction(sum_op{}, one, two);
auto x2 = p.add_instruction(sum_op{}, one, two);
auto x1 = p.add_instruction(sum_op{}, one, two);
auto x2 = p.add_instruction(sum_op{}, one, two);
p.add_instruction(minus_op{}, x1, x2);
p.add_instruction(minus_op{}, x1, x2);
p.add_instruction(sum_op{}, one, two);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment