* Add libm dependency * Change to use libm for trig functions * Remove redactions for floating point * Update output * Use clippy to prevent stdlib math sneaking back in --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
326 lines
6.4 KiB
Plaintext
326 lines
6.4 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed boolean_logical_and.kcl
|
|
---
|
|
{
|
|
"rust/kcl-lib/tests/boolean_logical_and/input.kcl": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "aa",
|
|
"value": {
|
|
"type": "Bool",
|
|
"value": false
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 0
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "a",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 2.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "bb",
|
|
"value": {
|
|
"type": "Bool",
|
|
"value": false
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 3
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "b",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 2.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 4
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "cc",
|
|
"value": {
|
|
"type": "Bool",
|
|
"value": true
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 6
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "c",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 1.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 7
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "dd",
|
|
"value": {
|
|
"type": "Bool",
|
|
"value": false
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 9
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "d",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 2.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "default",
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 10
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
],
|
|
"std::appearance": [],
|
|
"std::array": [],
|
|
"std::math": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "PI",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 3.141592653589793,
|
|
"ty": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"visibility": "export",
|
|
"nodePath": {
|
|
"steps": []
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "E",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 2.718281828459045,
|
|
"ty": {
|
|
"type": "Known",
|
|
"type": "Count"
|
|
}
|
|
},
|
|
"visibility": "export",
|
|
"nodePath": {
|
|
"steps": []
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "TAU",
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 6.283185307179586,
|
|
"ty": {
|
|
"type": "Known",
|
|
"type": "Count"
|
|
}
|
|
},
|
|
"visibility": "export",
|
|
"nodePath": {
|
|
"steps": []
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
],
|
|
"std::prelude": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "START",
|
|
"value": {
|
|
"type": "String",
|
|
"value": "start"
|
|
},
|
|
"visibility": "export",
|
|
"nodePath": {
|
|
"steps": []
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"name": "END",
|
|
"value": {
|
|
"type": "String",
|
|
"value": "end"
|
|
},
|
|
"visibility": "export",
|
|
"nodePath": {
|
|
"steps": []
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
],
|
|
"std::sketch": [],
|
|
"std::solid": [],
|
|
"std::sweep": [],
|
|
"std::transform": [],
|
|
"std::turns": [],
|
|
"std::types": [],
|
|
"std::units": []
|
|
}
|