63 vector<mir::Operation::Output *> concat_inputs{tail1->
getOutput(0), tail2->getOutput(0)};
65 input->getOutput(0)->setName(
"input");
66 head1->getOutput(0)->setName(
"head1");
67 head2->getOutput(0)->setName(
"head2");
68 tail1->getOutput(0)->setName(
"tail2");
69 tail2->getOutput(0)->setName(
"tail2");
70 join->getOutput(0)->setName(
"join");
76 ASSERT_EQ(seq.size(), 6u);
78 vector<Operation *> op_seq(seq.size());
79 transform(seq.cbegin(), seq.cend(), op_seq.begin(),
80 [](
const unique_ptr<sir::Action> &action) { return getCall(action)->mirOp; });
82 vector<Operation *> valid_seq1{input, head1, tail1, head2, tail2, join};
83 vector<Operation *> valid_seq2{input, head2, tail2, head1, tail1, join};
84 ASSERT_TRUE(op_seq == valid_seq1 || op_seq == valid_seq2);