packages feed

cardano-c-clib-0.1.1.0: vendor/src/uplc/cost/uplc_with_interaction_cost.h

/**
 * \file uplc_with_interaction_cost.h
 *
 * \author angel.castillo
 * \date   Jun 27, 2026
 *
 * Copyright 2026 Biglup Labs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_WITH_INTERACTION_COST_H
#define BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_WITH_INTERACTION_COST_H

/* INCLUDES ******************************************************************/

#include <stdint.h>

/* DECLARATIONS **************************************************************/

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * \brief A bilinear cost with interaction: \c c00 + \c c10 * x + \c c01 * y + \c c11 * x * y.
 */
typedef struct cardano_uplc_with_interaction_cost_t
{
    /** \brief The constant term. */
    int64_t c00;
    /** \brief The coefficient of x. */
    int64_t c10;
    /** \brief The coefficient of y. */
    int64_t c01;
    /** \brief The coefficient of the x*y interaction term. */
    int64_t c11;
} cardano_uplc_with_interaction_cost_t;

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_WITH_INTERACTION_COST_H */