| 5128 | } |
| 5129 | |
| 5130 | fn context_generators() -> Vec<Box<dyn Fn() -> Context>> { |
| 5131 | let context1 = || { |
| 5132 | let context = create_unchecked_context().unwrap(); |
| 5133 | context |
| 5134 | }; |
| 5135 | let context2 = || { |
| 5136 | let context = create_unchecked_context().unwrap(); |
| 5137 | let graph = context.create_graph().unwrap(); |
| 5138 | let i = graph.input(scalar_type(BIT)).unwrap(); |
| 5139 | graph.set_output_node(i).unwrap(); |
| 5140 | graph.finalize().unwrap(); |
| 5141 | context.set_main_graph(graph).unwrap(); |
| 5142 | context.finalize().unwrap(); |
| 5143 | context |
| 5144 | }; |
| 5145 | let context3 = || { |
| 5146 | let context = create_unchecked_context().unwrap(); |
| 5147 | context.create_graph().unwrap(); |
| 5148 | context |
| 5149 | }; |
| 5150 | let context4 = || { |
| 5151 | let context = create_unchecked_context().unwrap(); |
| 5152 | let graph = context.create_graph().unwrap(); |
| 5153 | let i = graph.input(scalar_type(BIT)).unwrap(); |
| 5154 | graph.set_output_node(i).unwrap(); |
| 5155 | graph.finalize().unwrap(); |
| 5156 | context |
| 5157 | }; |
| 5158 | let context5 = || { |
| 5159 | let context = create_unchecked_context().unwrap(); |
| 5160 | let graph = context.create_graph().unwrap(); |
| 5161 | graph.input(scalar_type(BIT)).unwrap(); |
| 5162 | context |
| 5163 | }; |
| 5164 | let context6 = || { |
| 5165 | let context = create_unchecked_context().unwrap(); |
| 5166 | let graph = context.create_graph().unwrap(); |
| 5167 | graph |
| 5168 | .constant(scalar_type(BIT), Value::from_bytes(vec![1])) |
| 5169 | .unwrap(); |
| 5170 | context |
| 5171 | }; |
| 5172 | let context7 = || { |
| 5173 | let context = create_unchecked_context().unwrap(); |
| 5174 | let graph = context.create_graph().unwrap(); |
| 5175 | let i1 = graph.input(scalar_type(BIT)).unwrap(); |
| 5176 | let i2 = graph.input(scalar_type(BIT)).unwrap(); |
| 5177 | graph.add(i1, i2).unwrap(); |
| 5178 | context |
| 5179 | }; |
| 5180 | let context8 = || { |
| 5181 | let context = create_unchecked_context().unwrap(); |
| 5182 | let graph = context.create_graph().unwrap(); |
| 5183 | let i1 = graph.input(scalar_type(BIT)).unwrap(); |
| 5184 | let i2 = graph.input(scalar_type(BIT)).unwrap(); |
| 5185 | graph.add(i2, i1).unwrap(); |
| 5186 | context |
| 5187 | }; |