MCPcopy Create free account
hub / github.com/csmith-project/csmith / reduce_const_binary_ops

Method reduce_const_binary_ops

src/Reducer.cpp:705–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705void
706Reducer::reduce_const_binary_ops(vector<const FunctionInvocationBinary*>& ops)
707{
708 size_t i;
709 size_t len = ops.size();
710 for (i=0; i<len; i++) {
711 const FunctionInvocationBinary* fi = ops[i];
712 if (reduce_const_binary_op(fi)) {
713 ops.erase(ops.begin() + i);
714 i--;
715 len--;
716 }
717 }
718}
719
720int
721Reducer::find_binary_operations(const Statement* stm, vector<const FunctionInvocationBinary*>& ops, vector<int>& ids, bool no_ptr_cmp)

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected