Short-circuit evaluation: Difference between revisions
imported>Dwo m →Support in common programming and scripting languages: better way to write that |
imported>Vestrian24Bio m Post-move cleanup, following swap of HotSpot (virtual machine) and HotSpot: Changed link from HotSpot (virtual machine) to HotSpot using Move+ |
||
| Line 39: | Line 39: | ||
=== Formalization === | === Formalization === | ||
Short-circuit logic, with or without side-effects, have been formalized based on [[Hoare logic#Conditional rule|Hoare's conditional]]. A result is that non-short-circuiting operators can be defined out of short-circuit logic to have the same sequence of evaluation.<ref>{{cite arXiv |last1=Bergstra |first1=Jan A. |last2=Ponse |first2=A. |last3=Staudt |first3=D.J.C. |date=2010 |title=Short-circuit logic |eprint=1010.3674|class=cs.LO}}</ref> | Short-circuit logic, with or without side-effects, have been formalized based on [[Hoare logic#Conditional rule|Hoare's conditional]]. A result is that non-short-circuiting operators can be defined out of short-circuit logic to have the same sequence of evaluation.<ref>{{cite arXiv |last1=Bergstra |first1=Jan A. |last2=Ponse |first2=A. |last3=Staudt |first3=D.J.C. |date=2010 |title=Short-circuit logic |eprint=1010.3674|class=cs.LO}}</ref> | ||
=== Comparison with bitwise operators === | |||
<code>&</code> and <code>|</code> are [[Bitwise operation|bitwise operators]] that occur in many programming languages. The major difference is that bitwise operations operate on the individual bits of a binary numeral, whereas conditional operators operate on logical operations. Additionally, expressions either side of a bitwise operator are always evaluated. In some languages, including [[Java (programming language)|Java]] and [[C sharp (programming language)|C#]], they can be used on boolean operands to force both sides to be evaluated. | |||
<syntaxhighlight lang="java"> | |||
if (expression1 || expression2 || expression3) | |||
</syntaxhighlight>If expression 1 is true, expressions 2 and 3 are not checked. | |||
<syntaxhighlight lang="java"> | |||
if (expression1 | expression2 | expression3) | |||
</syntaxhighlight>This checks expressions 2 and 3, even if expression 1 is true. | |||
Short-circuit operators can thus reduce run times by avoiding unnecessary calculations. They can also avoid null exceptions when expression 1 checks whether an object is valid. | |||
==Support in common programming and scripting languages== | ==Support in common programming and scripting languages== | ||
The following table is restricted to common programming languages and the basic boolean operators for [[logical conjunction]] <code>AND</code> and [[logical disjunction]] <code>OR</code>. [[Bitwise operator]]s are shown only for languages that allow them to be used as eager boolean operators and have the same return type. | |||
The following table is restricted to common programming languages and the basic boolean operators for [[logical conjunction]] <code>AND</code> and [[logical disjunction]] <code>OR</code>. | |||
Note that there are more short-circuit operators, for example the [[ternary conditional operator]], which is <code>cond '''?''' e1 ''':''' e2</code> ([[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]], [[PHP]]), <code>'''if''' cond '''then''' e1 '''else''' e2</code> ([[ALGOL]], [[Haskell (programming language)|Haskell]], [[Kotlin (programming language)|Kotlin]], [[Rust (programming language)|Rust]]), <code>e1 '''if''' cond '''else''' e2</code> ([[Python (programming language)|Python]]). Please take a look at [[ternary conditional operator#Usage]]. | Note that there are more short-circuit operators, for example the [[ternary conditional operator]], which is <code>cond '''?''' e1 ''':''' e2</code> ([[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]], [[PHP]]), <code>'''if''' cond '''then''' e1 '''else''' e2</code> ([[ALGOL]], [[Haskell (programming language)|Haskell]], [[Kotlin (programming language)|Kotlin]], [[Rust (programming language)|Rust]]), <code>e1 '''if''' cond '''else''' e2</code> ([[Python (programming language)|Python]]). Please take a look at [[ternary conditional operator#Usage]]. | ||
| Line 66: | Line 76: | ||
|- | |- | ||
| [[awk]] | | [[awk]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code> | ||
| Boolean | | Boolean | ||
| Line 76: | Line 86: | ||
|- | |- | ||
| [[C++]]{{efn |name=cpp |1=When [[operator overloading|overloaded]], the operators <code>&&</code> and <code><nowiki>||</nowiki></code> are eager and can return any type.}} | | [[C++]]{{efn |name=cpp |1=When [[operator overloading|overloaded]], the operators <code>&&</code> and <code><nowiki>||</nowiki></code> are eager and can return any type.}} | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code><ref>[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf ISO/IEC IS 14882 draft.]</ref> | | <code>&&</code>, <code><nowiki>||</nowiki></code><ref>[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf ISO/IEC IS 14882 draft.]</ref> | ||
| Boolean | | Boolean | ||
| Line 106: | Line 116: | ||
|- | |- | ||
| [[Go (programming language)|Go]], [[Haskell (programming language)|Haskell]], [[OCaml]]{{efn |name=bitwise_without_bool |1=In lua and OCaml, bitwise operators <code>&</code>, <code><nowiki>|</nowiki></code> (OCaml <code>land</code>, <code>lor</code>) are restricted to integers and cannot be used with Booleans.}} | | [[Go (programming language)|Go]], [[Haskell (programming language)|Haskell]], [[OCaml]]{{efn |name=bitwise_without_bool |1=In lua and OCaml, bitwise operators <code>&</code>, <code><nowiki>|</nowiki></code> (OCaml <code>land</code>, <code>lor</code>) are restricted to integers and cannot be used with Booleans.}} | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code> | ||
| Boolean | | Boolean | ||
| Line 112: | Line 122: | ||
| [[Java (programming language)|Java]], [[R (programming language)|R]], [[Swift (programming language)|Swift]] | | [[Java (programming language)|Java]], [[R (programming language)|R]], [[Swift (programming language)|Swift]] | ||
| <code>&</code>, <code><nowiki>|</nowiki></code> | | <code>&</code>, <code><nowiki>|</nowiki></code> | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code>{{efn |1=In Java, these along with {{code|?…:}} are sometimes referred to as "conditional operators".<ref>{{Cite web|url=https://docs.oracle.com/javase/tutorial/java/nutsandbolts/op2.html|title=Equality, Relational, and Conditional Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)|website=docs.oracle.com|access-date=2019-04-29}}</ref>}} | ||
| Boolean | | Boolean | ||
|- | |- | ||
| [[JavaScript]] | | [[JavaScript]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code> | ||
| Last value | | Last value | ||
|- | |- | ||
| [[Julia (programming language)|Julia]] | | [[Julia (programming language)|Julia]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code> | ||
| Last value | | Last value | ||
| Line 131: | Line 141: | ||
|- | |- | ||
| [[Lisp (programming language)|Lisp]], [[Lua (programming language)|Lua]]{{efn |name=bitwise_without_bool}}, [[Scheme (programming language)|Scheme]] | | [[Lisp (programming language)|Lisp]], [[Lua (programming language)|Lua]]{{efn |name=bitwise_without_bool}}, [[Scheme (programming language)|Scheme]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>and</code>, <code>or</code> | | <code>and</code>, <code>or</code> | ||
| Last value | | Last value | ||
| Line 142: | Line 152: | ||
| [[MUMPS]] (M) | | [[MUMPS]] (M) | ||
| <code>&</code>, <code>!</code> | | <code>&</code>, <code>!</code> | ||
| ''none'' | | {{CNone|''none''}} | ||
| Numeric | | Numeric | ||
|- | |- | ||
| [[Modula-2]] | | [[Modula-2]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>AND</code>, <code>OR</code> | | <code>AND</code>, <code>OR</code> | ||
| Boolean | | Boolean | ||
| Line 161: | Line 171: | ||
|- | |- | ||
| [[PHP]] | | [[PHP]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code>and</code>, <code><nowiki>||</nowiki></code>, <code>or</code> | | <code>&&</code>, <code>and</code>, <code><nowiki>||</nowiki></code>, <code>or</code> | ||
| Boolean | | Boolean | ||
|- | |- | ||
| [[POSIX shell]], [[Bash (Unix shell)|Bash]] | | [[POSIX shell]], [[Bash (Unix shell)|Bash]] | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>&&</code>, <code><nowiki>||</nowiki></code> | | <code>&&</code>, <code><nowiki>||</nowiki></code> | ||
| Numeric (exit code) | | Numeric (exit code) | ||
|- | |- | ||
| [[PowerShell]] Scripting Language | | [[PowerShell]] Scripting Language | ||
| ''none'' | | {{CNone|''none''}} | ||
| <code>-and</code>, <code>-or</code> | | <code>-and</code>, <code>-or</code> | ||
| Boolean | | Boolean | ||
| Line 207: | Line 217: | ||
| [[Visual Basic]], [[Visual Basic for Applications]] (VBA) | | [[Visual Basic]], [[Visual Basic for Applications]] (VBA) | ||
| <code>And</code>, <code>Or</code> | | <code>And</code>, <code>Or</code> | ||
| ''none'' | | {{CNone|''none''}} | ||
| Numeric | | Numeric | ||
|} | |} | ||
| Line 217: | Line 227: | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
int denom = 0; | int denom = 0; | ||
if (denom != 0 && num / denom) | if (denom != 0 && num / denom) { | ||
{ | |||
... // ensures that calculating num/denom never results in divide-by-zero error | ... // ensures that calculating num/denom never results in divide-by-zero error | ||
} | } | ||
| Line 226: | Line 235: | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
int a = 0; | int a = 0; | ||
if (a != 0 && myfunc(b)) | if (a != 0 && myfunc(b)) { | ||
{ | doSomething(); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 238: | Line 246: | ||
Both are illustrated in the following C snippet where minimal evaluation prevents both null pointer dereference and excess memory fetches: | Both are illustrated in the following C snippet where minimal evaluation prevents both null pointer dereference and excess memory fetches: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="c"> | ||
bool | bool isFirstCharValidAlphaUnsafe(const char* p) { | ||
{ | |||
return isalpha(p[0]); // SEGFAULT highly possible with p == NULL | return isalpha(p[0]); // SEGFAULT highly possible with p == NULL | ||
} | } | ||
bool | bool isFirstCharValidAlpha(const char* p) { | ||
{ | |||
return p != NULL && isalpha(p[0]); // 1) no unneeded isalpha() execution with p == NULL, 2) no SEGFAULT risk | return p != NULL && isalpha(p[0]); // 1) no unneeded isalpha() execution with p == NULL, 2) no SEGFAULT risk | ||
} | } | ||
| Line 269: | Line 275: | ||
Despite these benefits, minimal evaluation may cause problems for programmers who do not realize (or forget) it is happening. For example, in the code | Despite these benefits, minimal evaluation may cause problems for programmers who do not realize (or forget) it is happening. For example, in the code | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
if (expressionA && | if (expressionA && myFunc(b)) { | ||
doSomething(); | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
if <code> | if <code>myFunc(b)</code> is supposed to perform some required operation regardless of whether <code>doSomething()</code> is executed, such as allocating system resources, and <code>expressionA</code> evaluates as false, then <code>myFunc(b)</code> will not execute, which could cause problems. Some programming languages, such as [[Java (programming language)|Java]], have two operators, one that employs minimal evaluation and one that does not, to avoid this problem. | ||
Problems with unperformed side effect statements can be easily solved with proper programming style, i.e., not using side effects in boolean statements, as using values with side effects in evaluations tends to generally make the code opaque and error-prone.<ref>{{cite web |url=http://www.itu.dk/people/sestoft/papers/SondergaardSestoft1990.pdf |title=Referential Transparency, Definiteness and Unfoldability |publisher=Itu.dk |access-date=2013-08-24}}</ref> | Problems with unperformed side effect statements can be easily solved with proper programming style, i.e., not using side effects in boolean statements, as using values with side effects in evaluations tends to generally make the code opaque and error-prone.<ref>{{cite web |url=http://www.itu.dk/people/sestoft/papers/SondergaardSestoft1990.pdf |title=Referential Transparency, Definiteness and Unfoldability |publisher=Itu.dk |access-date=2013-08-24}}</ref> | ||
| Line 280: | Line 286: | ||
Short-circuiting can lead to errors in [[branch prediction]] on modern [[central processing unit]]s (CPUs), and dramatically reduce performance. A notable example is highly optimized ray with axis aligned box intersection code in [[Ray tracing (physics)|ray tracing]].{{clarify|date=November 2010}} Some compilers can detect such cases and emit faster code, but programming language semantics may constrain such optimizations.{{citation needed|date=October 2016}} | Short-circuiting can lead to errors in [[branch prediction]] on modern [[central processing unit]]s (CPUs), and dramatically reduce performance. A notable example is highly optimized ray with axis aligned box intersection code in [[Ray tracing (physics)|ray tracing]].{{clarify|date=November 2010}} Some compilers can detect such cases and emit faster code, but programming language semantics may constrain such optimizations.{{citation needed|date=October 2016}} | ||
An example of a compiler unable to optimize for such a case is [[Java (programming language)|Java]]'s [[HotSpot | An example of a compiler unable to optimize for such a case is [[Java (programming language)|Java]]'s [[HotSpot|Hotspot virtual machine]] (VM) as of 2012.<ref>{{cite web |last=Wasserman |first=Louis |date=11 July 2012 |title=Java: What are the cases in which it is better to use unconditional AND (& instead of &&) |url=https://stackoverflow.com/a/11412121 |website=Stack Overflow}}</ref> | ||
==See also== | ==See also== | ||
Latest revision as of 13:44, 13 December 2025
Template:Short description
Script error: No such module "Distinguish".
Script error: No such module "Unsubst".
Script error: No such module "Sidebar".
Short-circuit evaluation, minimal evaluation, or McCarthy evaluation (after John McCarthy) is the semantics of some Boolean operators in some programming languages in which the second argument is executed or evaluated only if the first argument does not suffice to determine the value of the expression: when the first argument of the AND function evaluates to false, the overall value must be false; and when the first argument of the OR function evaluates to true, the overall value must be true.
In programming languages with lazy evaluation (Lisp, Perl, Haskell), the usual Boolean operators short-circuit. In others (Ada, Java, Delphi), both short-circuit and standard Boolean operators are available. For some Boolean operations, like exclusive or (XOR), it is impossible to short-circuit, because both operands are always needed to determine a result.
Short-circuit operators are, in effect, control structures rather than simple arithmetic operators, as they are not strict. In imperative language terms (notably C and C++), where side effects are important, short-circuit operators introduce a sequence point: they completely evaluate the first argument, including any side effects, before (optionally) processing the second argument. ALGOL 68 used proceduring to achieve user-defined short-circuit operators and procedures.
The use of short-circuit operators has been criticized as problematic: Template:Quote
Definition
In any programming language that implements short-circuit evaluation, the expression x and y is equivalent to the conditional expression if x then y else x, and the expression x or y is equivalent to if x then x else y. In either case, x is only evaluated once.
The generalized definition above accommodates loosely typed languages that have more than the two truth-values True and False, where short-circuit operators may return the last evaluated subexpression. This is called "last value" in the table below. For a strictly-typed language, the expression is simplified to if x then y else false and if x then true else y respectively for the boolean case.
Precedence
Although AND takes precedence over OR in many languages, this is not a universal property of short-circuit evaluation. An example of the two operators taking the same precedence and being left-associative with each other is POSIX shell's command-list syntax.[1]Template:Rp
The following simple left-to-right evaluator enforces a precedence of AND over OR by a continue:
function short-circuit-eval (operators, values)
let result := True
for each (op, val) in (operators, values):
if op = "AND" && result = False
continue
else if op = "OR" && result = True
return result
else
result := val
return result
Formalization
Short-circuit logic, with or without side-effects, have been formalized based on Hoare's conditional. A result is that non-short-circuiting operators can be defined out of short-circuit logic to have the same sequence of evaluation.[2]
Comparison with bitwise operators
& and | are bitwise operators that occur in many programming languages. The major difference is that bitwise operations operate on the individual bits of a binary numeral, whereas conditional operators operate on logical operations. Additionally, expressions either side of a bitwise operator are always evaluated. In some languages, including Java and C#, they can be used on boolean operands to force both sides to be evaluated.
if (expression1 || expression2 || expression3)
If expression 1 is true, expressions 2 and 3 are not checked.
if (expression1 | expression2 | expression3)
This checks expressions 2 and 3, even if expression 1 is true.
Short-circuit operators can thus reduce run times by avoiding unnecessary calculations. They can also avoid null exceptions when expression 1 checks whether an object is valid.
Support in common programming and scripting languages
The following table is restricted to common programming languages and the basic boolean operators for logical conjunction AND and logical disjunction OR. Bitwise operators are shown only for languages that allow them to be used as eager boolean operators and have the same return type.
Note that there are more short-circuit operators, for example the ternary conditional operator, which is cond ? e1 : e2 (C, C++, Java, PHP), if cond then e1 else e2 (ALGOL, Haskell, Kotlin, Rust), e1 if cond else e2 (Python). Please take a look at ternary conditional operator#Usage.
| Language | Eager operators | Short-circuit operators | Result type |
|---|---|---|---|
| Ada | and, or
|
and then, or else
|
Boolean |
| ALGOL 68 | and, &, ∧ ; or, ∨ | andf , orf (both user defined) | Boolean |
| APL | ∧, ∨
|
:AndIf, :OrIf
|
Boolean |
| awk | Template:CNone | &&, ||
|
Boolean |
| C, Objective-C | &, |Template:Efn
|
&&, ||[3]
|
int |
| C++Template:Efn | Template:CNone | &&, ||[4]
|
Boolean |
| C# | &, |
|
&&, ||
|
Boolean |
| DTemplate:Efn | &, |
|
&&, ||
|
Boolean |
| Eiffel | and, or
|
and then, or else
|
Boolean |
| Erlang | and, or
|
andalso, orelse
|
Boolean |
| FortranTemplate:Efn | .and., .or.
|
.and., .or.
|
Boolean |
| Go, Haskell, OCamlTemplate:Efn | Template:CNone | &&, ||
|
Boolean |
| Java, R, Swift | &, |
|
&&, ||Template:Efn
|
Boolean |
| JavaScript | Template:CNone | &&, ||
|
Last value |
| Julia | Template:CNone | &&, ||
|
Last value |
| Kotlin | and, or
|
&&, ||
|
Boolean |
| Lisp, LuaTemplate:Efn, Scheme | Template:CNone | and, or
|
Last value |
| MATLABTemplate:Efn | &, |
|
&, |, &&, ||
|
Boolean |
| MUMPS (M) | &, !
|
Template:CNone | Numeric |
| Modula-2 | Template:CNone | AND, OR
|
Boolean |
| Pascal | and, orTemplate:EfnTemplate:Efn
|
and_then, or_elseTemplate:Efn
|
Boolean |
| Perl | &, |
|
&&, and, ||, or
|
Last value |
| PHP | Template:CNone | &&, and, ||, or
|
Boolean |
| POSIX shell, Bash | Template:CNone | &&, ||
|
Numeric (exit code) |
| PowerShell Scripting Language | Template:CNone | -and, -or
|
Boolean |
| Python | &, |
|
and, or
|
Last value |
| Ruby | &, |
|
&&, and, ||, or[5]
|
Last value |
| Rust | &, |
|
&&, ||[6]
|
Boolean |
| Smalltalk | &, |
|
and:, or:Template:Efn
|
Boolean |
| Standard ML | Unknown | andalso, orelse
|
Boolean |
| Visual Basic .NET | And, Or
|
AndAlso, OrElse
|
Boolean |
| Visual Basic, Visual Basic for Applications (VBA) | And, Or
|
Template:CNone | Numeric |
Common use
Avoiding undesired side effects of the second argument
Usual example, using a C-based language:
int denom = 0;
if (denom != 0 && num / denom) {
... // ensures that calculating num/denom never results in divide-by-zero error
}
Consider the following example:
int a = 0;
if (a != 0 && myfunc(b)) {
doSomething();
}
In this example, short-circuit evaluation guarantees that myfunc(b) is never called. This is because a != 0 evaluates to false. This feature permits two useful programming constructs.
- If the first sub-expression checks whether an expensive computation is needed and the check evaluates to false, one can eliminate expensive computation in the second argument.
- It permits a construct where the first expression guarantees a condition without which the second expression may cause a run-time error.
Both are illustrated in the following C snippet where minimal evaluation prevents both null pointer dereference and excess memory fetches:
bool isFirstCharValidAlphaUnsafe(const char* p) {
return isalpha(p[0]); // SEGFAULT highly possible with p == NULL
}
bool isFirstCharValidAlpha(const char* p) {
return p != NULL && isalpha(p[0]); // 1) no unneeded isalpha() execution with p == NULL, 2) no SEGFAULT risk
}
Idiomatic conditional construct
Since minimal evaluation is part of an operator's semantic definition and not an optional optimization, a number of coding idioms rely on it as a succinct conditional construct. Examples include:
Perl idioms:
some_condition or die; # Abort execution if some_condition is false
some_condition and die; # Abort execution if some_condition is true
POSIX shell idioms:[7]
modprobe -q some_module && echo "some_module installed" || echo "some_module not installed"
This idiom presumes that echo cannot fail.
Possible problems
Untested second condition leads to unperformed side effect
Despite these benefits, minimal evaluation may cause problems for programmers who do not realize (or forget) it is happening. For example, in the code
if (expressionA && myFunc(b)) {
doSomething();
}
if myFunc(b) is supposed to perform some required operation regardless of whether doSomething() is executed, such as allocating system resources, and expressionA evaluates as false, then myFunc(b) will not execute, which could cause problems. Some programming languages, such as Java, have two operators, one that employs minimal evaluation and one that does not, to avoid this problem.
Problems with unperformed side effect statements can be easily solved with proper programming style, i.e., not using side effects in boolean statements, as using values with side effects in evaluations tends to generally make the code opaque and error-prone.[8]
Reduced efficiency due to constraining optimizations
Short-circuiting can lead to errors in branch prediction on modern central processing units (CPUs), and dramatically reduce performance. A notable example is highly optimized ray with axis aligned box intersection code in ray tracing.Script error: No such module "Unsubst". Some compilers can detect such cases and emit faster code, but programming language semantics may constrain such optimizations.Script error: No such module "Unsubst".
An example of a compiler unable to optimize for such a case is Java's Hotspot virtual machine (VM) as of 2012.[9]
See also
References
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ ISO/IEC 9899 standard, section 6.5.13
- ↑ ISO/IEC IS 14882 draft.
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".