4-variable-simplifier/expression/not/new.c
2026-04-25 16:00:10 -04:00

25 lines
485 B
C

#include <debug.h>
#include "../new.h"
#include "../inc.h"
#include "inheritance.h"
#include "struct.h"
#include "new.h"
struct expression* new_not_expression(
int cost,
struct expression* inner)
{
struct not_expression* this =
(void*) new_expression(
/* inheritance: */ &not_expression_inheritance,
/* cost: */ cost,
/* size: */ sizeof(*this));
this->inner = inc_expression(inner);
return (void*) this;
}