Skip to main content
Glama

simplify_lifted_il

Optimizes a lifted IL tree using a curated pass set for encrypted-VM bytecode handlers. Applies MBA folding, opaque predicate evaluation, and control flow unflattening.

Instructions

Run the curated default pass set on a lifted IL tree.

The canonical pass order comes from data/ollvm-pass-catalog.json::_meta.default_pass_order and is curated for the encrypted-VM bytecode handler-lift case (MBA-fold + opaque-predicate-eval + control-flow-unflatten on top of the d810-ng default set).

Args: il: the IL tree produced by :func:lift_handler passes: optional override; when None, the curated default order is used. default_preset: "d810-ng" (the curated set), or "none" to disable simplification entirely.

Returns::

{"il": <optimized il>, "passes_applied": [...],
 "preset": "d810-ng"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ilYes
passesNo
default_presetNod810-ng
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description is sole source. It describes passes applied and return value but does not discuss side effects, error handling, or destructive nature. Moderate transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections. Front-loaded with purpose. Every sentence adds value. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema or annotations, description covers parameters and return format adequately. However, missing details on error handling and input validation. Fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% but description adds context: il is from lift_handler, passes can be None, default_preset options are given. Adds meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool runs a curated default pass set on a lifted IL tree, specifying the use case for encrypted-VM bytecode handler-lift. It distinguishes from siblings by naming specific pass set and referencing lift_handler output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies it should be used after lift_handler but does not explicitly state when to use it vs alternatives like 'optimize' or 'check_vtil'. No when-not or alternative tools mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Heretek-RE/re-vtil'

If you have feedback or need assistance with the MCP directory API, please join our Discord server