MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CreateCondJumpStep

Function CreateCondJumpStep

eval/eval/jump_step.cc:126–131  ·  view source on GitHub ↗

Factory method for Conditional Jump step. Conditional Jump requires a boolean value to sit on the stack. It is compared to jump_condition, and if matched, jump is performed.

Source from the content-addressed store, hash-verified

124// Conditional Jump requires a boolean value to sit on the stack.
125// It is compared to jump_condition, and if matched, jump is performed.
126std::unique_ptr<JumpStepBase> CreateCondJumpStep(
127 bool jump_condition, bool leave_on_stack, absl::optional<int> jump_offset,
128 int64_t expr_id) {
129 return std::make_unique<CondJumpStep>(jump_condition, leave_on_stack,
130 jump_offset, expr_id);
131}
132
133// Factory method for Jump step.
134std::unique_ptr<JumpStepBase> CreateJumpStep(absl::optional<int> jump_offset,

Callers 1

PostVisitArgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected