LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Attrs.capi.test.cpp.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Attr C API Tests *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Attrs.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10class CastAttributeLinkTests : public CAPITest {};
11
13TEST_F(CastAttributeLinkTests, IsA_Cast_OverflowSemanticsAttr) {
14 auto testAttribute = createIndexAttribute();
15
16 // This will always return false since `createIndex*` returns an MLIR builtin
17 EXPECT_FALSE(llzkAttributeIsA_Cast_OverflowSemanticsAttr(testAttribute));
18
19 //(testAttribute);
20}
21
23TEST_F(CastAttributeLinkTests, Get_OverflowSemanticsAttr) {
24 auto testAttribute = createIndexAttribute();
25
26 // We only verify the function compiles and links, wrapped in an unreachable condition
29
30 (void)llzkCast_OverflowSemanticsAttrGet(context, value);
31 }
32}
33
35TEST_F(CastAttributeLinkTests, Get_OverflowSemanticsAttr_value) {
36 auto testAttribute = createIndexAttribute();
37
39 (void)llzkCast_OverflowSemanticsAttrGetValue(testAttribute);
40 }
41}
TEST_F(BoolAttributeLinkTests, IsA_Bool_FeltCmpPredicateAttr)
This test ensures llzkAttributeIsA_Bool_FeltCmpPredicateAttr links properly.
bool llzkAttributeIsA_Cast_OverflowSemanticsAttr(MlirAttribute inp)
Returns true if the Attribute is a llzk::cast::OverflowSemanticsAttr.
MlirAttribute llzkCast_OverflowSemanticsAttrGet(MlirContext ctx, LlzkCastOverflowSemantics value)
Create a llzk::cast::OverflowSemanticsAttr Attribute with the given parameters.
LlzkCastOverflowSemantics llzkCast_OverflowSemanticsAttrGetValue(MlirAttribute inp)
Get 'value' parameter from a llzk::cast::OverflowSemanticsAttr Attribute.
LlzkCastOverflowSemantics