Skip to main content

Module function_call_utils

Module function_call_utils 

Source
Expand description

Helper functions to call common simple C functions

Enums§

LookupOrInsertFunctionError

Functions§

compute_type_size_in_bytes
Compute size of a type in bytes
get_size_type
Get the type used to represet size
lookup_or_create_free_fn
Get a declaration to the free function, inserting it if it doesn’t already exist in the symbol table.
lookup_or_create_malloc_fn
Get a declaration to the malloc function, inserting it if it doesn’t already exist in the symbol table.
lookup_or_insert_function
Looks up a function by name in the given symbol table. If it exists, checks that its type matches the provided type. If it doesn’t exist, inserts a new function with the given name and type.