MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / parse_icmp

Function parse_icmp

tools/alive_parser.cpp:1040–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040static unique_ptr<Instr> parse_icmp(string_view name) {
1041 // icmp cond ty %a, &b
1042 auto cond = parse_icmp_cond();
1043 auto &ty = parse_type();
1044 auto &a = parse_operand(ty);
1045 parse_comma();
1046 auto &b = parse_operand(ty);
1047 return make_unique<ICmp>(*int_types[1].get(), string(name), cond, a, b);
1048}
1049
1050static unique_ptr<Instr> parse_fcmp(string_view name) {
1051 // fcmp cond ty %a, &b

Callers 1

parse_instrFunction · 0.85

Calls 3

parse_icmp_condFunction · 0.85
parse_commaFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected